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

Problems while compiling OTClient

L

LordVissie

Guest
Hi, I've been trying to compile OTClient with MVS for quite some hours now, but I randomly stumble on every random error you can possible get I think.

I'm following this tutorial:
https://github.com/edubart/otclient/wiki/Compiling-on-Windows

Previously I was using dominique's tutorial but that's different than this tutorial.

I'm currently running in this error:

2c6951983b631626512cb27fd1d74792.png

because I ran into this problem:
2e753bd101a6e20aa8653bd953573418.png

So, I added a folder in "otclient-libs_mingw32-dwarf2" called "unistd" with getopt.h and unistd.h and I edited the part in unistd.h, then I linked them like this:
49d4fd2baf3ad75c864ff5024fca80a1.png


And ofc at linker I've the same settings but lib instead of include.
And then it was returning the error as I stated above.

What am I doing wrong or how do I fix this?

Thanks.
 
An error a compiler throws isn't always the correct error, sometimes the whole world can seem like its going to hell in a hand basket according to the compiler and all you did was forget a semi-colon.

If you changed anything in the sources, start over with fresh sources, if you changed anything in the headers, libraries or settings in the compiler that you thought were a good idea at the time. Then start over, delete the files or reinstall the software, its easier than trying to figure out what went wrong especially if you have no idea where to look.

Always compile 1st to make sure it works the 1st time. If it won't compile then post the errors here, don't make changes if you are not sure what you are doing unless you are prepared to start over, well good luck :)
 
Last edited:
An error a compiler throws isn't always the correct error, sometimes the whole world can seem like its going to hell in a hand basket according to the compiler and all you did was forget a semi-colon.

If you changed anything in the sources, start over with fresh sources, if you changed anything in the headers, libraries or settings in the compiler that you thought were a good idea at the time. Then start over, delete the files or reinstall the software, its easier than trying to figure out what went wrong especially if you have no idea where to look.

Always compile 1st to make sure it works the 1st time. If it won't compile then post the errors here, don't make changes if you are not sure what you are doing unless you are prepared to start over, well good luck :)
Thanks for your comment. But the thing is, I didnt do any changes. I'll try to start over an reinstall everything.
 
Thanks for your comment. But the thing is, I didnt do any changes. I'll try to start over an reinstall everything.
I just clicked on the link you posted in the main post, i didn't use 2012 to compile the sources I used 2013.
I got a crap load of warnings but the important thing is it compiled.
Code:
1>  otclient.vcxproj -> C:\OTClient\recent build\vc12\Release\otclient.exe
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
I've uploaded the files I used to compile everything except for boost_1_57_0 because its 2.4 gigs.
https://sourceforge.net/projects/boost/files/boost/1.57.0/boost_1_57_0.zip

Virus Scan
https://www.virustotal.com/en/file/...d58745d995ae4bc39b9212f3/analysis/1477211918/

http://www.mediafire.com/file/vip38k1uy7eagk0/otclient-msvc13-libs.zip

The one on the left is the original files I downloaded and the one on the right is the one I am using to compile.
I believe I may have made some modifications to the folder structure or added missing files, I am not really too sure because I am working on a lot of different projects at once.
3P690mY.png


This is the includes and lib setup I have for the project.
I5OKDN5.png
 
Last edited:
I just clicked on the link you posted in the main post, i didn't use 2012 to compile the sources I used 2013.
I got a crap load of warnings but the important thing is it compiled.
Code:
1>  otclient.vcxproj -> C:\OTClient\recent build\vc12\Release\otclient.exe
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
I've uploaded the files I used to compile everything except for boost_1_57_0 because its 2.4 gigs.
https://sourceforge.net/projects/boost/files/boost/1.57.0/boost_1_57_0.zip

Virus Scan
https://www.virustotal.com/en/file/...d58745d995ae4bc39b9212f3/analysis/1477211918/

http://www.mediafire.com/file/vip38k1uy7eagk0/otclient-msvc13-libs.zip

The one on the left is the original files I downloaded and the one on the right is the one I am using to compile.
I believe I may have made some modifications to the folder structure or added missing files, I am not really too sure because I am working on a lot of different projects at once.
3P690mY.png


This is the includes and lib setup I have for the project.
I5OKDN5.png
Thanks for your comment, I'll try this asap but i'm in the middle of a rebuilding atm so it can take some time.
 
About the boost_1_57_0\include and boost_1_57_0\lib I couldn`t manage to find those paths inside the lib I downloaded from the link you provided
Am I downloading the wrong files?
 
I think codex posted how to compile using msvc13 as ppl seemed to have issues compiling using msvc15
 
Last edited:
Back
Top