iamaleksey / lua-zmq

Lua zeromq2 binding

Home Page:http://github.com/iamaleksey/lua-zmq

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Solved] Compiling against luajit?

pdhborges opened this issue · comments

I can't get the bindings to work with luajit. Tried to:

gcc -I/usr/local/include/luajit-2.0/ -o zmq.lo -c -pthread -fPIC -Wall -O2 zmq.c
gcc -shared -lzmq -lluajit-51 zmq.lo -o zmq.so

requiring zmq gives the following error:

dlopen(/usr/local/lib/lua/5.1/zmq.so, 2): Library not loaded: libluajit.so

EDIT: Additional compilation flags and prober libluajit renaming are need for Mac OS