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!
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
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!
Last edited by a moderator: