• 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!

Solved error while compile visual studio

popitox

Member
Joined
Jul 8, 2008
Messages
63
Reaction score
8
hello community, im trying to compile otx 3.8 based on tfs 1.3,
im using visual studio 2015 enterprise update 3,
already installed the tools and the v140 stuff,
i want to build my 7.72 otserver, im taking this build,

im having this problem when compiling
Severity Code Description Project File Line Suppression State
Error LNK1104 cannot open file 'libboost_system-vc140-mt-x32-1_66.lib'

im using this guide
i already download sdk 3.2 installed the libs for 32 bits and still not working

i already tryed with boost 14.0 witch comes with the otx,
and 14.1 with sdk that comes with tfs
and still not working

i already add manually the includes on c++
and add the libs on linker but still not working,

and this error happens when use boost_1_71_0-msvc-14.0-32
Severity Code Description Project File Line Suppression State
Severity Code Description Project File Line Suppression State
Error C2440 '<function-style-cast>': cannot convert from '' to 'boost:: posix_time::seconds' theforgottenserver
Error C2440 '<function-style-cast>': cannot convert from '' to 'boost:: posix_time::seconds' theforgottenserver
Error C2440 '<function-style-cast>': cannot convert from '' to 'boost:: posix_time::seconds' theforgottenserver
Error C2440 '<function-style-cast>': cannot convert from '' to 'boost:: posix_time::seconds' theforgottenserver

i already try to fix with this
but still not working it give me more errors :/

can someone help me, please
 
Last edited:
Solution
mpfr removed?
Do u have cmake installed?
Git bash?
I think ur windows have a missing any sdk version or framework.
I remember this error is with installed other lib.
I recommend you to use vcpkg, because you don't need to keep including libraries, because the system does it automatically.
Create a folde in C:// with name DEV. and press shift + right mouse on blank folder, goto open powershell.
and follow these instructions
for architecture 86x
./vcpkg install boost-iostreams boost-asio boost-system boost-filesystem boost-variant boost-lockfree luajit libmariadb pugixml cryptopp fmt mpir
for architecture 64x
./vcpkg install --triplet x64-windows boost-iostreams boost-asio boost-system boost-filesystem boost-variant boost-lockfree luajit libmariadb pugixml cryptopp fmt mpir
Wait for everything to end it takes about 20 minutes.
./vcpkg integrate install
After having everything installed, go to the compiler wait for it to read everything to see if there is no error.
If you are missing any library just go to powershell.
cd ./vcpkg
./vcpkg search name "lib missing" for exemple.

1645756466771.png

./vcpkg install name "lib missing"
after download and building.
./vcpkg integrate install
Can do this with the open compiler that updates.
And another one which was sdk version 140 or 141 i used 142 for both no problem with vs community 2019.
1645757149239.png
 
Last edited:
I recommend you to use vcpkg, because you don't need to keep including libraries, because the system does it automatically.
Create a folde in C:// with name DEV. and press shift + right mouse on blank folder, goto open powershell.
and follow these instructions

for architecture 86x

for architecture 64x


Wait for everything to end it takes about 20 minutes.

After having everything installed, go to the compiler wait for it to read everything to see if there is no error.
If you are missing any library just go to powershell.
cd ./vcpkg
./vcpkg search name "lib missing" for exemple.

View attachment 65761

./vcpkg install name "lib missing"
after download and building.
./vcpkg integrate install
Can do this with the open compiler that updates.
And another one which was sdk version 140 or 141 i used 142 for both no problem with vs community 2019.
View attachment 65762
im having this error 1645759874538.png
 
You must have installed another library that this mpir doesn't accept you have to uninstall it first.
./vcpkg remove gmp mpfr

After

./vcpkg install mpir
 
Last edited:
mpfr removed?
Do u have cmake installed?
Git bash?
I think ur windows have a missing any sdk version or framework.
I remember this error is with installed other lib.
 
Last edited:
Solution
Back
Top