Compiling Error In Ubuntu / Codeblock
by Cristian Gra · in Technical Issues · 12/11/2007 (4:47 am) · 4 replies
I can't compile Torque Game Engine 1.5.x - INDIE License.
I use UBUNTU 7.10 Gibsy , Codeblock rev 4719, and the resource Codeblocks project and workspace files for TGE 1.5 under Linux.
The error is in X11proto-core-dev library. -- usr/include/X11/Xlib.h and X.h
X.h Line 101 - Multiples types in declaration
X.h Line 101 - The declaration does not declare anything
Xlib.h Line 307 - Multiples types in declaration
Xlib.h Line 307 - The name of the type is absent in the declaration typofile
Xlib.h Line 509 - Multiples types in declaration
Thank's
Cristian
I use UBUNTU 7.10 Gibsy , Codeblock rev 4719, and the resource Codeblocks project and workspace files for TGE 1.5 under Linux.
The error is in X11proto-core-dev library. -- usr/include/X11/Xlib.h and X.h
X.h Line 101 - Multiples types in declaration
X.h Line 101 - The declaration does not declare anything
Xlib.h Line 307 - Multiples types in declaration
Xlib.h Line 307 - The name of the type is absent in the declaration typofile
Xlib.h Line 509 - Multiples types in declaration
Thank's
Cristian
#2
Here is my latest error.
OpenGLDevice::setScreenMode(U32, U32, U32, bool, bool, bool)':
platformX86UNIX/x86UNIXOGLVideo.cc:360: error: 'struct SDL_SysWMinfo' has no member named 'info'
make[1]: *** [out.GCC4.DEBUG/platformX86UNIX/x86UNIXOGLVideo.obj] Error 1
make: *** [default] Error 2
I did download the latest SDL and it compiled and installed fine, no errors at least. Do I need to use gcc3.x rather than 4.x ?
Thanks for any info...
David
12/24/2007 (12:03 pm)
Hi, I'm also having some trouble getting TGE 1.52 to compile in linux. I'm also using (K)ubuntu 7.10. Here is my latest error.
OpenGLDevice::setScreenMode(U32, U32, U32, bool, bool, bool)':
platformX86UNIX/x86UNIXOGLVideo.cc:360: error: 'struct SDL_SysWMinfo' has no member named 'info'
make[1]: *** [out.GCC4.DEBUG/platformX86UNIX/x86UNIXOGLVideo.obj] Error 1
make: *** [default] Error 2
I did download the latest SDL and it compiled and installed fine, no errors at least. Do I need to use gcc3.x rather than 4.x ?
Thanks for any info...
David
#3
Gary (-;
12/25/2007 (3:40 am)
More likely, you need to use an older SDL, or find out what SDL_SysWMinfo.info has been changed to.Gary (-;
#4
ldd torqueDemo_DEBUG.bin
linux-gate.so.1 => (0xffffe000)
libogg.so.0 => /usr/lib/libogg.so.0 (0xb7f06000)
libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0xb7ede000)
libtheora.so.0 => /usr/lib/libtheora.so.0 (0xb7ea5000)
libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0xb7e16000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7dfe000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7dfa000)
libXft.so.2 => /usr/lib/libXft.so.2 (0xb7de7000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7cf4000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7ccf000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7cc4000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7b7a000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb7a89000)
libasound.so.2 => /usr/lib/libasound.so.2 (0xb79c2000)
libdirectfb-0.9.so.25 => /usr/lib/libdirectfb-0.9.so.25 (0xb796b000)
libfusion-0.9.so.25 => /usr/lib/libfusion-0.9.so.25 (0xb7965000)
libdirect-0.9.so.25 => /usr/lib/libdirect-0.9.so.25 (0xb7956000)
/lib/ld-linux.so.2 (0xb7f1b000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb792b000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb78ba000)
libz.so.1 => /usr/lib/libz.so.1 (0xb78a5000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb789d000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb789a000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7895000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb7874000)
12/30/2007 (9:43 am)
Hereafter the list of library used by the torque engine aftre compilation :ldd torqueDemo_DEBUG.bin
linux-gate.so.1 => (0xffffe000)
libogg.so.0 => /usr/lib/libogg.so.0 (0xb7f06000)
libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0xb7ede000)
libtheora.so.0 => /usr/lib/libtheora.so.0 (0xb7ea5000)
libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0xb7e16000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7dfe000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7dfa000)
libXft.so.2 => /usr/lib/libXft.so.2 (0xb7de7000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7cf4000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7ccf000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7cc4000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7b7a000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb7a89000)
libasound.so.2 => /usr/lib/libasound.so.2 (0xb79c2000)
libdirectfb-0.9.so.25 => /usr/lib/libdirectfb-0.9.so.25 (0xb796b000)
libfusion-0.9.so.25 => /usr/lib/libfusion-0.9.so.25 (0xb7965000)
libdirect-0.9.so.25 => /usr/lib/libdirect-0.9.so.25 (0xb7956000)
/lib/ld-linux.so.2 (0xb7f1b000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb792b000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb78ba000)
libz.so.1 => /usr/lib/libz.so.1 (0xb78a5000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb789d000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb789a000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7895000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb7874000)
Torque Owner Philippe C
sudo apt-get -y install gcc
sudo apt-get -y install g++
sudo apt-get -y install nasm
sudo apt-get -y install libxft-dev*
sudo apt-get -y install libsdl1.2-dev