compilation woes on 64bit linux
Posted: Sat Jun 02, 2012 1:21 am
Hello all,
I've been attempting to compile the latest SVN version on my 64bit Archlinux box. The good news is that I've managed to compile a binary that seems to execute, however, launching the binary just gives a black screen. I followed the posts on the wiki/forum for editing premake4.lua and te4core.lua, which now look like this:
Combined with SDL-hg, SDL_image-hg, and SDL2_ttf from the core Arch repo, this appears to build without error, and as you can see, ldd finds all the libraries:
So far so good. However, when I launch t-engine, it just hangs with a black screen. The cmdline shows:
If I strace it, I can see this repeated hundreds of times per second:
I'm sure I'm missing something obvious, and it feels like I've *almost* succeeded. Where am I going wrong? I can easily add SDL_ttf-hg as well, but I didn't think a font engine would break the entire display.
Thanks in advance
I've been attempting to compile the latest SVN version on my 64bit Archlinux box. The good news is that I've managed to compile a binary that seems to execute, however, launching the binary just gives a black screen. I followed the posts on the wiki/forum for editing premake4.lua and te4core.lua, which now look like this:
Code: Select all
===================================================================
--- premake4.lua (revision 5176)
+++ premake4.lua (working copy)
@@ -18,7 +18,8 @@
"src/physfs",
"src/physfs/zlib123",
"src/bzip2",
- "/opt/SDL-2.0/include/SDL2/",
+ "/usr/include/SDL2",
+ "/usr/include/SDL",
"/usr/include/GL",
}
if _OPTIONS.lua == "default" then includedirs{"src/lua"}
Code: Select all
===================================================================
--- build/te4core.lua (revision 5176)
+++ build/te4core.lua (working copy)
@@ -57,8 +57,8 @@
configuration "linux"
- libdirs {"/opt/SDL-2.0/lib/"}
- links { "dl", "SDL2", "SDL2_ttf", "SDL2_image", "png", "openal", "vorbisfile", "GL", "GLU", "m", "pthread" }
+ libdirs {"/usr/lib/"}
+ links { "dl", "SDL2", "SDL_ttf", "SDL2_image", "png", "openal", "vorbisfile", "GL", "GLU", "m", "pthread" }
defines { [[TENGINE_HOME_PATH='".t-engine"']], 'SELFEXE_LINUX' }
configuration {"Debug"}
Code: Select all
$ make clean && premake4 clean && premake4 gmake && make
<snip long output>
$ ldd ./t-engine
linux-vdso.so.1 => (0x00007fff2d479000)
liblua.so.5.1 => /usr/lib/liblua.so.5.1 (0x00007fbca6deb000)
libm.so.6 => /lib/libm.so.6 (0x00007fbca6af6000)
libdl.so.2 => /lib/libdl.so.2 (0x00007fbca68f2000)
libSDL2-2.0.so.0 => /usr/lib/libSDL2-2.0.so.0 (0x00007fbca662a000)
libSDL_ttf-2.0.so.0 => /usr/lib/libSDL_ttf-2.0.so.0 (0x00007fbca6423000)
libSDL2_image-1.2.so.0 => /usr/lib/libSDL2_image-1.2.so.0 (0x00007fbca6205000)
libpng15.so.15 => /usr/lib/libpng15.so.15 (0x00007fbca5fd8000)
libopenal.so.1 => /usr/lib/libopenal.so.1 (0x00007fbca5d81000)
libvorbisfile.so.3 => /usr/lib/libvorbisfile.so.3 (0x00007fbca5b78000)
libGL.so.1 => /usr/lib/libGL.so.1 (0x00007fbca591a000)
libGLU.so.1 => /usr/lib/libGLU.so.1 (0x00007fbca56ad000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007fbca5491000)
libc.so.6 => /lib/libc.so.6 (0x00007fbca50f0000)
/lib/ld-linux-x86-64.so.2 (0x00007fbca7017000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007fbca4e51000)
libz.so.1 => /usr/lib/libz.so.1 (0x00007fbca4c3b000)
libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0x00007fbca4a2b000)
libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0x00007fbca4791000)
librt.so.1 => /lib/librt.so.1 (0x00007fbca4589000)
libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0x00007fbca435c000)
libogg.so.0 => /usr/lib/libogg.so.0 (0x00007fbca4156000)
libglapi.so.0 => /usr/lib/libglapi.so.0 (0x00007fbca3f31000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x00007fbca3d1e000)
libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0x00007fbca3b1b000)
libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x00007fbca3914000)
libX11-xcb.so.1 => /usr/lib/libX11-xcb.so.1 (0x00007fbca3712000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x00007fbca33d9000)
libxcb-glx.so.0 => /usr/lib/libxcb-glx.so.0 (0x00007fbca31c3000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007fbca2fa5000)
libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0x00007fbca2d9f000)
libdrm.so.2 => /usr/lib/libdrm.so.2 (0x00007fbca2b94000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fbca2890000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007fbca267b000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x00007fbca2477000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007fbca2271000)
So far so good. However, when I launch t-engine, it just hangs with a black screen. The cmdline shows:
Code: Select all
$ ./t-engine
[CPU] Detected 8 CPUs
OpenAL device available: OpenAL Soft (default OpenAL Soft)
Available video driver: x11
Available video driver: dummy
NO SELFEXE: bootstrapping from CWD
WARNING: No bootstrap code found, defaulting to working directory for engine code!
Creating particles thread 0
[DO RESIZE] 800x600 (0)
OpenGL max texture size: 8192
OpenGL max texture size: 8192
===fbo 1
Running lua loader code...
move 0 x 37
resize 1916 x 1039
[DO RESIZE] 1916x1039 (0)
OpenGL max texture size: 8192
Code: Select all
recvfrom(6, 0x1493cb4, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
select(7, [6], NULL, NULL, {0, 0}) = 0 (Timeout)
Thanks in advance