Error compiling TGE on Ubuntu 7.10 x86_64
by Lynooks · in Torque Game Engine · 04/17/2008 (2:32 pm) · 4 replies
Following the instructions at: http://eviwo.free.fr/torque/compile.html
Is there a better guide somewhere?
--> Compiling lpng/png.c
lpng/png.c:1: error: CPU you selected does not support x86-64 instruction set
make[1]: *** [out.GCC4.RELEASE/lpng/png.obj] Error 1
make: *** [default] Error 2
Is there a better guide somewhere?
--> Compiling lpng/png.c
lpng/png.c:1: error: CPU you selected does not support x86-64 instruction set
make[1]: *** [out.GCC4.RELEASE/lpng/png.obj] Error 1
make: *** [default] Error 2
#2
04/21/2008 (1:29 am)
Andy is correct. There are some architectural choices that implied the use of 32-bit data structures. I don't think there is work going on right now to make the switch to 64-bit, as the number of 64-bit systems is still VERY small. I know, all processors sold now are 64-bit capable, but almost nobody has a OS to match. Silly and stupid, I agree, but that's the law of the market.
#3
I am the author of the instructions . I confirm that for X86-64 compilation is special way and I have never seen until now someone success. Compile torque in 32-bytes mode.
Philippe
04/22/2008 (12:23 pm)
@ LynooksI am the author of the instructions . I confirm that for X86-64 compilation is special way and I have never seen until now someone success. Compile torque in 32-bytes mode.
Philippe
#4
04/24/2008 (10:15 am)
Is passing -m32 enough to enforce gcc to compile in 32 bit mode or is there other flags that need to be set?
Torque Owner Andy
IIRC, besides many simple-to-fix typecasts and the arch issue see when trying to compile libpng, there are architectural issues with respect to the bit-width width of pointers as they relate to ghosted objects... but I might be wrong. At the time, it looked like far more work than I had available to put into it.