QUOTE(vanstrien @ Jun 28 2005, 09:43 PM)
I don't want to install a 32 bit OS because that was the whole point of buying a 64 bit box. I've got a good stable system right now except when using the compiler needed for the Z. I might instead install a virtual machine or something and go that route.
As I see it you have several options, but the first one has to be trying to compile with gcc forced to compile 32 bit for x86
A quick look through man gcc shows 2 particular switches relevant to AMD processors.
The first is -march=i386
which notifies machine architecture as i386 and builds code which will run on that.
The second (which should be implied by the first, but no harm in making sure) is specific to AMD and is -m32
, which forces the compiler to set int, long and pointers to 32 bit that will run on i386 architecture.
It looks like gcc will default to -m64
t if it detects 64 bit processor.
I don't have anything set up to test this, so dont know if all the FC3 libraries are backwardly compatible with 32 bit instruction set, once gcc is compiling 32 bit.
The other option of course is to replicate why your ARM compilation works.
It uses a different compiler and specifies it.
You could do this by putting gcc 32 bit and relevant libs into a dir next to Qtopia and Embedix, write an script to set the environment to the relevant paths and write a modified tmake.conf to generate the appropriate Makefile.
This might be the most involved, but long term possibly the best solution.
I'll be interested to hear how you get on