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

Compilation on windows 7 with Visual Studio 2015

hellboy

Intermediate OT User
Joined
Apr 6, 2008
Messages
544
Solutions
6
Reaction score
122
Location
player:getTown()
I guess "register_otclient_boost_env.bat" doesn't work at all in my case. (I run it as regular user and as administrator).

I followed this guide: Compiling on Windows · edubart/otclient Wiki · GitHub

Code:
1>------ Rebuild All started: Project: otclient, Configuration: Release x64 ------
1>cl : Command line warning D9002: ignoring unknown option '/arch:SSE2'
1>cl : Command line warning D9002: ignoring unknown option '/arch:SSE2'
1>cl : Command line warning D9002: ignoring unknown option '/arch:SSE2'
1>  animatedtext.cpp
1>  animator.cpp
1>cl : Command line warning D9002: ignoring unknown option '/arch:SSE2'
1>  client.cpp
1>cl : Command line warning D9002: ignoring unknown option '/arch:SSE2'
1>  container.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\client.cpp)
1>  creature.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\animatedtext.cpp)
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\animator.cpp)
1>  creatures.cpp
1>  effect.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\container.cpp)
1>  game.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\creature.cpp)
1>  houses.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\creatures.cpp)
1>  item.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\effect.cpp)
1>  itemtype.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\game.cpp)
1>  lightview.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\houses.cpp)
1>  localplayer.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\item.cpp)
1>  luafunctions.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\itemtype.cpp)
1>  luavaluecasts.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\lightview.cpp)
1>  map.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\localplayer.cpp)
1>  mapio.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\luafunctions.cpp)
1>  mapview.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\luavaluecasts.cpp)
1>  minimap.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\map.cpp)
1>  missile.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\mapio.cpp)
1>  outfit.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\mapview.cpp)
1>  player.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\minimap.cpp)
1>  protocolcodes.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\missile.cpp)
1>  protocolgame.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\outfit.cpp)
1>  protocolgameparse.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\player.cpp)
1>  protocolgamesend.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\protocolcodes.cpp)
1>  shadermanager.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\protocolgame.cpp)
1>  spritemanager.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\protocolgameparse.cpp)
1>  statictext.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\protocolgamesend.cpp)
1>  thing.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\shadermanager.cpp)
1>  thingtype.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\spritemanager.cpp)
1>  thingtypemanager.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\statictext.cpp)
1>  tile.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\thing.cpp)
1>  towns.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\thingtype.cpp)
1>  uicreature.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\thingtypemanager.cpp)
1>  uiitem.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\tile.cpp)
1>  uimap.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\towns.cpp)
1>  uimapanchorlayout.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\uicreature.cpp)
1>  uiminimap.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\uiitem.cpp)
1>  uiprogressrect.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\uimap.cpp)
1>  uisprite.cpp
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\uimapanchorlayout.cpp)
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\uiminimap.cpp)
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\uiprogressrect.cpp)
1>D:\GIT\otclient-master\src\framework/stdext/thread.h(26): fatal error C1083: Cannot open include file: 'boost/thread/future.hpp': No such file or directory (compiling source file ..\src\client\uisprite.cpp)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

Any advice?
 
I was have the same problem, and cause of them is very annoying.
register_otclient_sdk_env.bat and register_otclient_boost_env.bat not working (don't add environments).
So you must add it with other way.
My solution:
1) Open files (register_otclient_sdk_env.bat, register_otclient_boost_env.bat) with administrator privilege (they add names, but with bad path - need to change)
2) Go to: System -> Advanced System Settings -> Advanced -> Environment Variables
3) Add correct path

----------------------------------------------------------------------------------

Now I have something other problem:
Vs15 create files: .exe, .exp, .lib - build successful.
But they don't link libraries to file .exe. Libraries: zlib.dll, OpenAL32.dll, glew32.dll (otclient.exe system error - need library ...).
And my question is how to link this libraries to otclient.exe (static link) file?
 
I am following you guys and I am in the same page. After manually including the correct directories manually through Visual Studio project options I managed to get a succesful compilation, but there were lots of warnings:
1>libeay32.lib(cryptlib.obj) : warning LNK4099: PDB 'lib.pdb' was not found with 'libeay32.lib(cryptlib.obj)' or at 'D:\andreoliveira31-client-a9cd021d4a29\lib.pdb'; linking object as if no debug info
1>libeay32.lib(mem.obj) : warning LNK4099: PDB 'lib.pdb' was not found with 'libeay32.lib(mem.obj)' or at 'D:\andreoliveira31-client-a9cd021d4a29\lib.pdb'; linking object as if no debug info
1>libeay32.lib(mem_dbg.obj) : warning LNK4099: PDB 'lib.pdb' was not found with 'libeay32.lib(mem_dbg.obj)' or at 'D:\andreoliveira31-client-a9cd021d4a29\lib.pdb'; linking object as if no debug info

(There were thousands of these warnings, I just shortened them because I believe they don't provide anything more than these few ones can)

Furthermore, upon trying to run the executable generated, I got this message:
l1q0dB5.png


After moving the zlib.dll to the directory, the error changed to this:
pvyKcor.png


Which makes me thing the whole linking process failed but Visual Studio just generated a binary file without its dependencies.
Have any of you two made any progress yet?



EDIT:

By adding glew32.dll to the directory OTC finally opens. Still didn't perform any more tests.
The question of how to statically link (no longer require dlls) is still open.
 
Last edited:
Right click on the project (not solution) go into properties (at bottom on mine) click C++ in the left pane and then add your boost folder into "additional include directories".

Hope this helps.
 
Back
Top