• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling compile gone wrong

Jknot

Member
Joined
Feb 18, 2008
Messages
163
Reaction score
13
Location
South Carolina
been at this for 14 hours now none stop and i have no idea what else to do, i have followed all the compiling tutorials for windows and vcpkg i even have everything working for a premade exe server and logged in fine but for the life of me i cannot figure out compiling any help /guidance would be greatly appreaciated guys i have tried to figure this out on my own i just cannot get it for some reason
 
what tfs you are using?
im trying to compile this one
Post automatically merged:

Honestly i would be happy getting any compile to work so that i could learn the proccess and figure out what i am doing wrong
 
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:
LUA:
cd C:\
2. Clone the VCPKG repository:
LUA:
git clone https://github.com/microsoft/vcpkg.git
3. Go into the VCPKG folder:
LUA:
cd C:\vcpkg
4. Run the bootstrap script:
LUA:
.\bootstrap-vcpkg.bat
5. Install the necessary dependencies:
LUA:
.\vcpkg install lua boost pugixml libmysql
 
Last edited:
Back
Top