Rockbox Development > Starting Development and Compiling

Trying to compile for first time -- PATH problems

(1/3) > >>

Slugacannaduff:
I am hoping to get into RB development... and currently FRUSTRATED!

Just trying to compile for the first time, using the current SVN code.  I wanted to make sure I could do that before doing any actual coding myself.   So far its a big fail!

OK, starting from the top:

 - I'm on a win xp machine (media center edition)

 - I setup cygwin.  Seemed to go OK, although I did have to use that - noverify command line.  After adding that, the second setup with adding rockbox packages ran.  The cygwin environment seems to run OK.

 - Following the instructions on Simple Guide to Compiling (and later, How to Compile Rockbox), I can select my target (ipod video = 22), then I select 'N' for build type.

 - HERES THE ERROR: At this point I get  [WARNING] The compiler you need to use (arm-elf-gcc) is not in your PATH!

 - It does however say 'Completed makefile'

 - Then I 'make' and get   make: gcc: command not found  Error 127



Now I have to say...  this stuff is all brand new to me, and I don't have a clue what the heck I am typing.  But I've figured stuff out before and usually can get up and running.

But so far I've tried quite a few things with no success:

 - Followed these instructions to modify PATH in the file cygwin/etc/profile
 
 Edit using nano or vi (not Notepad or Wordpad in Windows) /etc/profile and add ":/opt/sh/bin:/opt/m68k/bin:/opt/arm/bin" (without the quotation marks) to the end of the line that says:

     PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin...
so that it reads:
     PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/opt/sh/bin:/opt/m68k/bin:/opt/arm/bin:$PATH

 - It might be worth mentioning that the original line there did not include the 'X11R6' part.  I tried the line both with and without that.

 - Then I tried this one within cygwin:  export PATH=/usr/local/arm-elf/bin:$PATH

 - Then I tried re-installing the rockbox packages, since the cygwin instructions say the installation script is supposed to get this right.

 - I also tried (at various times) moving my ROCKBOX folder around - should this be a sub-folder of CYGWIN?  Does this matter?

 - FINALLY, if I tell cygwin WHICH ARM-ELF-GCC, I get this response:  /opt/arm/bin/arm-elf-gcc


[/heavy sigh]

I have some ideas that I think will be cool... would really like to try writing code...

Help please?




 




gevaerts:
Did you re-run configure?

Slugacannaduff:
No.

When/how/where do I do this?  After making the PATH change in /etc/profile ?  (The instructions on that don't mention this)

saratoga:
In your build directory just type '../tools/configure' again.  Assuming you've got the path setup correctly it should find the compiler this time.

Slugacannaduff:
Oh, if that's what gevaerts meant by re-running compile, then yes... about 15 times now.  I re-tried that after each of the attempted fixes above.

Assuming you've got the path setup correctly

That's where the problem seems to lie.

When I tell cygwin

   $ which arm-elf-gcc


 I get back

/opt/arm/bin/arm-elf/gcc

Is that correct, or provide a clue as to where the problem is?

Thanks for the help.

 

Navigation

[0] Message Index

[#] Next page

Go to full version