Rockbox Development > Starting Development and Compiling

Using linux OS, where can I find arm-elf

<< < (2/4) > >>

onocentaur:

--- Quote from: bluebrother on May 15, 2007, 12:54:04 PM ---have you re-run the configure script?
--- End quote ---
yeah, I did that


--- Quote ---Where did you install the compiler, and did you add the path to the PATH variable like the script tells?
--- End quote ---
I don't know where I installed the complier!  :-[ I just ran the command from within the tools folder in a terminal...
And I don't remember being told to add anything to any path variable


--- Quote --- Have you made sure the changes take effect in your current session?
--- End quote ---
good grief, I don't even know what this mean. perhaps I should just stick with the standard build...

lights0ut:
onocentaur, as a fellow ubuntu user, I can tell you that when you run the rockboxdev.sh script you do not have to type make. The process goes something like this

sudo ./rockboxdev.sh

then it should ask which target you are building for (it displays the choices too)
you are using an ipod, so your choice should be arm so type in:

a

then the script does the rest. It installs arm-elf-gcc in the directory

/usr/local/arm-elf

so you need to be able to give commands to this directory through the terminal. This is done by modifying your path. The very last thing the script does is tell you to add this next line to your PATH:

/usr/local/arm-elf/bin:

so, now you need to open a terminal and type

gedit .bash_profile  (or for kubuntu: kedit .bash_profile)

Inside this file there will be a section that says

PATH=blablablab :$PATH

copy the /usr/local/arm-elf/bin: (including the colon) and paste it between the : and the $. Save the file, then log out, and log back in to your PC and you should be good to go.
An easy way to check your path is to open a terminal and type

echo $PATH

the output from this command should have /usr/local/arm-elf/bin in there.

Hope this helps you out ;)

onocentaur:
That looks like just the kind of information I need, brilliant! I can't try it out till this evening, but your instructions look fool-proof, and I'll report back here on how it goes. Thankyou very much!  :D

onocentaur:
So I have no .bash_profile. I eventually worked out that .profile will do, although I don't have any standard PATH stuff in it, just an if conditional to add a local bin/ if I've got one (I don't) so I just added PATH=/usr/local/arm-elf/bin:"$PATH" to the end of the file. This worked when I logged out and tried echo $PATH.
So it knows where to look now. Unfortunately rockboxdev.sh isn't even making /usr/local/arm-elf/bin! After getting the PATH thing to work, I tried to compile but I got the arm-elf missing error. So I thought I'd look myself, and it's not there! Running rockboxdev again I notice this error appears twice:

checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

Which presumably is the issue. Now how do I fix that?  :-\
gcc is definitely installed - I just checked synaptic. I'm using ubuntu 7.04 feisty, if that makes any difference. (I've only had it installed for a week!)

lights0ut:
I suggest installing your desktop environment's software development kit, or dev package.

In KDE these are found in the apt repositories under the names:

kde-sdk   and     kde-devel

if you are on regular ubuntu (GNOME, not KDE) I'm sure that installing the above packages will still do the trick. I run both KDE and GNOME, and KDE was first so I am most familiar with it, I'm not sure of the specific GNOME packages, but I'm sure there are similar ones.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version