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

TFS 1.X+ fatal error C1083: Cannot open include file: 'boost/asio.hpp': No such file or directory

namco

Alienbutserious
Joined
Sep 5, 2010
Messages
148
Solutions
2
Reaction score
38
C++:
1>------ Build started: Project: theforgottenserver, Configuration: Debug x64 ------
1>otpch.cpp
1>c:\darkeraserver\src\otpch.h(42): fatal error C1083: Cannot open include file: 'boost/asio.hpp': No such file or directory
1>Done building project "theforgottenserver.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Everything is installed accordingly otland/forgottenserver.

My steps were:
  1. Visual Studio 2017
  2. Boost for MSVC 14.1 (32-bit and 64-bit)
  3. TFS SDK v3.2
  4. Registered both SDK and Boost
  5. Won't compile anyway (Debug, Release, x64, Win32)
Help pls?
 
what tfs are you trying to compile?
if you're trying to compile 1.3 you're using the outdated tutorial, it doesn't use manual installation of boost or sdk anymore
otland/forgottenserver

Code:
$ 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 libmariadb:x64-windows pugixml:x64-windows mpir:x64-windows cryptopp:x64-windows
bash: vcpkg: command not found
 
put ./ in front of the command (idk why they haven't changed it in the tutorial, cause it doesn't technically work as-is)
Code:
./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 libmariadb:x64-windows pugixml:x64-windows mpir:x64-windows cryptopp:x64-windowsbash
 
On Windows it's .\ not ./
.\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 libmariadb:x64-windows pugixml:x64-windows mpir:x64-windows cryptopp:x64-windowsbash
Also cryptopp:x64-windowsbash and mpir:x64-windows seem to be not available anymore.
 
Back
Top