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
| | |-+  comiling with ubuntu?
« previous next »
  • Print
Pages: [1]

Author Topic: comiling with ubuntu?  (Read 4725 times)

Offline m6arate

  • Member
  • *
  • Posts: 19
comiling with ubuntu?
« on: February 10, 2007, 09:55:48 AM »
I'm using the latest ubuntu release, and I was wondering if compiling would be possible if I downloaded the proper things. I currently use windows to compile, with cygwin.
Logged
My Ubuntu Linux Blog
http://mikesubuntu.blogspot.com/

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: comiling with ubuntu?
« Reply #1 on: February 10, 2007, 10:02:40 AM »
All you *really* need to compile is to set up a toolchain. If you're already on linux, this can be done by simply running rockboxdev.sh from the /tools/ folder of the sources, and once it has finished, changing your path to point to the newly set up compilers.
Logged

Offline Febs

  • Member
  • *
  • Posts: 2701
Re: comiling with ubuntu?
« Reply #2 on: February 10, 2007, 10:02:59 AM »
Yes, just run the tools/rockboxdev.sh script to set up the development environment, and you should be good to go.
Logged
Rockbox Forum Guidelines
The Rockbox Manual
How to Ask Questions the Smart Way
Please do not send me support questions via PM.

Offline m6arate

  • Member
  • *
  • Posts: 19
Re: comiling with ubuntu?
« Reply #3 on: February 10, 2007, 10:25:02 AM »
you say change my path to point to the new compilers, I remember having to do this for cygwin, but I have no Idea how to do it with ubuntu. Will I have to do this manually, and if so, how?
Logged
My Ubuntu Linux Blog
http://mikesubuntu.blogspot.com/

Offline Rincewind

  • Member
  • *
  • Posts: 266
Re: comiling with ubuntu?
« Reply #4 on: February 10, 2007, 10:39:56 AM »
you have to add this line to the file ".bashrc" in your home directory:

export PATH=$PATH:/usr/local/m68k-elf/bin

but it is possible that the rockboxdev.sh script says that you have to add more to your path, then you have to add what it says there.
Logged
Iriver H120, Sansa e280

Offline m6arate

  • Member
  • *
  • Posts: 19
Re: comiling with ubuntu?
« Reply #5 on: February 10, 2007, 11:18:57 AM »
a bunch of "not found" errors occurred. Heres a copy:

Quote
mike@mike-desktop:~/My Stuff/rockbox/1/rockbox$ sudo tools/rockboxdev.sh
Download directory: /home/mike/tmp (edit script to change dir)
Install prefix: /usr/local/[target] (edit script to change dir)
Build dir: /home/mike/build-rbdev (edit script to change dir)
you have a /home/mike/build-rbdev dir already, please remove and rerun
mike@mike-desktop:~/My Stuff/rockbox/1/rockbox$ sudo tools/rockboxdev.sh
Download directory: /home/mike/tmp (edit script to change dir)
Install prefix: /usr/local/[target] (edit script to change dir)
Build dir: /home/mike/build-rbdev (edit script to change dir)

Select target arch:
s   - sh       (Archos models)
m   - m68k     (iriver h1x0/h3x0, ifp7x0 and iaudio)
a   - arm      (ipods, iriver H10, Sansa, etc)
all - all three compilers
a
== Summary ==
Target: arm-elf
gcc 4.0.3
binutils 2.16.1
install in /usr/local/arm-elf
when complete, make your PATH include /usr/local/arm-elf/bin
binutils 2.16.1 already downloaded
gcc 4.0.3 already downloaded
ROCKBOXDEV: extracting binutils-2.16.1 in /home/mike/build-rbdev
ROCKBOXDEV: extracting gcc-4.0.3 in /home/mike/build-rbdev
ROCKBOXDEV: mkdir build-binu
ROCKBOXDEV: cd build-binu
ROCKBOXDEV: binutils/configure
creating cache ./config.cache
checking host system type... i686-pc-linux-gnuoldld
checking target system type... arm-unknown-elf
checking build system type... i686-pc-linux-gnuoldld
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
ROCKBOXDEV: binutils/make
tools/rockboxdev.sh: 276: make: not found
ROCKBOXDEV: binutils/make install to /usr/local/arm-elf
tools/rockboxdev.sh: 276: make: not found
ROCKBOXDEV: mkdir build-gcc
ROCKBOXDEV: cd build-gcc
ROCKBOXDEV: gcc/configure
creating cache ./config.cache
checking host system type... i686-pc-linux-gnuoldld
checking target system type... arm-unknown-elf
checking build system type... i686-pc-linux-gnuoldld
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
ROCKBOXDEV: gcc/make
tools/rockboxdev.sh: 276: make: not found
ROCKBOXDEV: gcc/make install to /usr/local/arm-elf
tools/rockboxdev.sh: 276: make: not found
done

Make your PATH include :/usr/local/arm-elf/bin
mike@mike-desktop:~/My Stuff/rockbox/1/rockbox$
Logged
My Ubuntu Linux Blog
http://mikesubuntu.blogspot.com/

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: comiling with ubuntu?
« Reply #6 on: February 10, 2007, 12:30:37 PM »
you need to install a couple of development tools for your system, especially make and gcc. Search your package manager for them.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline m6arate

  • Member
  • *
  • Posts: 19
Re: comiling with ubuntu?
« Reply #7 on: February 10, 2007, 01:11:08 PM »
did that, still spit out errors

Quote
mike@mike-desktop:~/My Stuff/rockbox/1/rockbox$ sudo tools/rockboxdev.sh
Download directory: /home/mike/tmp (edit script to change dir)
Install prefix: /usr/local/[target] (edit script to change dir)
Build dir: /home/mike/build-rbdev (edit script to change dir)

Select target arch:
s   - sh       (Archos models)
m   - m68k     (iriver h1x0/h3x0, ifp7x0 and iaudio)
a   - arm      (ipods, iriver H10, Sansa, etc)
all - all three compilers
a
== Summary ==
Target: arm-elf
gcc 4.0.3
binutils 2.16.1
install in /usr/local/arm-elf
when complete, make your PATH include /usr/local/arm-elf/bin
binutils 2.16.1 already downloaded
gcc 4.0.3 already downloaded
ROCKBOXDEV: extracting binutils-2.16.1 in /home/mike/build-rbdev
ROCKBOXDEV: extracting gcc-4.0.3 in /home/mike/build-rbdev
ROCKBOXDEV: mkdir build-binu
ROCKBOXDEV: cd build-binu
ROCKBOXDEV: binutils/configure
creating cache ./config.cache
checking host system type... i686-pc-linux-gnulibc1
checking target system type... arm-unknown-elf
checking build system type... i686-pc-linux-gnulibc1
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
ROCKBOXDEV: binutils/make
make: *** No targets specified and no makefile found.  Stop.
ROCKBOXDEV: binutils/make install to /usr/local/arm-elf
make: *** No rule to make target `install'.  Stop.
ROCKBOXDEV: mkdir build-gcc
ROCKBOXDEV: cd build-gcc
ROCKBOXDEV: gcc/configure
creating cache ./config.cache
checking host system type... i686-pc-linux-gnulibc1
checking target system type... arm-unknown-elf
checking build system type... i686-pc-linux-gnulibc1
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
ROCKBOXDEV: gcc/make
make: *** No targets specified and no makefile found.  Stop.
ROCKBOXDEV: gcc/make install to /usr/local/arm-elf
make: *** No rule to make target `install'.  Stop.
done

Make your PATH include :/usr/local/arm-elf/bin
mike@mike-desktop:~/My Stuff/rockbox/1/rockbox$
Logged
My Ubuntu Linux Blog
http://mikesubuntu.blogspot.com/

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: comiling with ubuntu?
« Reply #8 on: February 10, 2007, 01:31:02 PM »
why don't you just read the output yourself?
Quote
configure: error: installation or configuration problem: C compiler cannot create executables.
Should be pretty much self explanating -- something is missing from your gcc installation. Maybe there's a "development" meta package that installs everything needed for compiling?
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline Spug

  • Member
  • *
  • Posts: 50
    • The Spug
Re: comiling with ubuntu?
« Reply #9 on: February 10, 2007, 01:54:50 PM »
Yes, it's called "build-essential".

Also:
Quote
Make your PATH include :/usr/local/arm-elf/bin
Logged

Offline m6arate

  • Member
  • *
  • Posts: 19
Re: comiling with ubuntu?
« Reply #10 on: February 12, 2007, 03:18:05 PM »
okay Ill try installing that. And I know to add that to the path, but decided to wait until I had a working installation.
Logged
My Ubuntu Linux Blog
http://mikesubuntu.blogspot.com/

Offline m6arate

  • Member
  • *
  • Posts: 19
Re: comiling with ubuntu?
« Reply #11 on: February 12, 2007, 03:59:34 PM »
alright. it installed fine, and I started compiling, but I immediately got errors about arm-elf-gcc

Quote
make[1]: arm-elf-gcc: Command not found
make[1]: *** [/home/mike/stuff/rockbox/1/rockbox/h20/firmware/sysfont.o] Error 127
make: *** [all] Error 2
mike@mike-desktop:~/stuff/rockbox/1/rockbox/h20$

I searched the package manager, didnt find anything that seemed like it. I remember having trouble getting this installed on windows (cgywin) and eventually having to just download a file somewhere and add it to the bin. Is that what I should do again here?
Logged
My Ubuntu Linux Blog
http://mikesubuntu.blogspot.com/

Offline Febs

  • Member
  • *
  • Posts: 2701
Re: comiling with ubuntu?
« Reply #12 on: February 12, 2007, 04:10:23 PM »
At the risk of stating the obvious, did you change your path to include arm-elf/bin?
Logged
Rockbox Forum Guidelines
The Rockbox Manual
How to Ask Questions the Smart Way
Please do not send me support questions via PM.

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: comiling with ubuntu?
« Reply #13 on: February 12, 2007, 05:34:25 PM »
as the first line of your output clearly tells it can't find the command, which in turn means that you either installed the compiler to a different path than the one you added to the PATH variable or you didn't add the path to the variable.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline m6arate

  • Member
  • *
  • Posts: 19
Re: comiling with ubuntu?
« Reply #14 on: February 18, 2007, 06:01:26 PM »
ah silly me. I forgot. Its working now. thank you all for helping/putting up with me
Logged
My Ubuntu Linux Blog
http://mikesubuntu.blogspot.com/

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  comiling with ubuntu?
 

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

Page created in 0.103 seconds with 14 queries.