-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, Mar 23, 2010 at 04:41:46PM +0100, Antonio Escanuela wrote:
> Hello,
> 
> We are two students doing our final career project. The project
> consists in porting an SDL game to Nintendo DS and iPhone, and we want
> to use Scratchbox in order to program in our devices. We have an open
> toolchain for each device and we want to use them in Scratchbox. Our
> question is how to build the custom toolchain for Scratchbox using the
> toolchains that we already have.
> 
> The toolchains that we have are:
> 
> Nintendo DS: http://www.devkitpro.org/
> iPhone: http://code.google.com/p/iphonedevonlinux/
> 
> Thank you for your attention.
> _______________________________________________
> Scratchbox-users mailing list
> Scratchbox-users@lists.scratchbox.org
> http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

I assume that you are using Scratchbox2...

Install your toolchain to a directory and add the location to your PATH.

export PATH=$PATH:$HOME/x-tools/ds-toolchain/bin

Next you'll want to initialize a target using your new tool chain. You'll need 
to be in the directory you will be using for your root for this target.

cd ~/roots/ds-root
sb2-init nintendo-ds $HOME/x-tools-ds-toolchain/bin/gcc

Again, I'm assuming that the C compiler for this tool chain is "gcc" and is 
located at the given directory above.  Additionally there are some options in 
the sb2-init command that you should check out.

You'll want to also build qemu if you are using Scratchbox2, specific to your 
architecture.  Check out my wiki post on how to build the whole setup by hand.

http://biffengineering.com/wiki/index.php?title=HowToSetupCrossCompileEnvironment


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkuo54EACgkQJFfsoukLoUq89wCfdw3VYV2pOsMPvMp6rf90oIRX
PPgAn1hFuHatmZqzqEjknUuzZtxPKFcj
=yks0
-----END PGP SIGNATURE-----
_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

Reply via email to