Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User xiaopohai's Avatar
    Join Date
    Feb 2009
    Posts
    10
    我在nokia论坛上下了许多日期比较新的例子(也就是许多既适用于第3版,又适用于第5版SDK的例子),编译时都出现"No rule to make target"之类的错误。
    (我电脑上装的是"S60_3rd_Edition_SDK_Feature_Pack_2_v1_1_en"这个第三版的SDK,运行SDK自带的例子并没有上面所说的错误)。比如
    我编译运行SDK自带的那个AudioStream的例子就没出错,但是在nokia论坛上下的一个完全类似的AudioStream的例子(上面说既适用于第三版的、又适用于第五版的)在编译时就出现"No rule to make target"的错误了...

    比如我编译http://www.forum.nokia.com/info/sw.n...g_Support.html
    上的那个Access Points Example with Roaming Support的例子,就出现了
    Code:
    make[1]: *** No rule to make target `\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\S60\devices\S60_3rd_FP2_SDK_v1.1\mywork\S60_Platform_Access_Points_Example_with_Roaming_Support_v1_0_en\S60_Platform_Access_Points_Example_with_Roaming_Support_v1_0\APExample\group\IAPCONNECT\WINSCW\IAPCONNECT.WINSCW'.  Stop.
    的错误。
    然后在命令行下
    cd group
    bldmake bldfiles
    abld reallyclean winscw
    然后
    abld build winscw udeb
    的结果如下:

    Code:
    C:\S60\devices\S60_3rd_FP2_SDK_v1.1\mywork\S60_Platform_Access_Points_Example_wi
    th_Roaming_Support_v1_0_en\S60_Platform_Access_Points_Example_with_Roaming_Suppo
    rt_v1_0\APExample\group>abld build winscw udeb
      make -r  -f "\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\S60\devices\S60_3r
    d_FP2_SDK_v1.1\mywork\S60_Platform_Access_Points_Example_with_Roaming_Support_v1
    _0_en\S60_Platform_Access_Points_Example_with_Roaming_Support_v1_0\APExample\gro
    up\EXPORT.make" EXPORT VERBOSE=-s
    Nothing to do
      make -r  -f "\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\S60\devices\S60_3r
    d_FP2_SDK_v1.1\mywork\S60_Platform_Access_Points_Example_with_Roaming_Support_v1
    _0_en\S60_Platform_Access_Points_Example_with_Roaming_Support_v1_0\APExample\gro
    up\WINSCW.make" MAKEFILE VERBOSE=-s
    make -s  -C \S60\devices\S60_3rd_FP2_SDK_v1.1\mywork\S60_Platform_Access_Points_
    Example_with_Roaming_Support_v1_0_en\S60_Platform_Access_Points_Example_with_Roa
    ming_Support_v1_0\APExample\group -f "ICON.MK" TO_ROOT=..\..
    省略一下...
    \S60_
    3rd_FP2_SDK_v1.1\mywork\S60_Platform_Access_Points_Example_with_Roaming_Support_
    v1_0_en\S60_Platform_Access_Points_Example_with_Roaming_Support_v1_0\APExample\g
    roup PLATFORM=WINSCW MAKMAKE
    perl -S makmake.pl  -D \S60\devices\S60_3rd_FP2_SDK_v1.1\mywork\S60_Platform_Acc
    ess_Points_Example_with_Roaming_Support_v1_0_en\S60_Platform_Access_Points_Examp
    le_with_Roaming_Support_v1_0\APExample\group\IAPCONNECT WINSCW
    ERROR: Unable to identify a valid CodeWarrior for Symbian OS installation
    make: *** [MAKEFILEIAPCONNECT] Error 255
      make -r  -f "\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\S60\devices\S60_3r
    d_FP2_SDK_v1.1\mywork\S60_Platform_Access_Points_Example_with_Roaming_Support_v1
    _0_en\S60_Platform_Access_Points_Example_with_Roaming_Support_v1_0\APExample\gro
    up\WINSCW.make" LIBRARY VERBOSE=-s
    make -s  -C \S60\devices\S60_3rd_FP2_SDK_v1.1\mywork\S60_Platform_Access_Points_
    Example_with_Roaming_Support_v1_0_en\S60_Platform_Access_Points_Example_with_Roa
    ming_Support_v1_0\APExample\group -f "ICON.MK" TO_ROOT=..\..
    省略一下...
    \..\..\S60\devices\S60_
    3rd_FP2_SDK_v1.1\mywork\S60_Platform_Access_Points_Example_with_Roaming_Support_
    v1_0_en\S60_Platform_Access_Points_Example_with_Roaming_Support_v1_0\APExample\g
    roup PLATFORM=WINSCW LIB
    make -s  -r -f "\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\S60\devices\S60_3
    rd_FP2_SDK_v1.1\mywork\S60_Platform_Access_Points_Example_with_Roaming_Support_v
    1_0_en\S60_Platform_Access_Points_Example_with_Roaming_Support_v1_0\APExample\gr
    oup\IAPCONNECT\WINSCW\IAPCONNECT.WINSCW" LIBRARY
    make[1]: \S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\S60\devices\S60_3rd_FP2_
    SDK_v1.1\mywork\S60_Platform_Access_Points_Example_with_Roaming_Support_v1_0_en\
    S60_Platform_Access_Points_Example_with_Roaming_Support_v1_0\APExample\group\IAP
    CONNECT\WINSCW\IAPCONNECT.WINSCW: No such file or directory
    make[1]: *** No rule to make target `\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BU
    ILD\S60\devices\S60_3rd_FP2_SDK_v1.1\mywork\S60_Platform_Access_Points_Example_w
    ith_Roaming_Support_v1_0_en\S60_Platform_Access_Points_Example_with_Roaming_Supp
    ort_v1_0\APExample\group\IAPCONNECT\WINSCW\IAPCONNECT.WINSCW'.  Stop.
    make: *** [LIBRARYIAPCONNECT] Error 2
      make -r  -f "\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\S60\devices\S60_3r
    d_FP2_SDK_v1.1\mywork\S60_Platform_Access_Points_Example_with_Roaming_Support_v1
    _0_en\S60_Platform_Access_Points_Example_with_Roaming_Support_v1_0\APExample\gro
    up\WINSCW.make" RESOURCE CFG=UDEB VERBOSE=-s
    make -s  -C \S60\devices\S60_3rd_FP2_SDK_v1.1\mywork\S60_Platform_Access_Points_
    Example_with_Roaming_Support_v1_0_en\S60_Platform_Access_Points_Example_with_Roa
    ming_Support_v1_0\APExample\group -f "ICON.MK" TO_ROOT=..\..
    省略一下...
    \S60_Platform_Access_Points_Example_with_Roaming_Support_
    v1_0_en\S60_Platform_Access_Points_Example_with_Roaming_Support_v1_0\APExample\g
    roup PLATFORM=WINSCW CFG=UDEB RESOURCE
    MifConv version 1.11 build (49, SVG stand-alone).
    Checking: ..\gfx\IAPExample.svg
    Choosing...
    Used from: \S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\tools\SVGTBINENCODE.exe.
    Convert files...
    .
    Loading mif icons...
    Loading file: \S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\BUILD\s60\icons\temp\s1bs
    .tmp\.._gfx_IAPExample.svgb
    Writing mif: \S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\release\WINSCW\UDEB\Z\reso
    urce\apps\IAPExample_aif.mif
    make -s  -r -f "\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\S60\devices\S60_3
    rd_FP2_SDK_v1.1\mywork\S60_Platform_Access_Points_Example_with_Roaming_Support_v
    1_0_en\S60_Platform_Access_Points_Example_with_Roaming_Support_v1_0\APExample\gr
    oup\IAPCONNECT\WINSCW\IAPCONNECT.WINSCW" RESOURCEUDEB
    make[1]: \S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\S60\devices\S60_3rd_FP2_
    SDK_v1.1\mywork\S60_Platform_Access_Points_Example_with_Roaming_Support_v1_0_en\
    S60_Platform_Access_Points_Example_with_Roaming_Support_v1_0\APExample\group\IAP
    CONNECT\WINSCW\IAPCONNECT.WINSCW: No such file or directory
    make[1]: *** No rule to make target `\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BU
    ILD\S60\devices\S60_3rd_FP2_SDK_v1.1\mywork\S60_Platform_Access_Points_Example_w
    ith_Roaming_Support_v1_0_en\S60_Platform_Access_Points_Example_with_Roaming_Supp
    ort_v1_0\APExample\group\IAPCONNECT\WINSCW\IAPCONNECT.WINSCW'.  Stop.
    make: *** [RESOURCEIAPCONNECT] Error 2
      make -r  -f "\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\S60\devices\S60_3r
    d_FP2_SDK_v1.1\mywork\S60_Platform_Access_Points_Example_with_Roaming_Support_v1
    _0_en\S60_Platform_Access_Points_Example_with_Roaming_Support_v1_0\APExample\gro
    up\WINSCW.make" TARGET CFG=UDEB VERBOSE=-s
    make -s  -C \S60\devices\S60_3rd_FP2_SDK_v1.1\mywork\S60_Platform_Access_Points_
    Example_with_Roaming_Support_v1_0_en\S60_Platform_Access_Points_Example_with_Roa
    ming_Support_v1_0\APExample\group -f "ICON.MK" TO_ROOT=..\..\..\..\..\..\..\.. E
    POCBLD=..\..\..\..\..\..\..\..\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\S60
    \devices\S60_3rd_FP2_SDK_v1.1\mywork\S60_Platform_Access_Points_Example_with_Roa
    ming_Support_v1_0_en\S60_Platform_Access_Points_Example_with_Roaming_Support_v1_
    0\APExample\group\ICON\WINSCW TO_BLDINF=..\..\..\..\..\..\..\..\S60\devices\S60_
    3rd_FP2_SDK_v1.1\mywork\S60_Platform_Access_Points_Example_with_Roaming_Support_
    v1_0_en\S60_Platform_Access_Points_Example_with_Roaming_Support_v1_0\APExample\g
    roup PLATFORM=WINSCW CFG=UDEB BLD
    make -s  -r -f "\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\S60\devices\S60_3
    rd_FP2_SDK_v1.1\mywork\S60_Platform_Access_Points_Example_with_Roaming_Support_v
    1_0_en\S60_Platform_Access_Points_Example_with_Roaming_Support_v1_0\APExample\gr
    oup\IAPCONNECT\WINSCW\IAPCONNECT.WINSCW" UDEB
    make[1]: \S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\S60\devices\S60_3rd_FP2_
    SDK_v1.1\mywork\S60_Platform_Access_Points_Example_with_Roaming_Support_v1_0_en\
    S60_Platform_Access_Points_Example_with_Roaming_Support_v1_0\APExample\group\IAP
    CONNECT\WINSCW\IAPCONNECT.WINSCW: No such file or directory
    make[1]: *** No rule to make target `\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BU
    ILD\S60\devices\S60_3rd_FP2_SDK_v1.1\mywork\S60_Platform_Access_Points_Example_w
    ith_Roaming_Support_v1_0_en\S60_Platform_Access_Points_Example_with_Roaming_Supp
    ort_v1_0\APExample\group\IAPCONNECT\WINSCW\IAPCONNECT.WINSCW'.  Stop.
    make: *** [TARGETIAPCONNECT] Error 2
      make -r  -f "\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\S60\devices\S60_3r
    d_FP2_SDK_v1.1\mywork\S60_Platform_Access_Points_Example_with_Roaming_Support_v1
    _0_en\S60_Platform_Access_Points_Example_with_Roaming_Support_v1_0\APExample\gro
    up\WINSCW.make" FINAL CFG=UDEB VERBOSE=-s
    make -s  -C \S60\devices\S60_3rd_FP2_SDK_v1.1\mywork\S60_Platform_Access_Points_
    Example_with_Roaming_Support_v1_0_en\S60_Platform_Access_Points_Example_with_Roa
    ming_Support_v1_0\APExample\group -f "ICON.MK" TO_ROOT=..\..\..\..\..\..\..\.. E
    POCBLD=..\..\..\..\..\..\..\..\S60\devices\S60_3rd_FP2_SDK_v1.1\EPOC32\BUILD\S60
    \devices\S60_3rd_FP2_SDK_v1.1\mywork\S60_Platform_Access_Points_Example_with_Roa
    ming_Support_v1_0_en\S60_Platform_Access_Points_Example_with_Roaming_Support_v1_
    0\APExample\group\ICON\WINSCW TO_BLDINF=..\..\..\..\..\..\..\..\S60\devices\S60_
    3rd_FP2_SDK_v1.1\mywork\S60_Platform_Access_Points_Example_with_Roaming_Support_
    v1_0_en\S60_Platform_Access_Points_Example_with_Roaming_Support_v1_0\APExample\g
    roup PLATFORM=WINSCW CFG=UDEB FINAL
    
    C:\S60\devices\S60_3rd_FP2_SDK_v1.1\mywork\S60_Platform_Access_Points_Example_wi
    th_Roaming_Support_v1_0_en\S60_Platform_Access_Points_Example_with_Roaming_Suppo
    rt_v1_0\APExample\group>
    请问这可能是什么原因呢?
    会不会是代码中添了一些S60 5th Edition 的东东导致在S60 3rd中不能用的原因呢?请求大家帮帮忙,我找了一天都没找着错的地方在哪

  2. #2
    Regular Contributor softstarxy's Avatar
    Join Date
    Feb 2008
    Posts
    98
    是不是配置环境的问题,我在fp2的SDK上编译没有错误,也能正常启动

  3. #3
    Registered User xiaopohai's Avatar
    Join Date
    Feb 2009
    Posts
    10
    Quote Originally Posted by softstarxy View Post
    是不是配置环境的问题,我在fp2的SDK上编译没有错误,也能正常启动
    发现是工程所放的目录不正确的缘故......

Similar Threads

  1. comple error: no rule to make target
    By terry_xin in forum Symbian C++
    Replies: 1
    Last Post: 2008-03-10, 18:23
  2. No rule to make target
    By doesitmatter in forum Symbian C++
    Replies: 3
    Last Post: 2007-11-22, 07:08
  3. errors when building?
    By neilxp in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2007-04-18, 14:10
  4. [Pys60, 3rd Ed.] build problems
    By MHOOO in forum Python
    Replies: 3
    Last Post: 2007-04-09, 19:00
  5. Strange Compilation error
    By stefano.garusi in forum Symbian C++
    Replies: 7
    Last Post: 2006-10-09, 12:54

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved