Software Update wiki for cross-compiling


quadcricket

Very Active Member
Joined
Mar 28, 2008
Messages
104
I am trying to setup a cross-compiler on my debian installation. I tried a couple of methods form the Pandora wiki but they seem to lead to broken links and dead ends.

Is there a way to get the tutorials updated?

If not I could use some guidance in how to grab CodeBench and use that. I'm not sure which version to download or if they even offer a compatible version any more.

Thanks for your time.
 
For some projects directly compiling on the Pandora is a good alternative (look for notaz's thread giving opkg installation instructions).
 
You can also use codeblocks PND for native compilation. It's a huge PND (more than 2GB), and the latest version is on my beta thread (there is much more the the Code::Blocks IDE in the pnd, there is a "Command Line" environnement with all compiler and lib ready to use)

If you really want to cross-compile, I have a shell script that build a basic cross-compile environnement there: crosscompilemaker.sh
 
I used crosstool-ng (http://crosstool-ng.org/) to setup my environment on Ubuntu. I can post my configuration file, a few patch files and a short description how I used this to create my toolchain with GCC 6.1 when I'm back home again.
 
I am not wanting to compile on the Pandora directly, I had it setup before on my older laptop to cross-compile and that was a nice setup. @ptitSeb I am trying that script now, thanks for posting it. @TomB I will try the crosstool setup next if the script doesn't work out.
I will keep everyone posted.

(edit)
Okay it looks like it installed properly. Thanks everyone for the assistance. I will be able to test the binary when I get home later to verify for sure but everything at least looks right.

@ptitSeb I don't know if your script is on the wiki and up-to-date but it was certainly handy!
 
Last edited:
I am not wanting to compile on the Pandora directly, I had it setup before on my older laptop to cross-compile and that was a nice setup. @ptitSeb I am trying that script now, thanks for posting it. @TomB I will try the crosstool setup next if the script doesn't work out.
I will keep everyone posted.

(edit)
Okay it looks like it installed properly. Thanks everyone for the assistance. I will be able to test the binary when I get home later to verify for sure but everything at least looks right.

@ptitSeb I don't know if your script is on the wiki and up-to-date but it was certainly handy!
My script is not on the Wiki. Maybe I'll add it.

The script is up-to-date, but only build GCC 4.9.3. I 'm not sure it's a good idea to use GCC 5.x or 6.x to build glib, as the version on the Pandora is quite old, but that cross compile env. can then build newer gcc version and all the libs you need.
On my side, I have gcc 6.2 (soon 6.3) now and I use a mounted codeblocks.pnd (and slightly hacked, as some libs are on the Pandora firmware) to provide me all needed libs for my compile. But that part is more tricky and I haven't scripted it...
 
I think I am only using the SDL 1 library. I am not sure if I will run into conflicts or not. I don't mind working with an older gcc as long as it works. I will know more later what runs and what doesn't when I have access to my Pandora again.
[doublepost=1483582896,1483555762][/doublepost]The cross compilation worked for a simple "hello world" test, SDL is not found though. Do I have to pull SDL off of the Pandora?

-update-

I tried cross-compiling the SDL library and it failed on pulseaudio and joystick init.
I will try just pulling the libraries from the Pandora next.
 
Last edited:
Back
Top