Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  error message when compiling
« previous next »
  • Print
Pages: [1]

Author Topic: error message when compiling  (Read 2126 times)

Offline nofish

  • Member
  • *
  • Posts: 24
error message when compiling
« on: December 23, 2009, 09:59:39 PM »
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 ?



* rockbox.jpg (126.37 kB, 668x775 - viewed 215 times.)
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: error message when compiling
« Reply #1 on: December 24, 2009, 01:53:52 AM »
Clean out the contents of the rockbox/build directory you have there, and start again.
Logged

Read The Manual Please

Offline nofish

  • Member
  • *
  • Posts: 24
Re: error message when compiling
« Reply #2 on: December 24, 2009, 10:27:23 AM »
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



* rockbox2.jpg (125.32 kB, 668x775 - viewed 221 times.)

* rockbox3.jpg (126.79 kB, 1024x768 - viewed 203 times.)
« Last Edit: December 24, 2009, 06:11:27 PM by nofish »
Logged

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: error message when compiling
« Reply #3 on: December 27, 2009, 11:32:28 PM »
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?
« Last Edit: December 28, 2009, 12:27:40 AM by [St.] »
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline nofish

  • Member
  • *
  • Posts: 24
Re: error message when compiling
« Reply #4 on: December 28, 2009, 02:28:21 AM »
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.
 
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  error message when compiling
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.076 seconds with 15 queries.