ObsidianQ
Member
- Joined
- Jan 26, 2017
- Messages
- 100
- Solutions
- 1
- Reaction score
- 10
Hello,
It is very easy to compile nowdays, download the files, execute the .bat files and done, both BOOST and SDK paths are set on the enviroment.
But there's an small issue:
When trying to compile, an error appears, it can't find certain lib from the boost folder on the OTClient SDK.
This is simply fixed by adding a few lines to otclientmaster\vc14\settings.props.
Just below
and above
Add this line:
Now go to "<OTCLIENT_LIBS>" and "<OTCLIENT_LIBS64>" and just below each modify the first line and replace with this...
For <OTCLIENT_LIBS> section:
And for the <OTCLIENT_LIBS64> section:
It should look like this:
I hope this helps those guys who struggle to compile and ends up adding every directory to the project settings. Now all you have to do is follow the instructions on the Github site: Download, place the files on their place and execute the .bat files properly to set the enviroment paths, open the project (And ofc, set it to Release / (ArchitectureOfYourChoice) (32 or 64)... And build!
Tip: I always build OTClient as Release/x32 since x64 gives tons of warnings while the x32 build comes almost clean.
If anyone knows how to properly build x64 without those tons of warnings or even know how to compile with DX9 support (Using Angle i believe) Please share.
It is very easy to compile nowdays, download the files, execute the .bat files and done, both BOOST and SDK paths are set on the enviroment.
But there's an small issue:
When trying to compile, an error appears, it can't find certain lib from the boost folder on the OTClient SDK.
This is simply fixed by adding a few lines to otclientmaster\vc14\settings.props.
Just below
Code:
<PropertyGroup Label="UserMacros">
and above
Code:
<LUA_DIR>$(OTCLIENTSDKDir)\LuaJIT-2.1.0\</LUA_DIR>
Add this line:
Code:
<LUA_DIR>$(OTCLIENTSDKDir)\LuaJIT-2.1.0\</LUA_DIR>
Now go to "<OTCLIENT_LIBS>" and "<OTCLIENT_LIBS64>" and just below each modify the first line and replace with this...
For <OTCLIENT_LIBS> section:
Code:
$(BOOST_DIR)\lib32-msvc-14.0;
And for the <OTCLIENT_LIBS64> section:
Code:
$(BOOST_DIR)\lib64-msvc-14.0;
It should look like this:
I hope this helps those guys who struggle to compile and ends up adding every directory to the project settings. Now all you have to do is follow the instructions on the Github site: Download, place the files on their place and execute the .bat files properly to set the enviroment paths, open the project (And ofc, set it to Release / (ArchitectureOfYourChoice) (32 or 64)... And build!
Tip: I always build OTClient as Release/x32 since x64 gives tons of warnings while the x32 build comes almost clean.
If anyone knows how to properly build x64 without those tons of warnings or even know how to compile with DX9 support (Using Angle i believe) Please share.