android
  #1  
Old 10-21-2007, 04:56 PM
pienose pienose is offline
Member
 
Join Date: Mar 2007
Posts: 358
Default 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!
Reply With Quote

Advertisement [Remove Advertisement]

  #2  
Old 10-21-2007, 05:21 PM
cpchan's Avatar
cpchan cpchan is offline
Ultra Senior Member
 
Join Date: Feb 2007
Location: Toronto, Ontario
Posts: 2,012
Default

You need to run:

rockbox/tools/rockboxdev.sh

in the source tree to get the compiler.

Charles
Reply With Quote

  #3  
Old 10-21-2007, 05:27 PM
saratoga saratoga is offline
Rockbox Developer / Moderator
 
Join Date: Apr 2007
Posts: 3,617
Default

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

  #4  
Old 10-21-2007, 06:40 PM
digerati1338's Avatar
digerati1338 digerati1338 is offline
Member
 
Join Date: Apr 2007
Location: Aurora, CO
Posts: 337
Default

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
__________________
Rockbox digibuild
Player: SanDisk Sansa e200
Firmware: Rockbox digibuild
Reply With Quote

  #5  
Old 10-21-2007, 10:52 PM
saratoga saratoga is offline
Rockbox Developer / Moderator
 
Join Date: Apr 2007
Posts: 3,617
Default

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.
Reply With Quote

  #6  
Old 10-22-2007, 10:38 AM
pienose pienose is offline
Member
 
Join Date: Mar 2007
Posts: 358
Default

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.
Reply With Quote

  #7  
Old 10-22-2007, 11:10 AM
Reggie Reggie is offline
Junior Member
 
Join Date: Sep 2007
Location: UK
Posts: 63
Default

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).
__________________
____________

Cya, Reggie...
Reply With Quote

  #8  
Old 10-22-2007, 11:20 AM
kugel's Avatar
kugel kugel is offline
Rockbox Developer
 
Join Date: Dec 2006
Location: Berlin, Germany
Posts: 1,153
Default

just "cd rockbox/tools" and "sudo ./rockboxdev.sh"
__________________
;;
Reply With Quote

  #9  
Old 10-22-2007, 11:36 AM
pienose pienose is offline
Member
 
Join Date: Mar 2007
Posts: 358
Default

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?
Reply With Quote

  #10  
Old 10-22-2007, 11:42 AM
chrisjs162216 chrisjs162216 is offline
Ultra Senior Member
 
Join Date: Oct 2006
Location: Somewhere
Posts: 1,515
Default

Quote:
Originally Posted by pienose View Post
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?
Reply With Quote

  #11  
Old 10-22-2007, 11:49 AM
cpchan's Avatar
cpchan cpchan is offline
Ultra Senior Member
 
Join Date: Feb 2007
Location: Toronto, Ontario
Posts: 2,012
Default

Quote:
Originally Posted by pienose View Post
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
Reply With Quote

  #12  
Old 10-22-2007, 11:52 AM
cpchan's Avatar
cpchan cpchan is offline
Ultra Senior Member
 
Join Date: Feb 2007
Location: Toronto, Ontario
Posts: 2,012
Default

Quote:
Originally Posted by pienose View Post
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
Reply With Quote

  #13  
Old 10-22-2007, 12:36 PM
pienose pienose is offline
Member
 
Join Date: Mar 2007
Posts: 358
Default

Quote:
Originally Posted by cpchan View Post
You need to be connected to the internet when doing this.

Charles
Yes, I was.

Quote:
Originally Posted by cpchan View Post
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!
Reply With Quote

  #14  
Old 10-22-2007, 12:40 PM
chrisjs162216 chrisjs162216 is offline
Ultra Senior Member
 
Join Date: Oct 2006
Location: Somewhere
Posts: 1,515
Default

Run this:

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

Then close and reopen the shell.
Reply With Quote

  #15  
Old 10-22-2007, 12:43 PM
pienose pienose is offline
Member
 
Join Date: Mar 2007
Posts: 358
Default

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?
Reply With Quote

  #16  
Old 10-22-2007, 01:05 PM
cpchan's Avatar
cpchan cpchan is offline
Ultra Senior Member
 
Join Date: Feb 2007
Location: Toronto, Ontario
Posts: 2,012
Default

Quote:
Originally Posted by pienose View Post
Yes, I was.
Please post the output in the shell when you try to run the script.

Charles
Reply With Quote

  #17  
Old 10-22-2007, 01:11 PM
pienose pienose is offline
Member
 
Join Date: Mar 2007
Posts: 358
Default

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$$
Reply With Quote

  #18  
Old 10-22-2007, 01:47 PM
cpchan's Avatar
cpchan cpchan is offline
Ultra Senior Member
 
Join Date: Feb 2007
Location: Toronto, Ontario
Posts: 2,012
Default

Quote:
Originally Posted by pienose View Post
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
Reply With Quote

  #19  
Old 10-22-2007, 04:25 PM
chrisjs162216 chrisjs162216 is offline
Ultra Senior Member
 
Join Date: Oct 2006
Location: Somewhere
Posts: 1,515
Default

Quote:
Originally Posted by pienose View Post
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.
Reply With Quote

  #20  
Old 10-22-2007, 04:49 PM
pienose pienose is offline
Member
 
Join Date: Mar 2007
Posts: 358
Default

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

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

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 07:44 PM.