Rockbox Development > Starting Development and Compiling
error message when compiling
(1/1)
nofish:
I tried compiling the source code for the first time using Cygwin (installed following these instructions:
http://www.rockbox.org/wiki/CygwinInstallWithScreenShots)
and compiling following these instructions:
http://www.rockbox.org/wiki/SimpleGuideToCompiling
Please see attached image for error message.
Any help what did I do wrong ?
GodEater:
Clean out the contents of the rockbox/build directory you have there, and start again.
nofish:
I started from scratch again.
Un- and re-installed Cygwin (paid special attention that I included all packages from the instructions, installed Cygwin from cmd line with Setup.exe -X, as described), tried again, same result.
(see image Rockbox2)
PS:
Using Google, it seems that others have this problem, too.
http://cygwin.com/ml/cygwin/2009-03/msg00511.html
Update:
Meanwhile I've tried compiling using VMWare described here
http://www.rockbox.org/wiki/VMwareDevelopmentPlatform
It seemed to compile ok (see Image Rockbox3)
My questios are:
How do I access the created rockbox.zip (it can be seen in the screenshot) and (that's why I'm going through the whole procedure...) how do I apply a patch using the VMWare method ?
Thanks for help.
update 2:
Finally got it working with the help of this thread (esp. post #15):
http://www.anythingbutipod.com/forum/showthread.php?t=37089
I'd still like to know what the problem with Cygwin is though.
Apart from this, all is well now. Phew ! I'll stop my monologue now. ;D
[Saint]:
nofish,
It seems like the error you were having in cygwin is because cygWin is looking for a file in the RockBox Source code which isn't there (../rockbox/apps/action.c) and if the Source code was downloaded correctly, it should indeed be there...
That'd be the first thing to look at, the second being:
Did You make sure to set the cross-compiler paths in your ~/.bashrc file (not the only place to do this, but the preferred one)?
I had a similar problem with CygWin spitting errors at me on compiling, but stuck with trying to figure it out and now I can compile fine using CygWin (which I prefer over VMware...but that's personal opinion).
This is what *I* found I had to do:
From C:// I created:
C://Cygwin
In this .dir I created (*notice no spaces in the .dir's):
C://Cygwin/Cygwin_Application
C://Cygwin/Cygwin_Local_Package_Directory
C://Cygwin/SVN_Source
(file names should explain where I placed everything)
I downloaded CygWin and pointed the Setup to use the .dir's I'd just created but DID NOT download the precompiled cross-compilers from RockBox (the second time you run the CygWin Setup as per instruction in "CygWin with Screenshots"), but instead used the script ../tools/rockboxdev.sh which automates the process with the exception of setting the cross-compiler path.
On completion (and it WILL take a long time) rockboxdev.sh will generate the line of code that is to be added to the end of the user's ~/.bashrc file depending on which packages were installed by it.
If you installed all of them it's:
PATH=$PATH:/usr/local/arm-elf/bin:/usr/local/m68k-elf/bin:/usr/local/sh-elf/bin
export PATH
Edit ~/.bashrc using VIM or nano, not Notepad or Wordpad though.
It is important to note that rockboxdev.sh simply automates this procedure, it is not a different result.
If the cross-compiler directories were downloaded and extracted correctly, the end result will be the same.
The script simply removes some potential for user error during the cross-compiler installation.
If all went well, then I should see no reason why it shouldn't work.
[St.]
EDIT:
You'll need to download the Rockbox Source via SVN *before* running ../tools/rockboxdev.sh as it's included as a part of the source code, not as a part of CygWin.
Also:
In the "Package Selection" portion of the install, make your life a little easier by checking the boxes for nano or VIM, and either Curl or Wget (or both, or all).
EDIT:
There wasn't any spaces in the route to the build directory (or any cygwin .dir) was there?
Does/did CygWin have the approprate permissions to access the rockbox source .dir on your system?
nofish:
Thanks a lot for the detailed answer (and reading my long post).
For now I reached my goal compiling fine with VMWare. (I did this for testing a patch I was interested in).
So, next time I'll compile I'll consider your advice and post back.
PS:
I also prefer Cygwin over VMWare so your advice is appreciated.
Navigation
[0] Message Index
Go to full version