Compiling OTClient's latest source with Microsoft Visual Studio 2013.

Mariuskens

Sword Art Online 2D-MMORPG
Joined
Nov 21, 2008
Messages
983
Best answers
0
Reaction score
88
Location
Spain
hmmm i think using this libraries but i need test again, thnx anyway :p
 

Marcelo Druida

Intermediate OT User
Joined
Nov 17, 2014
Messages
423
Best answers
1
Reaction score
122
Using the latest OTClient sdk

Code:
Error    907    error LNK1104: cannot open file 'libboost_thread-vc120-mt-1_63.lib'
 

StreamSide

Joseluis Gonzalez
Support Team
Joined
Aug 31, 2007
Messages
3,327
Best answers
33
Reaction score
832
Location
Arica - Chile
Using the latest OTClient sdk

Code:
Error    907    error LNK1104: cannot open file 'libboost_thread-vc120-mt-1_63.lib'
where did you downloaded that pack? i compiled it like 1 week ago
edit: take a look at the conde2 otclient lib, those libraries are for visual2013 thats why the vc120, you will have to download the boost 1_6_3 pack for visual 2013
edit2:
32x and 64x
 
Last edited:

danielouz

New Member
Joined
Dec 27, 2014
Messages
28
Best answers
0
Reaction score
1
do you know what to do when im trying to run tfs.exe file after compiling and the console app closes instantly ?
 

Itutorial

Veteran OT User
Joined
Dec 23, 2014
Messages
1,540
Best answers
35
Reaction score
377
Keep getting error cannot open zlib.lib....I know I have linked everything correctly. That is the only error and happens at very end of the compile. Any ideas?
 

Itutorial

Veteran OT User
Joined
Dec 23, 2014
Messages
1,540
Best answers
35
Reaction score
377
Turns out the most the names of the files in my otclient libs where changed by whoever made them. I will change them to the right names and post if that fixes the problem.
 

CipsoftStinks

www.relicaria.com
Joined
Oct 1, 2016
Messages
906
Best answers
3
Reaction score
113
Location
Chile
Turns out the most the names of the files in my otclient libs where changed by whoever made them. I will change them to the right names and post if that fixes the problem.
post the fix please im having the same issue with the latest compiling guide by edubart with msvc 2015
im having some issues with cmake too
 

Itutorial

Veteran OT User
Joined
Dec 23, 2014
Messages
1,540
Best answers
35
Reaction score
377
WHY



This happens at very end of compile... I know everything is linked right.
 

CipsoftStinks

www.relicaria.com
Joined
Oct 1, 2016
Messages
906
Best answers
3
Reaction score
113
Location
Chile
Dx9 Support Layer
If you would like to enable the dx9 support layer for otclient you need to compile with -DOPENGLES=2.0. Now otclient.exe will ask for libEGL.dll and libGLESv2.dll which you can gethere, place these dlls with the otclient.exe folder.
this libraries support dx9?
 

Sir Sezago

Scripter/Developer
Joined
Aug 28, 2017
Messages
274
Best answers
0
Reaction score
16
NOTE: There's a newer official tutorial for MSVC 2015: Compiling on Windows · edubart/otclient Wiki · GitHub

Since no one has done a tutorial for compiling OTC here on OTland and I would like to see OTC be more popular here goes a little tutorial on compiling it.

I am going to assume that you know at least some basic stuff about MSVC if you dont, as practice I recommend you follow this tutorial first to get the hang of things.
1. Lets get our compiler includes and libs.

2. Now that we have the source and libs lets put them in the correct places.

2.1 Add the libs to your C:/ drive.

Its best if you put it in your C:/ drive because the .vcxproj defaults the libs to the C drive. This will save you lots of time because you dont have to manually link all of the includes and libs.

2.2 Extract the source wherever you want. I extracted it to my OT Stuff folder.

3. Open up the solution with MSVC 2013


4. Now lets set up the properties.

5. Now select the correct config:

6. Now here it might get a bit confusing so pay attention.
6.1 If you extracted the libs to your D:/ drive you only need to add this to your includes:


And this to your libs.


6.2 But if you extracted the libs elsewhere you must add these dirs as well.
This is for the includes:


And this for the libs:

6. Now hit apply and let the files parse, this is automatic.


7. Once it is
you can rebuild the files.

8. Now you might get a waring or two but that is expected, so long it succeeds you're ok.

9. Now you have your EXE, get the dlls here.


And there you have it you just compiled OTClient's latest source.

Thanks to @edubart for developing OTC, to @Dalkon for adding MSVC compilation files, and to @conde2 for fixing up the source so that it is compatible with MSVC's compiler.

Enjoy!
Re Upload Libs :D
 

Peonso

Godly Member
Joined
Jan 14, 2008
Messages
1,517
Best answers
24
Reaction score
1,014
Tried to compile with this Tutorial but somehow im stupid to do it dont ask me why -_-

here a explain what kind of error i always get:
You added the DLLs to otclient.exe folder? zlib.dll and glew32.dll (both x86).
 

gsorellana

New Member
Joined
Dec 24, 2018
Messages
1
Best answers
0
Reaction score
0
Hi, im trying to compile with the newest guide for MVS 2017, followed it step by step and I'm getting that error, no idea how to solve it since it installed every boost lib as the guide states:

vcpkg install boost-iostreams:x64-windows boost-asio:x64-windows boost-system:x64-windows boost-variant:x64-windows boost-lockfree:x64-windows luajit:x64-windows glew:x64-windows boost-filesystem:x64-windows boost-uuid:x64-windows physfs:x64-windows openal-soft:x64-windows libogg:x64-windows libvorbis:x64-windows zlib:x64-windows

Any ideas please?
Thank you
 

Attachments

Top