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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Applying patches
« previous next »
  • Print
Pages: 1 [2]

Author Topic: Applying patches  (Read 6558 times)

Offline lights0ut

  • Artist
  • Member
  • *
  • Posts: 382
Re: Applying patches
« Reply #15 on: May 11, 2007, 09:53:51 PM »
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?

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 ;)

Logged

Offline Rincewind

  • Member
  • *
  • Posts: 266
Re: Applying patches
« Reply #16 on: May 12, 2007, 09:48:28 AM »
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)
Logged
Iriver H120, Sansa e280

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Applying patches
« Reply #17 on: May 12, 2007, 10:29:52 AM »
Quote from: Rincewind on May 12, 2007, 09:48:28 AM
1. run the rockboxdev.sh script with sudo
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.
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.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline Mad Cow

  • Member
  • *
  • Posts: 445
Re: Applying patches
« Reply #18 on: May 13, 2007, 01:30:26 AM »
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.
Logged
iRiver H10 5GB, Gigabeat F40, Gigabeat S60, all rockboxed. :P

Offline lights0ut

  • Artist
  • Member
  • *
  • Posts: 382
Re: Applying patches
« Reply #19 on: May 13, 2007, 05:05:26 PM »
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 ;)
Logged

Offline Mad Cow

  • Member
  • *
  • Posts: 445
Re: Applying patches
« Reply #20 on: May 13, 2007, 07:33:42 PM »
Quote from: evilg123 on May 13, 2007, 05:05:26 PM
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

Opening in the terminal was the first thing I did, but I probably just typed the path wrong. (I used the full path)

Other than that, I'm loving it, I get fancy window effects with Beryl, it looks and runs better than Vista now. ;D
Logged
iRiver H10 5GB, Gigabeat F40, Gigabeat S60, all rockboxed. :P

Offline onocentaur

  • Member
  • *
  • Posts: 22
Re: Applying patches
« Reply #21 on: May 16, 2007, 03:35:09 PM »
I had some trouble finding .bash_profile too, it's because it's not there in my ubuntu install! .profile is though, and that's the file that you need  :)
Logged

  • Print
Pages: 1 [2]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Applying patches
 

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

Page created in 0.091 seconds with 14 queries.