I really tried for about 2 hours to compile it for you, but the code is quite old and contains some errors.
For example, in the
CMakeLists.txt
, I found this line:
LUA:
${CMAKE_CURRENT_LIST_DIR}/weapons.cpp
It references a file that doesn’t exist, causing a compilation issue.
Another important point is the Boost version. The code requires Boost 1.66. If you use a version higher than that, such as 1.70 or above, it will cause an error. Specifically, this line:
LUA:
boost::asio::io_service service;
Needs to be replaced with:
LUA:
boost::asio::io_context service;
Additionally, for the dependencies, you'll need to download VCPKG. Here are the steps:
1. Open CMD and navigate to the
C:\
directory:
2. Clone the VCPKG repository:
LUA:
git clone https://github.com/microsoft/vcpkg.git
3. Go into the VCPKG folder:
4. Run the bootstrap script:
5. Install the necessary dependencies:
LUA:
.\vcpkg install lua boost pugixml libmysql