abi>>forums

abi>>forums (http://www.anythingbutipod.com/forum/index.php)
-   Sansa e200 Rockbox (http://www.anythingbutipod.com/forum/forumdisplay.php?f=72)
-   -   help with making my own build (http://www.anythingbutipod.com/forum/showthread.php?t=21294)

pienose 10-21-2007 04:56 PM

help with making my own build
 
I tried to compile my own build, and I faild. I was hoping for some help from here.

ok, after running
Code:

svn co svn://svn.rockbox.org/rockbox/trunk rockbox
and it going through loads of stuff I went on to this-
Code:

Checked out revision 15252.
tim@ubuntu:~$ cd rockbox
tim@ubuntu:~/rockbox$ mkdir build
tim@ubuntu:~/rockbox$ cd build
tim@ubuntu:~/rockbox/build$ ../tools/configure
Enter target platform:
 ==Archos==            ==iriver==            ==Apple iPod==
  0) Player/Studio    10) H120/H140          20) Color/Photo
  1) Recorder          11) H320/H340          21) Nano
  2) FM Recorder      12) iHP-100/110/115    22) Video
  3) Recorder v2      13) iFP-790            23) 3G
  4) Ondio SP          14) H10 20Gb          24) 4G Grayscale
  5) Ondio FM          15) H10 5/6Gb          25) Mini 1G
  6) AV300                                    26) Mini 2G
                                              27) 1G, 2G

 ==iAudio==            ==Toshiba==            ==SanDisk==
 30) X5/X5V/X5L        40) Gigabeat F        50) Sansa e200
 31) M5/M5L            41) Gigabeat S        51) Sansa e200R
                                              52) Sansa c200

 ==Tatung==            ==Olympus==
 60) Elio TPJ-1022    70) M:Robe 500
50
Platform set to e200

Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, (I)installer, (M)anual (N)
N
Normal build selected
Using source code root directory: /home/tim/rockbox
../tools/configure: 1599: arm-elf-gcc: not found
../tools/configure: 1603: arm-elf-ld: 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.
Using arm-elf-ld
Created Makefile
tim@ubuntu:~/rockbox/build$ make
gcc -g rdf2binary.c -o rdf2binary
gcc -g convbdf.c -o convbdf
gcc -g codepages.c codepage_tables.c -o codepages
gcc -DAPPLICATION_NAME=\"bmp2rb\" -g bmp2rb.c -o bmp2rb
gcc -O -ansi -g  -c -o scramble.o scramble.c
gcc -O -ansi -g  -c -o iriver.o iriver.c
gcc -O -ansi -g  -c -o mi4.o mi4.c
gcc -O -ansi -g  -c -o gigabeat.o gigabeat.c
gcc -O -ansi -g  -c -o gigabeats.o gigabeats.c
gcc -O -ansi -g  -c -o telechips.o telechips.c
gcc -g  scramble.o iriver.o mi4.o gigabeat.o gigabeats.o telechips.o  -o scramble
/bin/sh: arm-elf-gcc: not found
Create sysfont.h
Header parsed
/bin/sh: arm-elf-gcc: not found
CONVBDF
CC sysfont.c
Header parsed
make[1]: arm-elf-gcc: Command not found
make[1]: *** [/home/tim/rockbox/build/firmware/sysfont.o] Error 127
make: *** [build] Error 2
tim@ubuntu:~/rockbox/build$

ok so as you can see there are some errors. What seems to be the problem is this 'arm-elf-gcc' thing, but I have no idea what it is or how I can fix it.

thanks in advance!

cpchan 10-21-2007 05:21 PM

You need to run:

rockbox/tools/rockboxdev.sh

in the source tree to get the compiler.

Charles

saratoga 10-21-2007 05:27 PM

gcc would be the compiler. You're not going to have much luck compiling without that.

digerati1338 10-21-2007 06:40 PM

Alternatively, as I see you are using ubuntu, you could just run synaptic and install gcc that way. Or in a terminal:

Code:

apt-get install arm-elf-gcc

saratoga 10-21-2007 10:52 PM

I don't think the Ubuntu repositories have arm-elf-gcc by default, and even if they did, it probably wouldn't be the right version. You really need to use the ones from rockbox.org unless you really know what you're doing.

pienose 10-22-2007 10:38 AM

ah, ok so now I know what it is! yes I see now, but i still have no idea where to get it from, cpchan I don't know what you mean by running 'rockbox/tools/rockboxdev.sh' in the source tree, sorry.

and no I looked in the repository before and it was not there.

Reggie 10-22-2007 11:10 AM

you need to search for a file in the source archive called rockboxdev.sh its a shell script which probably goes and gets the developement environment for you (libraries, compiler etc).

kugel 10-22-2007 11:20 AM

just "cd rockbox/tools" and "sudo ./rockboxdev.sh"

pienose 10-22-2007 11:36 AM

ok, getting there I found the file in '/home/tim/rockbox/tools/rockboxdev.sh' and ran it then continued but I still got the error
Code:

Using source code root directory: /home/tim/rockbox
../tools/configure: 1601: arm-elf-gcc: not found
../tools/configure: 1605: arm-elf-ld: 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.

was that the right file? did I run it at the right time? I am all ears!

edit:

I just found this on rockbox.org

Quote:

rockboxdev.sh

In the tools/ directory of your checked out Rockbox source code, there's this shell script called rockboxdev.sh that will perform the cross-compiler installation for you fully automatically. When run, it will first prompt you for what architecture to build for, and then it'll proceed to download, unpack, build and install both binutils and the proper gcc version for you. If necessary it will even patch gcc accordingly.
When using this script, you do not need to follow the rest of this instruction below this point. That is only for pure manual installation
but when I run the script all I get is a terminal blink on and off for a a second, what is described above does not happen. wtf?

chrisjs162216 10-22-2007 11:42 AM

Quote:

Originally Posted by pienose (Post 176783)
ok, getting there I found the file in '/home/tim/rockbox/tools/rockboxdev.sh' and ran it then continued but I still got the error
Code:

Using source code root directory: /home/tim/rockbox
../tools/configure: 1601: arm-elf-gcc: not found
../tools/configure: 1605: arm-elf-ld: 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.

was that the right file? did I run it at the right time? I am all ears!

What happened when you ran rockboxdev.sh?

cpchan 10-22-2007 11:49 AM

Quote:

Originally Posted by pienose (Post 176783)
ok, getting there I found the file in '/home/tim/rockbox/tools/rockboxdev.sh' and ran it then continued but I still got the error

OK, I presume that you have it compiled. Now put:

Code:

export PATH=$PATH:/usr/local/arm-elf/bin
in your ~/.bashrc. Now you have 2 choices if you want to compile Rockbox right away. You can either close and reopen the shell or run the about command from the command line. You are now set to compile Rockbox.

Charles

cpchan 10-22-2007 11:52 AM

Quote:

Originally Posted by pienose (Post 176783)
but when I run the script all I get is a terminal blink on and off for a a second, what is described above does not happen. wtf?

You need to be connected to the internet when doing this.

Charles

pienose 10-22-2007 12:36 PM

Quote:

Originally Posted by cpchan (Post 176789)
You need to be connected to the internet when doing this.

Charles

Yes, I was.

Quote:

Originally Posted by cpchan (Post 176788)
OK, I presume that you have it compiled. Now put:

Code:

export PATH=$PATH:/usr/local/arm-elf/bin
in your ~/.bashrc. Now you have 2 choices if you want to compile Rockbox right away. You can either close and reopen the shell or run the about command from the command line. You are now set to compile Rockbox.

Charles

sorry but I have no idea what '~/.bashrc' is or how to put 'export PATH=$PATH:/usr/local/arm-elf/bin' into it!

chrisjs162216 10-22-2007 12:40 PM

Run this:

echo "export PATH=$PATH:/usr/local/arm-elf/bin" >> ~/.bashrc

Then close and reopen the shell.

pienose 10-22-2007 12:43 PM

nope, shell still just blinks up and goes again. And how can I 'close and reopen the shell' if it wont open in the first place?

cpchan 10-22-2007 01:05 PM

Quote:

Originally Posted by pienose (Post 176795)
Yes, I was.

Please post the output in the shell when you try to run the script.

Charles

pienose 10-22-2007 01:11 PM

I get nothing, I never get to see what happens, the terminal window is only there to a millisecond, not long enough to see it.

or do you mean the output of 'echo "export PATH=$PATH:/usr/local/arm-elf/bin" >> ~/.bashrc' when I run this nothing happens actually. when I press enter it just goes on to show another line with 'tim@ubuntu:~$'.

really sorry for being such a pain in the a$$

cpchan 10-22-2007 01:47 PM

Quote:

Originally Posted by pienose (Post 176804)
I get nothing, I never get to see what happens, the terminal window is only there to a millisecond, not long enough to see it.

Please post the exact sequence of commands you are using. Also make sure the /usr/local directory (folder) exist (I can't remember whether Ubuntu create it by default- I am using a different distro)- if not, create it. Also please post the output of the following commands:

Code:

which curl
Code:

which gcc
Code:

which bzip2
Code:

which make
Code:

which patch
Charles

chrisjs162216 10-22-2007 04:25 PM

Quote:

Originally Posted by pienose (Post 176804)
I get nothing, I never get to see what happens, the terminal window is only there to a millisecond, not long enough to see it.

How are you trying to run rockboxdev.sh? It almost seems as if you're double clicking on it, versus running it from the shell. Assuming you use Gnome, go to Applications, Accessories, Terminal and try running rockboxdev.sh, and paste the output.

pienose 10-22-2007 04:49 PM

OH MY GOD I am so thick! yeh, I got it to work:o

anyhoo...you can kill this thread now, sorry for wasting all of your time! just need to get adding patches now!


All times are GMT -5. The time now is 03:19 PM.