×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Nokia Developer Expert
    Join Date
    Jun 2007
    Location
    Moscow, Russia
    Posts
    1,355

    Another HelloWorld Build Error

    Hi,
    I'm a noob and have a compilation problem with carbide.c++

    My steps:
    1. Install Carbide.c++ 1.2.b29 to default path.
    2. Install s60_2nd_sdk_fp3.zip to default path.
    3. Run Corbide. Look at Window\Preferences\SDK Preferences and check SDK. It's OK.
    4. Exec File\New\Symbian OS Project... Select "2nd Ed. Hello world GUI application". (It's saved by default in \Symbian\Carbide\workspace). Select all build configurations and press finish.
    5. I have a new project. Menu item "Project\Active build configuration" is set to Emulator debug WINSCW.
    6. Then I click Build Target only. I have following errors:

    Code:
    ***Generating makefiles.
    C:\WINDOWS\system32\cmd.exe /c bldmake bldfiles WINSCW UDEB 
    
    Total Time: 1 sec
    ***Performing full build for configuration... Emulator Debug (WINSCW) [S60_2nd_FP3].
    C:\WINDOWS\system32\cmd.exe /c abld  build WINSCW UDEB  -v 
      make -r  -f "\Symbian\8.1a\S60_2nd_FP3\EPOC32\BUILD\SYMBIAN\CARBIDE\WORKSPACE\TEST3\GROUP\EXPORT.make" EXPORT
    Nothing to do
      make -r  -f "\Symbian\8.1a\S60_2nd_FP3\EPOC32\BUILD\SYMBIAN\CARBIDE\WORKSPACE\TEST3\GROUP\WINSCW.make" MAKEFILE
    Bareword found where operator expected at C:/Symbian/8.1a/S60_2nd_FP3/epoc32/tools/perllib/params.pm line 461, near "New CParamItem"
    	(Do you need to predeclare New?)
    Bareword found where operator expected at C:/Symbian/8.1a/S60_2nd_FP3/epoc32/tools/perllib/params.pm line 466, near "New CParamItem"
    	(Do you need to predeclare New?)
    syntax error at C:/Symbian/8.1a/S60_2nd_FP3/epoc32/tools/perllib/params.pm line 461, near "New CParamItem"
    syntax error at C:/Symbian/8.1a/S60_2nd_FP3/epoc32/tools/perllib/params.pm line 466, near "New CParamItem"
    Compilation failed in require at C:/Symbian/8.1a/S60_2nd_FP3/epoc32/tools/perllib/args.pm line 19.
    BEGIN failed--compilation aborted at C:/Symbian/8.1a/S60_2nd_FP3/epoc32/tools/perllib/args.pm line 19.
    Compilation failed in require at C:\Symbian\8.1a\S60_2nd_FP3\epoc32\tools/cshlpcmp.pl line 58.
    BEGIN failed--compilation aborted at C:\Symbian\8.1a\S60_2nd_FP3\epoc32\tools/cshlpcmp.pl line 58.
    make[2]: *** [MAKMAKE] Error 2
    make[1]: *** [MAKMAKE] Error 2
    make: *** [MAKEFILEBUILD_HELP] Error 2
    perl -S extmake.pl   WINSCW -d \Symbian\8.1a\S60_2nd_FP3\EPOC32\BUILD\SYMBIAN\CARBIDE\WORKSPACE\TEST3\HELP\BUILD_HELP_MK\WINSCW -f BUILD_HELP.MK -c "make   -C \SYMBIAN\CARBIDE\WORKSPACE\TEST3\HELP -f \"BUILD_HELP.MK\" TO_ROOT=..\..\..\..\.. PLATFORM=WINSCW  $@"
    make[2]: Entering directory `C:/SYMBIAN/CARBIDE/WORKSPACE/TEST3/HELP'
    cshlpcmp test3.cshlp
    make[2]: Leaving directory `C:/SYMBIAN/CARBIDE/WORKSPACE/TEST3/HELP'
      make -r  -f "\Symbian\8.1a\S60_2nd_FP3\EPOC32\BUILD\SYMBIAN\CARBIDE\WORKSPACE\TEST3\GROUP\WINSCW.make" LIBRARY
    make[1]: \Symbian\8.1a\S60_2nd_FP3\EPOC32\BUILD\SYMBIAN\CARBIDE\WORKSPACE\TEST3\GROUP\TEST3\WINSCW\TEST3.WINSCW: No such file or directory
    make[1]: *** No rule to make target `\Symbian\8.1a\S60_2nd_FP3\EPOC32\BUILD\SYMBIAN\CARBIDE\WORKSPACE\TEST3\GROUP\TEST3\WINSCW\TEST3.WINSCW'.  Stop.
    make: *** [LIBRARYTEST3] Error 2
    make[2]: Entering directory `C:/SYMBIAN/CARBIDE/WORKSPACE/TEST3/HELP'
    make[2]: Leaving directory `C:/SYMBIAN/CARBIDE/WORKSPACE/TEST3/HELP'
    make   -r -f "\Symbian\8.1a\S60_2nd_FP3\EPOC32\BUILD\SYMBIAN\CARBIDE\WORKSPACE\TEST3\GROUP\TEST3\WINSCW\TEST3.WINSCW" LIBRARY
    make[1]: Entering directory `C:/SYMBIAN/CARBIDE/WORKSPACE/TEST3/GROUP'
    make[1]: Leaving directory `C:/SYMBIAN/CARBIDE/WORKSPACE/TEST3/GROUP'
      make -r  -f "\Symbian\8.1a\S60_2nd_FP3\EPOC32\BUILD\SYMBIAN\CARBIDE\WORKSPACE\TEST3\GROUP\WINSCW.make" RESOURCE CFG=UDEB
    make[1]: \Symbian\8.1a\S60_2nd_FP3\EPOC32\BUILD\SYMBIAN\CARBIDE\WORKSPACE\TEST3\GROUP\TEST3\WINSCW\TEST3.WINSCW: No such file or directory
    make[1]: *** No rule to make target `\Symbian\8.1a\S60_2nd_FP3\EPOC32\BUILD\SYMBIAN\CARBIDE\WORKSPACE\TEST3\GROUP\TEST3\WINSCW\TEST3.WINSCW'.  Stop.
    make: *** [RESOURCETEST3] Error 2
    make[2]: Entering directory `C:/SYMBIAN/CARBIDE/WORKSPACE/TEST3/HELP'
    make[2]: Leaving directory `C:/SYMBIAN/CARBIDE/WORKSPACE/TEST3/HELP'
    make   -r -f "\Symbian\8.1a\S60_2nd_FP3\EPOC32\BUILD\SYMBIAN\CARBIDE\WORKSPACE\TEST3\GROUP\TEST3\WINSCW\TEST3.WINSCW" RESOURCEUDEB
    make[1]: Entering directory `C:/SYMBIAN/CARBIDE/WORKSPACE/TEST3/GROUP'
    make[1]: Leaving directory `C:/SYMBIAN/CARBIDE/WORKSPACE/TEST3/GROUP'
      make -r  -f "\Symbian\8.1a\S60_2nd_FP3\EPOC32\BUILD\SYMBIAN\CARBIDE\WORKSPACE\TEST3\GROUP\WINSCW.make" TARGET CFG=UDEB
    make[1]: \Symbian\8.1a\S60_2nd_FP3\EPOC32\BUILD\SYMBIAN\CARBIDE\WORKSPACE\TEST3\GROUP\TEST3\WINSCW\TEST3.WINSCW: No such file or directory
    make[1]: *** No rule to make target `\Symbian\8.1a\S60_2nd_FP3\EPOC32\BUILD\SYMBIAN\CARBIDE\WORKSPACE\TEST3\GROUP\TEST3\WINSCW\TEST3.WINSCW'.  Stop.
    make: *** [TARGETTEST3] Error 2
    make[2]: Entering directory `C:/SYMBIAN/CARBIDE/WORKSPACE/TEST3/HELP'
    make[2]: Leaving directory `C:/SYMBIAN/CARBIDE/WORKSPACE/TEST3/HELP'
    make   -r -f "\Symbian\8.1a\S60_2nd_FP3\EPOC32\BUILD\SYMBIAN\CARBIDE\WORKSPACE\TEST3\GROUP\TEST3\WINSCW\TEST3.WINSCW" UDEB
    make[1]: Entering directory `C:/SYMBIAN/CARBIDE/WORKSPACE/TEST3/GROUP'
    make[1]: Leaving directory `C:/SYMBIAN/CARBIDE/WORKSPACE/TEST3/GROUP'
      make -r  -f "\Symbian\8.1a\S60_2nd_FP3\EPOC32\BUILD\SYMBIAN\CARBIDE\WORKSPACE\TEST3\GROUP\WINSCW.make" FINAL CFG=UDEB
    make[2]: Entering directory `C:/SYMBIAN/CARBIDE/WORKSPACE/TEST3/HELP'
    make[2]: Leaving directory `C:/SYMBIAN/CARBIDE/WORKSPACE/TEST3/HELP'
    
    Total Time: 4 sec
    Whats going wrong?

  2. #2
    Super Contributor
    Join Date
    May 2003
    Location
    Vancouver, Canada
    Posts
    985

    Re: Another HelloWorld Build Error

    Could you please copy and paste your PATH environment variable?

    Antony
    Antony Pranata
    http://www.antonypranata.com/
    http://www.s60tips.com/

  3. #3
    Nokia Developer Expert
    Join Date
    Jun 2007
    Location
    Moscow, Russia
    Posts
    1,355

    Re: Another HelloWorld Build Error

    USER ENVIROPMENT:
    Code:
    PATH=C:\CBuilderX\bin;C:\Documents and Settings\Труф\Мои документы\Borland Studio Projects\Bpl;C:\Symbian\7.0s\Series60_v21b_CW\Epoc32\tools;C:\Symbian\8.1a\S60_2nd_FP3\Epoc32\tools
    SYSTEM ENVIROPMENT
    Code:
    PATH=C:\Program Files\Common Files\Symbian\Tools;C:\Perl\bin\;C:\CBuilderX\bin;C:\Program Files\Common Files\Borland Shared\BDE\;C:\Program Files\Borland\BDS\3.0\Bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Symbian\7.0s\Series60_v21b_CW\Epoc32\tools;C:\Program Files\Nokia\CodeWarrior for Symbian v3.1\Bin;C:\Program Files\Nokia\CodeWarrior for Symbian v3.1\Symbian_Tools\Command_Line_Tools;C:\Symbian\8.1a\S60_2nd_FP3\Epoc32\tools

  4. #4
    Nokia Developer Expert
    Join Date
    Jun 2007
    Location
    Moscow, Russia
    Posts
    1,355

    Re: Another HelloWorld Build Error

    Then I rebuild project it's log include some info about variables:

    Code:
    ***Building project "TEST5" for configuration "Emulator Debug (WINSCW) [S60_2nd_FP3]"
    
    ***Printing environment variables modified from default:
    MWCSYM2INCLUDES=C:\Program Files\Nokia\Carbide.c++ v1.2\x86Build\Symbian_Support\MSL\MSL_C\MSL_Common\Include;C:\Program Files\Nokia\Carbide.c++ v1.2\x86Build\Symbian_Support\MSL\MSL_C\MSL_Win32\Include;C:\Program Files\Nokia\Carbide.c++ v1.2\x86Build\Symbian_Support\MSL\MSL_C\MSL_X86;C:\Program Files\Nokia\Carbide.c++ v1.2\x86Build\Symbian_Support\MSL\MSL_C++\MSL_Common\Include;+C:\Program Files\Nokia\Carbide.c++ v1.2\x86Build\Symbian_Support\MSL\MSL_Extras\MSL_Common\Include;C:\Program Files\Nokia\Carbide.c++ v1.2\x86Build\Symbian_Support\MSL\MSL_Extras\MSL_Win32\Include;C:\Program Files\Nokia\Carbide.c++ v1.2\x86Build\Symbian_Support\Win32-x86 Support\Headers\Win32 SDK;
    MWSYM2LIBRARIES=C:\Program Files\Nokia\Carbide.c++ v1.2\x86Build\Symbian_Support\Win32-x86 Support\Libraries\Win32 SDK;C:\Program Files\Nokia\Carbide.c++ v1.2\x86Build\Symbian_Support\Runtime\Runtime_x86\Runtime_Win32\Libs
    MWSYM2LIBRARYFILES=MSL_All_MSE_Symbian_D.lib;gdi32.lib;user32.lib;kernel32.lib;
    PATH=C:\Program Files\Nokia\Carbide.c++ v1.2\x86Build\Symbian_Tools\Command_Line_Tools;C:\Symbian\8.1a\S60_2nd_FP3\epoc32\tools;C:\Symbian\8.1a\S60_2nd_FP3\epoc32\gcc\bin;C:\Program Files\Common Files\Symbian\Tools;C:\Perl\bin\;C:\CBuilderX\bin;C:\Program Files\Common Files\Borland Shared\BDE\;C:\Program Files\Borland\BDS\3.0\Bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Symbian\7.0s\Series60_v21b_CW\Epoc32\tools;C:\Program Files\Nokia\CodeWarrior for Symbian v3.1\Bin;C:\Program Files\Nokia\CodeWarrior for Symbian v3.1\Symbian_Tools\Command_Line_Tools;C:\CBuilderX\bin;C:\Documents and Settings\Труф\Мои документы\Borland Studio Projects\Bpl;C:\Symbian\7.0s\Series60_v21b_CW\Epoc32\tools
    EPOCROOT=\Symbian\8.1a\S60_2nd_FP3\
    
    Working Directory: C:/Symbian/Carbide/workspace/TEST5/group
    
    *** Makefile structures up to date. Skipping 'bldmake bldfiles'
    
    ===Build Command = /c abld build WINSCW UDEB -v===
    C:\WINDOWS\system32\cmd.exe /c abld build WINSCW UDEB -v 
      make -r  -f "\Symbian\8.1a\S60_2nd_FP3\EPOC32\BUILD\SYMBIAN\CARBIDE\WORKSPACE\TEST5\GROUP\EXPORT.make" EXPORT
    Nothing to do
      make -r  -f "\Symbian\8.1a\S60_2nd_FP3\EPOC32\BUILD\SYMBIAN\CARBIDE\WORKSPACE\TEST5\GROUP\WINSCW.make" MAKEFILE
    Bareword found where operator expected at C:/Symbian/8.1a/S60_2nd_FP3/epoc32/tools/perllib/params.pm line 461, near "New CParamItem"
    	(Do you need to predeclare New?)

  5. #5
    Nokia Developer Expert
    Join Date
    Jun 2007
    Location
    Moscow, Russia
    Posts
    1,355

    Re: Another HelloWorld Build Error

    I have Active Perl 5.8 instead of 5.6.1.635 from Carbude Help. But I don't think that's important.

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: Another HelloWorld Build Error

    Quote Originally Posted by truf
    I have Active Perl 5.8 instead of 5.6.1.635 from Carbude Help. But I don't think that's important.
    But it is.

  7. #7
    Super Contributor
    Join Date
    May 2003
    Location
    Vancouver, Canada
    Posts
    985

    Re: Another HelloWorld Build Error

    Try to remove C:\Symbian\7.0s\Series60_v21b_CW\Epoc32\tools;C:\Symbian\8.1a\S60_2nd_FP3\Epoc32\tools from your user's PATH environment variable.

    Normally, the Symbian build tool will choose the right folder depending on the default "device". The default device itself can be viewed by typing

    device

    in the Command Prompt.

    Antony
    Antony Pranata
    http://www.antonypranata.com/
    http://www.s60tips.com/

  8. #8
    Nokia Developer Expert
    Join Date
    Jun 2007
    Location
    Moscow, Russia
    Posts
    1,355

    Re: Another HelloWorld Build Error

    Normally, the Symbian build tool will choose the right folder depending on the default "device". The default device itself can be viewed by typing

    device

    in the Command Prompt.
    What Command Prompt you mean? cmd.exe? I think I must run device.pl in epoc32\tools\perllib folder? Is't it? How can I execute it? Or you mean some command line tool tool in Carbide?

  9. #9
    Nokia Developer Expert
    Join Date
    Jun 2007
    Location
    Moscow, Russia
    Posts
    1,355

    Re: Another HelloWorld Build Error

    I try it with ActivePerl-5.6.1.638-MSWin32-x86.msi and ActivePerl-5.6.1.635-MSWin32-x86.msi. With j2re-1_4_2_14-windows-i586-p.exe. But it still not work!
    I think it's require different syntax of header files in epoc32 path.

    There is one of errors:

    Code:
    ..\\..\\..\\..\\8.1A\\S60_2ND_FP3\\EPOC32\\INCLUDE\\e32std.h:5180: parse error before `)'
    ..\\..\\..\\..\\8.1A\\S60_2ND_FP3\\EPOC32\\INCLUDE\\e32std.h:5180: stray '\' in program
    I check e32std.h and found followig:

    Code:
    #define CAPABILITY_AS_TUINT8(cap)											\
    	((TUint8)(int)(															\
    		(cap)==ECapability_None												\
    		? (__invalid_capability_value(*)[1])(ECapability_None)								\
    		: (__invalid_capability_value(*)[((TUint)(cap+1)<=(TUint)ECapability_Limit)?1:2])(cap)	\
    	))
    I think it just can't parse symbol "\" at the end of strings in #define.

    May be I have wrong SDK? I use s60_2nd_sdk_fp3.zip. SERIES 60 2ND EDITION SDK FOR SYMBIAN OS, 17.06.2005 SUPPORTING FEATURE PACK 3.

    But it has WINSCW in target platforms list.

  10. #10
    Nokia Developer Expert
    Join Date
    Jun 2007
    Location
    Moscow, Russia
    Posts
    1,355

    Re: Another HelloWorld Build Error

    I just noticed what helloworld build for WINSCW target and run in debugger successfully.
    But it still not compiled for ARMI or THUMB

  11. #11
    Nokia Developer Expert
    Join Date
    Jun 2007
    Location
    Moscow, Russia
    Posts
    1,355

    Re: Another HelloWorld Build Error

    Yeah. I think I solved that problem.

    I found exectly that problem there: http://discussion.forum.nokia.com/fo...ighlight=stray

    Then I get DOS2UNIX.exe from:
    http://www.bastet.com/uddu.zip

    And convert e32std.h & fepbase.h.

    I think SDK setup save that files with incorrect format. May be becouse Windows Regional Settings. May be something else.

    I had a Win XP Pro SP2 Russian.

    Thank you.

Similar Threads

  1. XMl Parser Implementation for Symbian
    By ittiam in forum Symbian
    Replies: 26
    Last Post: 2009-09-16, 05:26
  2. Parsing file content
    By hendrawan.ashari in forum Symbian
    Replies: 7
    Last Post: 2007-03-09, 10:41
  3. S80 Platform SDK and Visual Studio .NET Linking Error
    By jayantjain in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2005-10-07, 22:14
  4. CEikDialog Question
    By AdamBeck in forum Symbian
    Replies: 2
    Last Post: 2004-09-30, 19:40
  5. camera app compilation problems
    By basarim in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2003-12-31, 18:16

Posting Permissions

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