Rockbox Development > Starting Development and Compiling

Compiling rockbox using a mac?

<< < (2/6) > >>

brogan:
Alright... i figured out all those things from before with xcode etc..., but i now i have had a couple of more problems.. first i will show u what i did(ill skip the first couple steps....) i was following the instructions from here: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler, and here: http://www.rockbox.org/twiki/bin/view/Main/SimpleGuideToCompiling .. and the linux section as well...

ok so i ran the rockboxdev.sh file in the tools/ directory.. it ran for a while, and it seemed to have worked.
then i typed,     export PATH=$PATH:/usr/local/arm-elf/bin:/usr/local/m68k-elf/bin:/usr/local/sh-elf/bin        in terminal to set the path.... after that i  created a build directory (build) in the rockbox source directory and then i typed,    ../tools/configure    to run configure, i set it up for an ipod nano (21)with a normal build(N)....
then the problem came when it said:

../tools/configure: line 1: arm-elf-gcc: command not found
../tools/configure: line 1: arm-elf-ld: command not found
WARNING: The compiler you must use (arm-elf-gcc) is not in your path!
WARNING: this may cause your build to fail since we cannot do the
WARNING: checks we want now.
Using arm-elf-ld
Created Makefile
......
and so i tried to just ignore it and i typed,    make    .. and it said( i used ___ for my username, in case u r wondering what ___ means..):

/Users/____/desktop/rockbox-18826/tools/svnversion.sh: line 1: svnversion: command not found
/Users/_____/desktop/rockbox-18826/tools/svnversion.sh: line 1: svnversion: command not found
make[1]: `rdf2binary' is up to date.
make[1]: `convbdf' is up to date.
/usr/bin/gcc     codepages.c   -o codepages
ld: Undefined symbols:
_cp1250_to_uni
_cp1251_to_uni
_cp1256_to_uni
_cp932_table
_cp936_table
_cp949_table
_cp950_table
_iso8859_2_to_uni
_iso8859_7_to_uni
make[1]: *** [codepages] Error 1
make: *** [tools] Error 2
localhost:~/desktop/rockbox-18826/build

after that i typed make zip just to see if anything would happen and a .rockbox directory was created, but lots of the files, esp. plugins were missing.... so
please help... and thanks to those who've helped me so far...

saratoga:

--- Quote from: brogan on October 23, 2008, 12:02:33 AM ---then i typed,     export PATH=$PATH:/usr/local/arm-elf/bin:/usr/local/m68k-elf/bin:/usr/local/sh-elf/bin        in terminal to set the path....

--- End quote ---


--- Quote from: brogan on October 23, 2008, 12:02:33 AM ---../tools/configure: line 1: arm-elf-gcc: command not found

--- End quote ---

According to that error,  you did not successfully add the compiler to your PATH.  You can check your PATH by typing "echo PATH".  Confirm that the directory where your arm-elf-gcc was installed to is listed there.

cool_walking_:

--- Quote from: saratoga on October 23, 2008, 12:24:52 AM ---"echo PATH"
--- End quote ---
That's "echo $PATH".

brogan:
alright... so how do i change the path so it works.. and how do i find the directory that has arm-elf-gcc in it... i can't find it.. thanx

saratoga:

--- Quote from: brogan on October 23, 2008, 07:26:33 PM ---alright... so how do i change the path so it works.. and how do i find the directory that has arm-elf-gcc in it... i can't find it.. thanx

--- End quote ---

Did you not install it to /usr/local/arm-elf/ as you suggested above?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version