lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Le 23/06/2014 23:08, Alexander a écrit :

>>> Did you install the release version or one from Mercurial ?

I installed the release version

>>> Where is the installed? Can you please type ldd /path/to/

$ ldd /usr/local/lib/ =>  (0xb7776000) => /lib/i386-linux-gnu/ (0xb7620000) => /lib/i386-linux-gnu/ (0xb761b000) => /lib/i386-linux-gnu/ (0xb75fe000) => /lib/i386-linux-gnu/ (0xb75f5000) => /lib/i386-linux-gnu/ (0xb7446000)
    /lib/ (0xb7777000)

>>> Also, can you please type ldd on the file provided by Lua-SDL2

$ ldd /usr/local/lib/lua/5.2/ =>  (0xb7785000) => /usr/local/lib/ (0xb764c000) => /lib/i386-linux-gnu/ (0xb7630000) => /usr/lib/i386-linux-gnu/ (0xb75fc000) => /lib/i386-linux-gnu/ (0xb744d000) => /lib/i386-linux-gnu/ (0xb7407000) => /lib/i386-linux-gnu/ (0xb7402000) => /lib/i386-linux-gnu/ (0xb73f9000)
    /lib/ (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 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?