Would you guys mind if I distribute MCServer + LuaJIT binaries?
#13
If there's alot of looping and number manipuation that goes on in the generator side, I wouldn't be surprised if you got double that. Smile

So basically, here's what I did:

First, I built the server normally to generate Bindings.cpp and Bindings.h as they refused to generate after the patch.

Then in CMakeLists.txt in the root source folder, I changed it to this:

# Include all the libraries:
add_subdirectory(lib/jsoncpp/)
add_subdirectory(lib/zlib/)
add_subdirectory(lib/tolua++/)
add_subdirectory(lib/sqlite/)
add_subdirectory(lib/SQLiteCpp/)
add_subdirectory(lib/expat/)
add_subdirectory(lib/luaexpat/)
add_subdirectory(lib/libevent/)

(The Lua entry was removed.)

Next I did deleted the lua folder in src/lib/ and lib/lua/

Then I downloaded LuaJIT libs from my Ubuntu repo.

Then, assuming that you ran cmake already, I went into src/src/CMakeFiles/MCServer.dir/link.txt.
There should be 2 flags under there that link to Lua libraries (-llua). I changed these to the file path of the static libs of LuaJIT installed earlier.

Now in src/lib/tolua++/CMakeFiles/tolua.dir/link.txt, do the same thing and replace "-llua" with the abolute filepath of the static LuaJIT lib.

Then go back and run make, it should compile relatively smoothly. Smile
Reply
Thanks given by:


Messages In This Thread
RE: Would you guys mind if I distribute MCServer + LuaJIT binaries? - by DiamondToaster - 03-17-2015, 04:59 AM



Users browsing this thread: 1 Guest(s)