shaunlebron / blinky

Exploring peripheral vision in games (using Quake)
MIT License
687 stars 26 forks source link

What are the Lua dependencies? #43

Closed SpiritQuaddicted closed 9 years ago

SpiritQuaddicted commented 13 years ago

Hi there!

I tried compiling but got

... CC build/nqsw/sys_dosa.o LINK tyr-quake build/nqsw/lens.o: In function L_InitLua': lens.c:(.text+0x9a0): undefined reference toluaopen_jit' collect2: ld returned 1 exit status make: *\ [tyr-quake] Error 1

I am on Archlinux. lua 5.1.4-6 is installed. I did install luajit 1.1.7-1 but it did not help.

shaunlebron commented 13 years ago

Hello, to install LuaJIT correctly:

It should successfully compile now because it will be using LuaJIT instead of plain Lua.

Also, if that is successful, make sure you copy the "lenses" folder from the Quake-Lenses directory to "$HOME/.tyrquake/" so the game can load the Lua scripts for each lens.

SpiritQuaddicted commented 13 years ago

No luck, identical error. Weird!

~/ramdisk/Quake-Lenses$ ls -l /usr/local/lib/liblua.* -rw-r--r-- 1 root root 318372 Jul 5 17:33 /usr/local/lib/liblua.a

~/ramdisk/Quake-Lenses$ make clean && make prepare && make (...) CC build/nqsw/sys_dosa.o LINK tyr-quake build/nqsw/lens.o: In function L_InitLua': lens.c:(.text+0x9a0): undefined reference toluaopen_jit' collect2: ld returned 1 exit status make: *\ [tyr-quake] Error 1

I even temporarily copied the luajit liblua.a into /usr/lib (so there are no PATH issues though I have no idea about that, I am not a programmer), same result.

Well, it seems like you want to polish it more anyways or is the website live somewhere already? I'd just wait til then otherwise. :-)

shaunlebron commented 13 years ago

Hey, sorry, I couldn't replicate the problem on Ubuntu. I'm not sure what the problem could be, but maybe you can try whereis liblua to see where your system is looking for it. And once you find it, try nm <path>/liblua.a | grep luaopen_jit to see if that LuaJIT initialization function is really in it.

Thanks for checking it out. The website is not live yet, but you can watch its progress in the repo under website/index.htm.

shaunlebron commented 9 years ago

removed luajit as a dependency, just requires lua