×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Registered User
    Join Date
    Dec 2004
    Posts
    31

    [error] Building and running the application for target device

    主题:Building and running applications from the Microsoft Visual Studio C++ .NET IDE

    Building and running an application on the emulator: 没有任何问题。

    Building and running the application for target device: 出现错误。
    错误信息 -> BTADVERTISER error PRJ0019: A tool returned an error code from "Performing Makefile project actions"
    请大家帮帮忙,指点一下,谢谢。。。

  2. #2
    Super Contributor
    Join Date
    Apr 2003
    Location
    Tianjin, China
    Posts
    1,534
    仔细检查一下你的开发环境配置,另外用命令行编译看看结果,附上详细些的错误信息。


    Maxying

  3. #3
    Super Contributor
    Join Date
    Mar 2005
    Posts
    3,076
    请将错误信息贴全,A tool returned an error code: "Performing Makefile project actions"只是studio綺常返回的错误信息之一。


    BestRegards
    hoolee

  4. #4
    Registered User
    Join Date
    Apr 2005
    Location
    China PRC
    Posts
    36
    单从"BTADVERTISER error PRJ0019"来看,似乎是BT上面有问题。代码是否是针对模拟器上的测试代码。
    贴出详细错误提示更容易解决问题。

    Hopewell

  5. #5
    Super Contributor
    Join Date
    Apr 2003
    Location
    Tianjin, China
    Posts
    1,534
    这个程序是Symbian中提供的例子,我这里编译没问题。当然,代码本身肯定没问题,只是开发环境配置等问题引起的。


    Maxying

  6. #6
    Super Contributor
    Join Date
    Mar 2005
    Posts
    3,076
    Originally posted by HOPEWELL
    单从"BTADVERTISER error PRJ0019"来看,似乎是BT上面有问题。代码是否是针对模拟器上的测试代码。
    贴出详细错误提示更容易解决问题。

    Hopewell
    BTADVERTISER是其工程名,不是指蓝牙出错,这里给出的信息只是studio出的一般性错误,如果没有更详细的信息,应该是ide的问题。

    BestRegards
    hoolee

  7. #7
    Registered User
    Join Date
    Dec 2004
    Posts
    31
    卸了Series 60 SDK V2.1 for Microsoft Visual Studio .NET 2003,装了Series 60 SDK V2.0 for Microsoft Visual Studio 6.0,在console成功编译。

  8. #8
    Registered User
    Join Date
    Apr 2005
    Location
    China PRC
    Posts
    36
    Originally posted by hoolee
    BTADVERTISER是其工程名,不是指蓝牙出错,这里给出的信息只是studio出的一般性错误,如果没有更详细的信息,应该是ide的问题。

    BestRegards
    hoolee
    呵呵,我没有弄过BT,所以在哪儿胡说一通。还是要向两位大哥多多学习啊。


    Hopewell

  9. #9
    Registered User
    Join Date
    Dec 2004
    Posts
    31

    错误信息

    Updating BtAdvertiser.mmp based on Deb_S60_20_WINS
    Update of mmp file not needed
    Target build using Symbian tool chain
    ------ Build started: Project: BtAdvertiser, Configuration: Rel_S60_20_ARMI Win32 ------

    Performing Makefile project actions
    * Current build configuration: ARMI UREL
    * Creating makefile for platform ARMI
    epocroot =
    * C:\Nokia\Tools\NDS_for_SymbianOS_VS\makmake.bat \PROJS\btadvertiser\group\BtAdvertiser ARMI
    * Running build action: build
    epocroot =
    * C:\Nokia\Tools\NDS_for_SymbianOS_VS\make.bat -f C:\PROJS\btadvertiser\group\BtAdvertiser.ARMI UREL
    dlltool -m arm_interwork --output-def "..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\BUILD\PROJS\BTADVERTISER\GROUP\BTADVERTISER\ARMI\UREL\BTADVERTISER.inf" "..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\BUILD\PROJS\BTADVERTISER\GROUP\BTADVERTISER\ARMI\UREL\BTADVERTISER.in"
    perl -S makedef.pl -Deffile "..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\BUILD\PROJS\BTADVERTISER\GROUP\BTADVERTISER\ARMI\UREL\BTADVERTISER.inf" -1 NewApplication__Fv "..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\BUILD\PROJS\BTADVERTISER\GROUP\BTADVERTISER\ARMI\BTADVERTISER.def"
    dlltool -m arm_interwork --def "..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\BUILD\PROJS\BTADVERTISER\GROUP\BTADVERTISER\ARMI\BTADVERTISER.def" \ --output-exp "..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\BUILD\PROJS\BTADVERTISER\GROUP\BTADVERTISER\ARMI\UREL\BTADVERTISER.exp" \ --dllname "BTADVERTISER[10005b8c].APP"
    ld -s -e _E32Dll -u _E32Dll "..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\BUILD\PROJS\BTADVERTISER\GROUP\BTADVERTISER\ARMI\UREL\BTADVERTISER.exp" --dll \ --base-file "..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\BUILD\PROJS\BTADVERTISER\GROUP\BTADVERTISER\ARMI\UREL\BTADVERTISER.bas" -o "..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\BUILD\PROJS\BTADVERTISER\GROUP\BTADVERTISER\ARMI\UREL\BTADVERTISER.APP" \ "..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\RELEASE\ARMI\UREL\EDLL.LIB" --whole-archive "..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\BUILD\PROJS\BTADVERTISER\GROUP\BTADVERTISER\ARMI\UREL\BTADVERTISER.in" \ --no-whole-archive ..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\RELEASE\ARMI\UREL\EDLLSTUB.LIB ..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\RELEASE\ARMI\UREL\EGCC.LIB ..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\RELEASE\ARMI\UREL\EUSER.LIB ..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\RELEASE\ARMI\UREL\APPARC.LIB ..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\RELEASE\ARMI\UREL\CONE.LIB ..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\RELEASE\ARMI\UREL\EIKCORE.LIB ..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\RELEASE\ARMI\UREL\EIKCOCTL.LIB ..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\RELEASE\ARMI\UREL\AVKON.LIB ..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\RELEASE\ARMI\UREL\BLUETOOTH.LIB ..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\RELEASE\ARMI\UREL\SDPDATABASE.LIB
    dlltool -m arm_interwork \ --def "..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\BUILD\PROJS\BTADVERTISER\GROUP\BTADVERTISER\ARMI\BTADVERTISER.def" \ --dllname "BTADVERTISER[10005b8c].APP" \ --base-file "..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\BUILD\PROJS\BTADVERTISER\GROUP\BTADVERTISER\ARMI\UREL\BTADVERTISER.bas" \ --output-exp "..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\BUILD\PROJS\BTADVERTISER\GROUP\BTADVERTISER\ARMI\UREL\BTADVERTISER.exp"
    ld -s -e _E32Dll -u _E32Dll --dll \ "..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\BUILD\PROJS\BTADVERTISER\GROUP\BTADVERTISER\ARMI\UREL\BTADVERTISER.exp" \ -Map "..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\RELEASE\ARMI\UREL\BTADVERTISER.APP.map" -o "..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\BUILD\PROJS\BTADVERTISER\GROUP\BTADVERTISER\ARMI\UREL\BTADVERTISER.APP" \ "..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\RELEASE\ARMI\UREL\EDLL.LIB" --whole-archive "..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\BUILD\PROJS\BTADVERTISER\GROUP\BTADVERTISER\ARMI\UREL\BTADVERTISER.in" \ --no-whole-archive ..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\RELEASE\ARMI\UREL\EDLLSTUB.LIB ..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\RELEASE\ARMI\UREL\EGCC.LIB ..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\RELEASE\ARMI\UREL\EUSER.LIB ..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\RELEASE\ARMI\UREL\APPARC.LIB ..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\RELEASE\ARMI\UREL\CONE.LIB ..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\RELEASE\ARMI\UREL\EIKCORE.LIB ..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\RELEASE\ARMI\UREL\EIKCOCTL.LIB ..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\RELEASE\ARMI\UREL\AVKON.LIB ..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\RELEASE\ARMI\UREL\BLUETOOTH.LIB ..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\RELEASE\ARMI\UREL\SDPDATABASE.LIB
    petran "..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\BUILD\PROJS\BTADVERTISER\GROUP\BTADVERTISER\ARMI\UREL\BTADVERTISER.APP" "..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\RELEASE\ARMI\UREL\BTADVERTISER.APP" \ -nocall -uid1 0x10000079 -uid2 0x100039ce -uid3 0x10005b8c
    PETRAN - PE file preprocessor V01.00 (Build 183)
    Copyright (c) 1996-2001 Symbian Ltd.
    ERROR: Dll 'BTADVERTISER[10005B8C].APP' has uninitialised data.
    make: *** [..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\RELEASE\ARMI\UREL\BTADVERTISER.APP] Error -2
    ERROR: RCMake failed: (Make): make command exited with result 2
    Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions"

    Build log was saved at "file://c:\Projs\btadvertiser\\BuildLog.htm"
    BtAdvertiser - 1 error(s), 0 warning(s)


    ---------------------- Done ----------------------

    Build: 0 succeeded, 1 failed, 0 skipped

  10. #10
    Super Contributor
    Join Date
    Mar 2005
    Posts
    3,076
    Originally posted by HOPEWELL
    呵呵,我没有弄过BT,所以在哪儿胡说一通。还是要向两位大哥多多学习啊。
    Hopewell
    呵呵,兄弟客气了。这是SDK中的Bluetooth advertiser示例。大家一起学习,共同进步。

  11. #11
    Super Contributor
    Join Date
    Mar 2005
    Posts
    3,076

    Re: 错误信息

    Originally posted by zhangps2
    Updating BtAdvertiser.mmp based on Deb_S60_20_WINS
    Update of mmp file not needed
    Target build using Symbian tool chain
    ------ Build started: Project: BtAdvertiser, Configuration: Rel_S60_20_ARMI Win32 ------
    ...
    ERROR: Dll 'BTADVERTISER[10005B8C].APP' has uninitialised data.
    make: *** [..\..\..\SYMBIAN\7.0S\SERIES60_V20\EPOC32\RELEASE\ARMI\UREL\BTADVERTISER.APP] Error -2
    ERROR: RCMake failed: (Make): make command exited with result 2
    Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions"

    Build log was saved at "file://c:\Projs\btadvertiser\\BuildLog.htm"
    BtAdvertiser - 1 error(s), 0 warning(s)


    ---------------------- Done ----------------------

    Build: 0 succeeded, 1 failed, 0 skipped
    这是因为你的程序中有全局或静态变量,究其訽因是因为symbianOS体系中不允许dll有自己的数据段。将其改为类成员变量或局部变量,或者全局常量也可以。视你的情况而定了。

    BestRegards
    hoolee

  12. #12
    Super Contributor
    Join Date
    Apr 2003
    Location
    Tianjin, China
    Posts
    1,534
    看来你修改过这个例子,那就不用有这么多疑问了啊,直接看看你都修改了哪里更好定位错误。


    Maxying

  13. #13
    Registered User
    Join Date
    Dec 2004
    Posts
    31
    static const TUUID KSerialClassID(TUint32(0x33CEAF1A), TUint(0xAA4C40BD), TUint(0x9BDBC9AB), TUint(0x5492B182));
    代码里这行是错误的。定义对象常量这么办啊?

  14. #14
    Super Contributor
    Join Date
    Mar 2005
    Posts
    3,076
    静态变量是不允许的,正确应该如下:
    Code:
    const static TUid KPlayUid  = { KPlayApplicationUidValue }; 
    或
    const TUid KPlayUid  = { KPlayApplicationUidValue };
    照此修改你的语句。

    BestRegards
    hoolee

  15. #15
    Registered User
    Join Date
    Dec 2004
    Posts
    31
    怎么定义TUUID静态对象常量,128bit。。。

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×