Download: include + static lib(a) + dynamic lib(dll):
http://www.speedy*****malware.localhost/files/25886724/luajit.rar
Tutorial:
For Dev-cpp goto project -> Project options -> Parametres and replace "-llua5.1 -lluasql_mysql -lluasql_sqlite" with "-lluajit -lluajitsql_sqlite3.dll -lluajitsql_mysql.dll" and in C++ Compiler put "-D__LUAJIT__"
If you are using mingw32-make, please use this makefile:
If you have any questions, just ask in this thread
http://www.speedy*****malware.localhost/files/25886724/luajit.rar
Tutorial:
For Dev-cpp goto project -> Project options -> Parametres and replace "-llua5.1 -lluasql_mysql -lluasql_sqlite" with "-lluajit -lluajitsql_sqlite3.dll -lluajitsql_mysql.dll" and in C++ Compiler put "-D__LUAJIT__"
If you are using mingw32-make, please use this makefile:
Code:
CXX = g++
CXXINCLUDES = -I"." -I"C:/Dev-Cpp/include"
CXXFLAGS = $(CXXINCLUDES) -D__USE_MYSQL__ -D__USE_SQLITE__ -D__LUAJIT__ -D__CONSOLE__
LIBS = -L"C:/Dev-Cpp/lib" -lboost_regex -lboost_system -lboost_thread -lgmp -lluajitsql_sqlite3.dll -lluajitsql_mysql.dll -lluajit -lmysql -lsqlite3 -lwsock32 -lxml2 -lmysql -lws2_32 -s
RM = rm -f
EXECUTABLE = TheForgottenServer
SRC = otserv.cpp account.cpp actions.cpp admin.cpp allocator.cpp ban.cpp baseevents.cpp \
beds.cpp chat.cpp combat.cpp commands.cpp condition.cpp configmanager.cpp connection.cpp \
container.cpp creature.cpp creatureevent.cpp cylinder.cpp database.cpp databasemysql.cpp \
databasesqlite.cpp depot.cpp exception.cpp fileloader.cpp game.cpp globalevent.cpp \
gui.cpp house.cpp housetile.cpp inputbox.cpp ioguild.cpp iologindata.cpp iomap.cpp iomapserialize.cpp \
item.cpp items.cpp logger.cpp luascript.cpp mailbox.cpp map.cpp md5.cpp monster.cpp monsters.cpp \
mounts.cpp movement.cpp networkmessage.cpp npc.cpp outfit.cpp outputmessage.cpp party.cpp player.cpp \
playerbox.cpp position.cpp protocol.cpp protocolgame.cpp protocollogin.cpp protocolold.cpp quests.cpp \
raids.cpp rsa.cpp scheduler.cpp scriptmanager.cpp server.cpp sha1.cpp spawn.cpp spells.cpp \
status.cpp talkaction.cpp tasks.cpp teleport.cpp textlogger.cpp thing.cpp tile.cpp tools.cpp \
trashholder.cpp vocation.cpp waitlist.cpp weapons.cpp
OBJ = $(SRC:.cpp=.o)
.PHONY: all clean
all: $(SRC) $(EXECUTABLE)
$(EXECUTABLE): $(OBJ)
$(CXX) $(OBJ) -o $@ $(LIBS)
clean:
$(RM) $(OBJ) $(EXECUTABLE)
%.cpp: $(OBJ)
$(CXX) $(CXXFLAGS) $< -o $@
Last edited: