Re: [ANN] Lua-SDL2 rc1 available for testing!
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: [ANN] Lua-SDL2 rc1 available for testing!
- From: David Demelier <demelier.david@...>
- Date: 2014年6月24日 08:12:06 +0200
Le 23/06/2014 23:08, Alexander a écrit :
Hi,
>>> Did you install the release version or one from Mercurial ?
I installed the release version
>>> Where is the libSDL2-2.0.so.0 installed? Can you please type ldd
/path/to/libSDL2-2.0.so.0?
$ ldd /usr/local/lib/libSDL2-2.0.so.0
linux-gate.so.1 => (0xb7776000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb7620000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb761b000)
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb75fe000)
librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xb75f5000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb7446000)
/lib/ld-linux.so.2 (0xb7777000)
>>> Also, can you please type ldd on the SDL.so file provided by Lua-SDL2
$ ldd /usr/local/lib/lua/5.2/SDL.so
linux-gate.so.1 => (0xb7785000)
libSDL2-2.0.so.0 => /usr/local/lib/libSDL2-2.0.so.0 (0xb764c000)
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb7630000)
liblua5.2.so.0 => /usr/lib/i386-linux-gnu/liblua5.2.so.0 (0xb75fc000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb744d000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb7407000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb7402000)
librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xb73f9000)
/lib/ld-linux.so.2 (0xb7786000)
And now starts the funny part. I tried now the example again. And it
works now.
It is really strange for me because I did get the error continuous
also after two reboots.
Just strange for me.
For me too, I'm not expert in dynamic loader but if I recall correctly
the ld.so searchs for standard paths like /lib /usr/lib (correct me if
I'm wrong). On Linux I'm not sure that /usr/local/lib/ is a standard
path where the loader search libraries.
For me on FreeBSD, when you install a new library from packages, the ld
search path is refreshed (and also when you reboot). So *maybe* the
problem came from here.
Now I get a SDL error message:
lua: image.lua:10: No available video device
stack traceback:
[C]: in function 'error'
image.lua:10: in main chunk
[C]: in ?
That is not a Lua error so thanks for your help.
I suspect that SDL were not compiled with video drivers support. Make
sure you have enough X11 development libraries installed before
installing SDL2.
See the ./configure --enable-video-* flags too. By the way, there is no
libsdl2 directly in ubuntu repositories?
Regards,