Installed luajit from luajit.org
follow instructions on http://luajit.org/install.html
/usr/local/include/luajit-2.0 = the file with luajit2.0
I change the LUA_CFLAGS = -I/usr/include/lua5.1 in makefile to LUA_CFLAGS = -I/usr/local/include/luajit-2.0
Compiled with the following command line:
./autogen.sh
./configure --enable-mysql --enable-luajit
make -j 2
Only at the end there was a error. I don't know why it didn't compile right.
Does anyone know how I can fix this, or am I doing anything wrong?
this is the luascript.cpp : http://pastebin.com/971ahAPq
This is the error:
I really hope someone have experience with compiling with luajit.
Thank you!
follow instructions on http://luajit.org/install.html
/usr/local/include/luajit-2.0 = the file with luajit2.0
I change the LUA_CFLAGS = -I/usr/include/lua5.1 in makefile to LUA_CFLAGS = -I/usr/local/include/luajit-2.0
Compiled with the following command line:
./autogen.sh
./configure --enable-mysql --enable-luajit
make -j 2
Only at the end there was a error. I don't know why it didn't compile right.
Does anyone know how I can fix this, or am I doing anything wrong?
this is the luascript.cpp : http://pastebin.com/971ahAPq
This is the error:
PHP:
mv -f .deps/trashholder.Tpo .deps/trashholder.Po
mv -f .deps/vocation.Tpo .deps/vocation.Po
mv -f .deps/weapons.Tpo .deps/weapons.Po
mv -f .deps/spectators.Tpo .deps/spectators.Po
g++ -I/usr/include/libxml2 -I/usr/local/include/luajit-2.0 -O2 -fomit-frame-pointer -march=native -mtune=native -std=c++0x -D__USE_MYSQL__ -D__WAR_SYSTEM__ -D__LUAJIT__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -o theforgottenserver actions.o allocator.o baseevents.o beds.o chat.o combat.o condition.o configmanager.o connection.o container.o creature.o creatureevent.o cylinder.o database.o databasemanager.o databasemysql.o depot.o dispatcher.o exception.o fileloader.o game.o globalevent.o group.o house.o housetile.o ioban.o ioguild.o iologindata.o iomap.o iomapserialize.o item.o itemattributes.o items.o luascript.o mailbox.o manager.o map.o monster.o monsters.o movement.o networkmessage.o npc.o otserv.o outfit.o outputmessage.o party.o player.o position.o protocol.o protocolgame.o protocolhttp.o protocollogin.o protocolold.o quests.o raids.o rsa.o scheduler.o scriptmanager.o server.o spawn.o spells.o status.o talkaction.o teleport.o textlogger.o thing.o tile.o tools.o trashholder.o waitlist.o weapons.o vocation.o spectators.o -llua5.1 -lmysqlclient -lcryptopp -lboost_filesystem-mt -lboost_date_time-mt -lboost_system-mt -lboost_regex-mt -lboost_thread-mt -lz -lgmp -lxml2
luascript.o: In function `LuaInterface::initState()':
luascript.cpp:(.text+0x2f545): undefined reference to `luaJIT_setmode'
collect2: ld returned 1 exit status
make[1]: *** [theforgottenserver] Error 1
make[1]: Leaving directory `/home/sources'
I really hope someone have experience with compiling with luajit.
Thank you!