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:

Thank You for your continued support and contributions!

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

Author Topic: Compiling under linux???  (Read 5108 times)

Offline adrien1977

  • Member
  • *
  • Posts: 9
Compiling under linux???
« on: September 04, 2006, 04:43:57 PM »
Hi
I just recently starting using rockbox (which I find it great) and I'd like to dive into the code a little bit. I have old C experience (almost none) I am mostly a JAVA dev.

Anyway, I've been reading and doing some research on this forum, but I could not find anything regarding help to compile under linux.

I have the latest kubuntu release.

Does anyone has some guides or suggestions?
I'd really like to avoid using cygwin

Thanks a bunch for the help
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Compiling under linux???
« Reply #1 on: September 04, 2006, 04:48:18 PM »
Take the Cygwin install guide, and skip any steps that say "Run cygwin" or "Install cygwin"


I mean, you use the same CVS command line, and the all the same commands, you just do them in Linux instead of in Cygwin... See the CrossCompiler wiki page, or use the shell script in the /tools/ folder of the source for setting up the necessary cross compilers since you aren't getting them bundled with Cygwin.
Logged

Offline dan_a

  • Developer
  • Member
  • *
  • Posts: 85
  • MD1CLV
Re: Compiling under linux???
« Reply #2 on: September 04, 2006, 04:50:07 PM »
The first thing to do is to build a cross compiler.  The developers' documentation is mainly in the Wiki, rather than on the forums.

Hope that helps!
Logged
iPod 3G
iPod 4G Mono
Sansa E250
Sansa Clip

Offline adrien1977

  • Member
  • *
  • Posts: 9
Re: Compiling under linux???
« Reply #3 on: September 04, 2006, 04:50:53 PM »
ok then
Let me try this right now
I'll let you know.
THnaks for the fast response
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Compiling under linux???
« Reply #4 on: September 04, 2006, 04:53:48 PM »
you could also use the script rockboxdev.sh in the tools directory which sets up the cross compiler environment for your.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline adrien1977

  • Member
  • *
  • Posts: 9
Re: Compiling under linux???
« Reply #5 on: September 04, 2006, 04:59:15 PM »
ok
rockboxdev.sh is running right now.
After that I'll try to compile the code and see what happens

I'll keep you posted
Logged

Offline adrien1977

  • Member
  • *
  • Posts: 9
Re: Compiling under linux???
« Reply #6 on: September 04, 2006, 05:28:04 PM »
is that normal?


Using source code root directory: /home/adrien/rockbox/rockbox-devel
../tools/configure: line 1203: arm-elf-gcc: 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.
Created Makefile

Logged

Offline adrien1977

  • Member
  • *
  • Posts: 9
Re: Compiling under linux???
« Reply #7 on: September 04, 2006, 05:29:29 PM »
I tried to compile and got this

adrien@athena-linux:~/rockbox/rockbox-devel/simulator$ make
make[1]: `rdf2binary' is up to date.
make[1]: `convbdf' is up to date.
make[1]: `scramble' is up to date.
make[1]: `ipod_fw' is up to date.
make[1]: `bmp2rb' is up to date.
make[1]: `codepages' is up to date.
/bin/sh: arm-elf-gcc: command not found
/bin/sh: arm-elf-gcc: command not found
CONVBDF
Header parsed
CC sysfont.c
make[1]: arm-elf-gcc: Command not found
make[1]: *** [/home/adrien/rockbox/rockbox-devel/simulator/firmware/sysfont.o] Error 127
make: *** [all] Error 2

I did compile the crosscompiler though

Logged

Offline Febs

  • Member
  • *
  • Posts: 2701
Re: Compiling under linux???
« Reply #8 on: September 04, 2006, 05:30:45 PM »
Did you update your path to include a path to the cross-compiler?
Logged
Rockbox Forum Guidelines
The Rockbox Manual
How to Ask Questions the Smart Way
Please do not send me support questions via PM.

Offline adrien1977

  • Member
  • *
  • Posts: 9
Re: Compiling under linux???
« Reply #9 on: September 04, 2006, 05:46:04 PM »
oups.....
My bad
I thought that the script did it automatically

I modified the PATH, execute the configure  and everything went fine
I execute make and it seemed to work fine
I did make zip and created the zip.

Thanks a lot for the help

Now I have another quesiton.

What is that SDL they talk about in the how to build the simulator?

thanks
Logged

Offline dan_a

  • Developer
  • Member
  • *
  • Posts: 85
  • MD1CLV
Re: Compiling under linux???
« Reply #10 on: September 04, 2006, 06:08:26 PM »
SDL is a graphics library.
There are probably packages available for Kubuntu called something like "libsdl" and "libsdl-devel" (I'm not sure, I don't use Kubuntu.)  Install both of these and you should be able to build the simulator.
Logged
iPod 3G
iPod 4G Mono
Sansa E250
Sansa Clip

Offline adrien1977

  • Member
  • *
  • Posts: 9
Re: Compiling under linux???
« Reply #11 on: September 04, 2006, 06:19:03 PM »
You were right
I installed them and it compiled fine
It also executed fine
thanks for the help
Logged

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

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

Page created in 0.173 seconds with 22 queries.