Rockbox Development > Starting Development and Compiling
Need to compile one specific bin file
Alman99:
OK, so I am trying to get the current VM image to create an SH capable compiler. After searching this forum, and trying a bunch of different things, this is what I've found, and where I'm at currently.
Obviously, nobody, except me apparently, uses anything with the SH1 anymore. I have followed the instructions to the letter, and when you try to set up your compiler by running the configure script, it gives me "../tools/configure: 4527: sh-elf-gcc: not found" and "../tools/configure: 4596: sh-elf-cpp: not found". Obviously the sh versions of gcc are not in any available path for the script to find. I have run "git clone git://git.rockbox.org/rockbox ./Desktop/rockbox" and that worked, but obviously sh-elf-gcc is not in that path. It is however available elsewhere on this site under "releases". I have downloaded it, got it on the VM desktop, but as I am not really a linux expert, I can't figure out how to get it in the path so the configure script can find it. I don't want to change too much as I am not sure if it will break something else in the process if I futz around with folder permissions and ownership to end run this. I am still reading etc, but as I have so much else going on right now, its hard to find the time to do this at the moment. Any thoughts on what I can quickly do to finish setting up the sh compiler?
saratoga:
--- Quote from: Alman99 on January 17, 2018, 12:57:17 PM ---Obviously, nobody, except me apparently, uses anything with the SH1 anymore. I have followed the instructions to the letter, and when you try to set up your compiler by running the configure script, it gives me "../tools/configure: 4527: sh-elf-gcc: not found" and "../tools/configure: 4596: sh-elf-cpp: not found".
--- End quote ---
tools/configure is to build rockbox, it fails because you don't have the compiler installed and you need that before you can build rockbox.
You should be running rockboxdev.sh, which will build the compilers automatically. See here for more info:
https://www.rockbox.org/wiki/CrossCompiler
Alman99:
OHHHH, damn. I guess I managed to read that backwards. I though I was supposed to run configure BEFORE rockboxdev. Ok, I will see what happens with that. Thankyou very much!
Alman99:
Well that didn't work either, ran it and got the following
--- Quote ---ubuntu@ubuntu-VirtualBox:~/Desktop/rockbox/build$ ../tools/rockboxdev.sh
ROCKBOXDEV: "automake" is required for this script to work.
ROCKBOXDEV: "libtool" is required for this script to work.
ROCKBOXDEV: "autoconf" is required for this script to work.
ROCKBOXDEV: "flex" is required for this script to work.
ROCKBOXDEV: "bison" is required for this script to work.
ROCKBOXDEV: Please install the missing tools and re-run the script.
ubuntu@ubuntu-VirtualBox:~/Desktop/rockbox/build$
--- End quote ---
According to another post,
--- Code: ---http://forums.rockbox.org/index.php/topic,50131.msg233088.html#msg233088
--- End code ---
in reply #7, configure was supposed to be run first, so at this point, I will erase the image I am running, and start all over with a fresh copy, and try it again. Still can't see what I've missed though.
saratoga:
That error means you need to install automake. The link I provided above (third time mentioning that you might want to look at it) explains this. However, if you missed it, type "sudo apt-get install automake".
The link you provided is to someone realizing that the arm compiler is included with the vm. If you want, you can indeed build rockbox for arm devices right now since you already have the arm compiler.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version