Rockbox Development > Starting Development and Compiling
Applying patches
lights0ut:
--- Quote from: Mad Cow ---I was thinking of installing Ubuntu for a while now, I'll probably do that when I have a free weekend or something. How about setting up the rockbox build environment? How hard is that?
--- End quote ---
Setting up a Rockbox Dev environment in linux is simple, just get the source through svn,
then run the script called rockboxdev.sh found in the tools folder.
After it has finished you need to add this:
/usr/local/arm-elf/bin:
to your path. In linux you do this by editing the file called .bash_profile in your home directory, there is a line that says PATH=blablablabalbj :$PATH
you need to insert the above line inbetween the : and the $
enjoy ubuntu ;)
Rincewind:
just a few additions to evilg123's post:
1. run the rockboxdev.sh script with sudo
2. The string you have to add to your path depends on the target for which you are setting the compiler up.
3. I added it to the file ~/.bashrc instead of ~/.bash_profile (the only thing my .bash_profile does is loading .bashrc, where all the configuration is in. I don't know if this changed in feisty)
bluebrother:
--- Quote from: Rincewind on May 12, 2007, 09:48:28 AM ---1. run the rockboxdev.sh script with sudo
--- End quote ---
There's no need to install the cross compiler system wide, thus not necessarily a need to run the script as root. If you want to install the compiler to a system wide path you need to install it as root, though. /usr/local is system wide -- but I have a setup where the compiler is installed in $HOME/local
--- Quote ---2. The string you have to add to your path depends on the target for which you are setting the compiler up.
--- End quote ---
To be exact, that path you need to add depends on the installation location. You can install several compilers using the same bin path, for example, on my working machine I set up the compilers manually and installed them to /usr/local as the configure script of gcc defaults to. This way I have arm-elf-gcc, m68k-elf-gcc and sh-elf-gcc in /usr/local/bin and need to add only that to the path.
Of course, it depends on you what way you like better. rockboxdev.sh chooses a different folder for each compiler.
Mad Cow:
I ran rockboxdev.sh, but there's no .bashrc or .bash_profile in my home dir, or anywhere on the disk for that matter. I installed gcc and everything else I need.
lights0ut:
Mad Cow, I'll assume you're using ubuntu 7.04 (the one with Gnome as the desktop environment)
If you open nautilus to your home and press Ctrl+H (or view>show hidden files) you should see all the files in your home dir, .bash_profile should be one of them.
Another way to edit the .bash_profile file would be to open a terminal and type
gedit .bash_profile
hope that helps you ;)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version