Errors Compiling in Windows Vista
| Fri, 2007-03-16 18:12 | |
|
Hello all!
I have a very strange behaivor of the SDK environment. I hope somebody here can help me. I have installed the development tools in a new computer and it can not compile the projects, I have make the same installation with the same steps and files in other computers but this is the only one that fails. The difference is that this PC has windows Vista, the others have Windows XP. What I have installed is: VS 2003, ActivePerl, S60 SDK and Carbide_vs. Open VS, create a new proyect hello world to Symbian 9 and try to compile. It works fine for the emulator, but when triying to build the release I got: C:\Development\Symbian1\Symbian1\group\Symbian1.GCCE:76: *** missing separator. Stop. ERROR: RCMake failed: (Make): make command exited with result 2. (Reason: The system cannot find the file specified.) when open the GCCE file, on the reffered line, there is: CC_INSTALL_PATH=libgcc.a \.. instead of: CC_INSTALL_PATH=C:\Program Files\CSL Arm Toolchain\bin\.. which is that line in the other PC. I correct this line and the same problem appear in other line, I change it too, and keep the GCCE file with read-only permissions, right now I get the following error: arm-none-symbianelf-g++ -Wall -Wno-ctor-dtor-privacy (....) (null) tried to spawn cc1plus but failed: The system cannot find the file specified. I have found that one in Nokia Forum, but no responses, perhaps is an Issue of Vista. Does anybody have a Vista-installed PC with SDK S60 working? Does anybody know any test that I can do for catching more information? Does anybody knows if this is an issue of window vista? Thanks for your help. |
|






Forum posts: 6
Forum posts: 1
I had exactly the same problem, only for me it was UIQ 3 SDK that worked pre-Vista and not after, and the S60_2 SDK worked fine
Anyway, after doing the same as you described (editting the .GCCE file to correct it) and finding the same problem executing cc1plus I found that adding c:\program files\csl arm toolchain\libexec\gcc\arm-none-symbianelf\3.4.3 to my path as well as ...\bin and ...\arm-none-symbianelf\bin solved that problem.
I also had to make sure these are in the path before c:\program files\common files\symbian\tools (if its there).
I then found that it couldn't find several libraries.
This can be fixed by editting the GCCE.mk file in C:\Symbian\UIQ3SDK\epoc32\tools\compilation_config\, which is included in the .GCCE file.
My hacky fix here was to add -L"c:\program files\csl arm toolchain\arm-none-symbianelf\lib" -L"c:\program files\csl arm toolchain\lib\gcc\arm-none-symbianelf\3.4.3" to the end of SYMBIAN_UREL_LINK_FLAGS
You can also do a slightly cleaner version of the first fix you mentioned in GCCE.mk by setting the CC_INSTALL_PATH variable, which effectively skips that problem. Unfortunately the second occurance (in the INCDIR line) doesn't appear to be fixable like this so in the end you're stuck with setting the .GCCE file to read-only.
All of this is highly inconvenient and hopefully someone at Symbian will eventually let us know what we're doing wrong.
In the mean time at least I can now build executables.
(BTW I posted the first part of this as a reply to the thread you mentioned on the Nokia forum)
HTH
Cheers,
Gary
Forum posts: 1886
For me the fix are:
- install the S60 SDK before the UIQ SDK and install the Gnu toolchain with the S60 SDK.
- if you can't do that, adding c:\program files\csl arm toolchain\bin to the PATH did the trick (you may have to restart your computer so that the new path is really taken into account).
Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant
Forum posts: 2
The PATH was in the correct order, that problem was easy to detect
Editing the GCCE.mk sounds like a good solution, but I also think that somebody on Symbian would let us know wheat are we doing wrong, but I think is a OS incompatibility.
eric, I made the same installation in both PCs, the only difference was the OS version.
Forum posts: 5
Here's the patch from nokia for cl_bpabi.pl:
http://wiki.forum.nokia.com/index.php/Forum_Nokia_Wiki:Moving_to_Windows_Vista_%28tm%29
Similar (if not identical) changes should work for UIQ.
Also, I couldn't get the link to work based on the directions from the FN wiki, I used Gary's "hacky fix" to the SYMBIAN_UREL_LINK_FLAGS
and then I could create the final executable. I didn't have to modify my PATH at all.
Cheers,
Tim
Forum posts: 5
Changing the PATH, the cl_bpabi.pm file and then the GCCE.mk file according to the information above, helped me to compile
abld build gcce urel
on Windows Vista as well.
However: now "bldmake bldfiles" does not work. It will cause the error:
cpp.EXE: Too many argumentsBLDMAKE ERROR: ERROR: cpp.exe returned non-zero exit status (8448)
So, for the moment, I need to have two different GCCE.mk files, one for building (with the additional libraries added to SYMBIAN_UREL_LINK_FLAGS) and one for making the bldfiles. Moreover, these two mk files cannot be in the same "compilation_config" directory. All mk files located in this directory get executed.
Obviously, this is quite a messy solution. Any help, at least to solve the "double gcce.mk file" problem would be appreciated.
Thanks,
Machiel