RCOMP produces cryptic messages instead of telling "xy.rh not found"
Hi!
I am new to Symbian C++, I am creating a GPS project, I just created my first application, and import gps example from here:
[URL="http://wiki.forum.nokia.com/index.php/GPS_API_in_S60_3rd_Edition"]http://wiki.forum.nokia.com/index.php/GPS_API_in_S60_3rd_Edition[/URL]
I added the files according to the example. but experienced some error, and finally an error which I cannot resolve it.
[FONT="Courier New"]***Invoking abld command
perl.exe -S ABLD.PL \Programs\Symbian\Carbide\workspace\FirstGps\group\ resource winscw udeb
make -r -f "\Programs\Nokia\Devices\Nokia_Symbian3_SDK_v0.9\EPOC32\BUILD\Programs\Symbian\Carbide\workspace\FirstGps\group\WINSCW.make" RESOURCE CFG=UDEB VERBOSE=-s
make -s -r -f "\Programs\Nokia\Devices\Nokia_Symbian3_SDK_v0.9\EPOC32\BUILD\Programs\Symbian\Carbide\workspace\FirstGps\group\FIRSTGPS\WINSCW\FIRSTGPS.WINSCW" RESOURCEUDEB
9) : syntax error
RCOMP failed with code 1
* RCOMP failed - deleting output files
make[1]: *** [\Programs\Nokia\Devices\Nokia_Symbian3_SDK_v0.9\epoc32\data\z\private\10003a3f\apps\FirstGps_reg.r01] Error 1
make: *** [RESOURCEFIRSTGPS] Error 2
Total Time: 2 sec
***Invoking abld command
perl.exe -S ABLD.PL \Programs\Symbian\Carbide\workspace\FirstGps\group\ target winscw udeb
make -r -f "\Programs\Nokia\Devices\Nokia_Symbian3_SDK_v0.9\EPOC32\BUILD\Programs\Symbian\Carbide\workspace\FirstGps\group\WINSCW.make" TARGET CFG=UDEB VERBOSE=-s
make -j 4 -s -r -f "\Programs\Nokia\Devices\Nokia_Symbian3_SDK_v0.9\EPOC32\BUILD\Programs\Symbian\Carbide\workspace\FirstGps\group\FIRSTGPS\WINSCW\FIRSTGPS.WINSCW" UDEB
9) : syntax error
RCOMP failed with code 1
* RCOMP failed - deleting output files
make[1]: *** [\Programs\Nokia\Devices\Nokia_Symbian3_SDK_v0.9\epoc32\data\z\private\10003a3f\apps\FirstGps_reg.r01] Error 1
make[1]: *** Waiting for unfinished jobs....
mwldsym2.exe: warning: Multiply defined symbol: ___get_MSL_init_count in
mwldsym2.exe: warning: files uc_cwhelp.obj (EEXE.LIB), startup.win32.c.obj (MSL_All_MSE_Symbian_D.lib),
mwldsym2.exe: warning: keeping definition in startup.win32.c.obj
make: *** [TARGETFIRSTGPS] Error 2
[/FONT]
and in the IDE, this errors:
1296278731793 * RCOMP failed - deleting output files FirstGps Unknown C/C++ Problem
1296278731794 RCOMP failed with code 1 FirstGps Unknown C/C++ Problem
please help me.
Re: * RCOMP failed - deleting output files
Have you installed ActivePerl 5.6.1 and set Environment Variable perl bin path?
Symbian is required ActivePerl for compilation.......
Re: * RCOMP failed - deleting output files
yes, I have ActivePerl-5.12.2.1203-MSWin32-x64-294165 installed.
Re: * RCOMP failed - deleting output files
I added these lines to the mmp file, and successfully compiled.
SYSTEMINCLUDE \epoc32\include\mw
SYSTEMINCLUDE \epoc32\include\platform
SYSTEMINCLUDE \epoc32\include\platform\mw
SYSTEMINCLUDE \epoc32\include\bafl
but why????!!!!! How???!!!
why this compiler/IDE is very bad.
Re: * RCOMP failed - deleting output files
You are right, the compiler should indicate when it does not find the include files. I could move this thread to the Feedback board ([url]http://discussion.forum.nokia.com/forum/forumdisplay.php?116-Tools-and-SDK-Feedback[/url]), if you agree.
Re: * RCOMP failed - deleting output files
ok, thanks a lot. I completely agree with this.
Re: * RCOMP failed - deleting output files
[QUOTE=margani;814418]I added these lines to the mmp file, and successfully compiled.
SYSTEMINCLUDE \epoc32\include\mw
SYSTEMINCLUDE \epoc32\include\platform
SYSTEMINCLUDE \epoc32\include\platform\mw
SYSTEMINCLUDE \epoc32\include\bafl
but why????!!!!! How???!!!
why this compiler/IDE is very bad.[/QUOTE]
The "why?" and "how?" parts are very easy to explain. You are using a new SDK, with a new compiler, on an old project clearly not designed/optimized for it, and you have not read the minimal [URL="http://library.forum.nokia.com/topic/Nokia_Symbian3_Developers_Library/GUID-021E8B9C-4A1B-4C6D-B69E-4337A766C39A.html?resultof=%22%70%6f%72%74%69%6e%67%22%20%22%70%6f%72%74%22%20"]porting guide[/URL]. This porting guide says that you must add one line to the MMP file, a macro that will then include all the above directories, and more.
I would assume that the resource compiler (rcomp) hasn't been updated in a while. Maybe it would be a good idea to do it now, but I guess it will only happen if we see it having significant impact on Qt SDK's developer experience. The compiler does tell you however that you have a syntax error ( on line 9 of FirstGps_reg.rss? ) so locating the error is not impossible.
Re: * RCOMP failed - deleting output files
Anyway, it is moved now, and given a more descriptive title.