I'm new to this so don't shout!
I am trying to cross-compile an SDL C++ Linux program to MorphOS, I have installed the Linux x86 crosscompiler and SDK from zerohero.se and have also copied the PowerSDL SDK to the relevant directories.
I run the configure script with:
Code:
CC=/usr/local/amiga/bin/ppc-morphos-gcc CXX=/usr/local/amiga/bin/ppc-morphos-g++ ./configure --libdir=/usr/local/amiga/ppc-morphos/lib/ --includedir=/usr/local/amiga/ppc-morphos/include/ --bindir=/usr/local/amiga/ppc-morphos/bin/ --target=powerpc-unknown-morphos --host=powerpc-unknown-morphos
So far so good, the only error I get is:
Code:
checking whether argument type for signal handlers is "int"... configure: error: cannot run test program while cross compiling"
Which I don't think is anything to worry about for the moment.
I then run make with:
Code:
CC=/usr/local/amiga/bin/ppc-morphos-gcc CXX=/usr/local/amiga/bin/ppc-morphos-g++ make
Which plods along nicely compiling the relevant source files then finishes with no errors displayed.
Only problem is the resulting executable is an x86 Linux program.
Obviously I've missed something out, but what?
Thanks in advance,
Nik