Problems to compile TGE 1.5 on Core 2 Duo
by Didier Samuel · in Torque Game Engine · 12/16/2006 (4:03 pm) · 3 replies
Hi all,
I try to compile TGE 1.5 on Ubuntu 6.10 Edgy Eft with the kernel 2.6.15-27-amd64-generic.
I have this processor : Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz.
I run this command into the terminal :
make -f mk/configure.mk OS=LINUX COMPILER=GCC4 BUILD=DEBUG
and I obtain that :
Current Configuration: this config is VALID
OS: LINUX
COMPILER: GCC4
BUILD: DEBUG
DIR.OBJ: out
After that, I launch the command make
And I have this problem :
--> Compiling lpng/png.c
lpng/png.c:1: error: CPU you selected does not support x86-64 instruction set
make[1]: *** [out.GCC4.DEBUG/lpng/png.obj] Error 1
make: *** [default] Error 2
I found the same problem on this forum at this link
http://www.garagegames.com/mg/forums/result.thread.php?qt=18420
I try to compile in 32bit like the link below. But I don't have the libraries in 32bit.
Can I compile TGE 1.5 with GCC4 in 64bit on Ubuntu 6.10 Edgy Eft?
How can I compile in 32bit TGE 1.5?
Thanks you for your help!
Best Regards
Samuel Didier
I try to compile TGE 1.5 on Ubuntu 6.10 Edgy Eft with the kernel 2.6.15-27-amd64-generic.
I have this processor : Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz.
I run this command into the terminal :
make -f mk/configure.mk OS=LINUX COMPILER=GCC4 BUILD=DEBUG
and I obtain that :
Current Configuration: this config is VALID
OS: LINUX
COMPILER: GCC4
BUILD: DEBUG
DIR.OBJ: out
After that, I launch the command make
And I have this problem :
--> Compiling lpng/png.c
lpng/png.c:1: error: CPU you selected does not support x86-64 instruction set
make[1]: *** [out.GCC4.DEBUG/lpng/png.obj] Error 1
make: *** [default] Error 2
I found the same problem on this forum at this link
http://www.garagegames.com/mg/forums/result.thread.php?qt=18420
I try to compile in 32bit like the link below. But I don't have the libraries in 32bit.
Can I compile TGE 1.5 with GCC4 in 64bit on Ubuntu 6.10 Edgy Eft?
How can I compile in 32bit TGE 1.5?
Thanks you for your help!
Best Regards
Samuel Didier
#2
I changed my Linux distro to an 32 bits Ubuntu 6.10 Edgy Eft.
It resolve the previous issues what I had.
Thanks you for your help Anes.
Best Regards
Samuel Didier
01/02/2007 (9:30 am)
HiI changed my Linux distro to an 32 bits Ubuntu 6.10 Edgy Eft.
It resolve the previous issues what I had.
Thanks you for your help Anes.
Best Regards
Samuel Didier
#3
Also if you want to use a decent ide i have created project/worspace files for codeblocks. I use codeblocks compiled from svn using this sequence:
mkdir /opt/build
cd /opt/build
svn checkout http://svn.berlios.de/svnroot/repos/codeblocks/trunk codeblocks
cd codeblocks
./configure --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-contrib --no-create --no-recursion
make
sudo make install
The project/workspace files can be found @ draekko.awardspace.com/cb_lnx_tge15.tar.bz2 and need to be extracted into the torque project directory. These should work on both 32 and 64 bit systems.
Theres also a nice resource on elimating newlines missing warning @ www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=11869.
01/02/2007 (10:28 am)
Didier@ GCC3.4 works fine under ubuntu 6.10 on a 64 bit box for compiling torque(available through synaptic). You would also need to tell the make system to compile 32bit binaries by adding -m32 in mk/conf.unix.mk in the flags variables (CFLAGS.* and LFAGS.* and LINK.LIBS.*). You also need to add the files mentioned by Anes.Also if you want to use a decent ide i have created project/worspace files for codeblocks. I use codeblocks compiled from svn using this sequence:
mkdir /opt/build
cd /opt/build
svn checkout http://svn.berlios.de/svnroot/repos/codeblocks/trunk codeblocks
cd codeblocks
./configure --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-contrib --no-create --no-recursion
make
sudo make install
The project/workspace files can be found @ draekko.awardspace.com/cb_lnx_tge15.tar.bz2 and need to be extracted into the torque project directory. These should work on both 32 and 64 bit systems.
Theres also a nice resource on elimating newlines missing warning @ www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=11869.
Torque Owner Anes Lihovac
I was running a 64 Bit Distro( Kubuntu Dapper ) too, and managed to compile Torque 1.4.2 with it.
But it was a pain in the a....
You have to install:
libc6-i386-dev, SDL and a bunch of other ia32-emul libs.Besides all that, some libs were missing(libsmpeg iirc), or were named diffrently, like libX11.so is used, but libX11.so.2 is installed, so you have to make symlinks by hand.
I think the smartest/easiest is, to have a chroot 32 Bit Environment, or a Second Box running a 32Bit Linux Distro or
just a 32 bit Distro if you want to develop Torque stuff.
After I saw that Flash and some Video Codecs arent available for 64 Bit Environment, and it is hard to get Torque running wit 64Bit, I switched back to a 32 Bit Distro.Now running Debian Sid.
Good luck and best regards
Anes