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

Compiling help TFS 1.3 vcpkg compile

gohamvsgoku

Member
Joined
Aug 21, 2017
Messages
151
Reaction score
9
Im using visual studio 2017 and windows 10 64 bits.
I followed all the steps of the tutorial.


Bash:
server@DESKTOP-VB90F8F MINGW64 ~
$ git clone https://github.com/Microsoft/vcpkg
Cloning into 'vcpkg'...
remote: Enumerating objects: 118, done.
remote: Counting objects: 100% (118/118), done.
remote: Compressing objects: 100% (113/113), done.
remote: Total 50873 (delta 21), reused 60 (delta 5), pack-reused 50755
Receiving objects: 100% (50873/50873), 11.47 MiB | 2.11 MiB/s, done.
Resolving deltas: 100% (32919/32919), done.
Checking out files: 100% (2826/2826), done.

Bash:
server@DESKTOP-VB90F8F MINGW64 ~
$ cd vcpkg

Bash:
server@DESKTOP-VB90F8F MINGW64 ~/vcpkg (master)
$ ./bootstrap-vcpkg.bat

Final console message of .\bootstrap-vcpkg.bat command

Bash:
  vcpkglib.vcxproj -> C:\Users\server\vcpkg\toolsrc\msbuild.x86.release\vcpkglib.lib
  vcpkg.cpp
  Generating code
  All 15140 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
  Finished generating code
  vcpkg.vcxproj -> C:\Users\server\vcpkg\toolsrc\msbuild.x86.release\vcpkg.exe
  vcpkgmetricsuploader.cpp
  Generating code
  All 5350 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
  Finished generating code
  vcpkgmetricsuploader.vcxproj -> C:\Users\server\vcpkg\toolsrc\msbuild.x86.release\vcpkgmetricsuploader.exe

Building vcpkg.exe... done.

Bash:
server@DESKTOP-VB90F8F MINGW64 ~/vcpkg (master)
$ ./vcpkg integrate install
Applied user-wide integration for this vcpkg root.

All MSBuild C++ projects can now #include any installed libraries.
Linking will be handled automatically.
Installing new libraries will make them instantly available.

CMake projects should use: "-DCMAKE_TOOLCHAIN_FILE=C:/Users/server/vcpkg/scripts/buildsystems/vcpkg.cmake".

Bash:
server@DESKTOP-VB90F8F MINGW64 ~/vcpkg (master)
$ ./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
The following packages will be built and installed:

Final console message of ./vcpkg install boost...
Bash:
Building package cryptopp[core]:x64-windows... done
Installing package cryptopp[core]:x64-windows...
Installing package cryptopp[core]:x64-windows... done
Elapsed time for package cryptopp:x64-windows: 20.45 min

Total elapsed time: 2.164 h

The package pugixml:x64-windows provides CMake targets:

    find_package(pugixml CONFIG REQUIRED)
    target_link_libraries(main PRIVATE pugixml)

The package cryptopp:x64-windows provides CMake targets:

    find_package(cryptopp CONFIG REQUIRED)
    target_link_libraries(main PRIVATE cryptopp-static)

When i open the project with visual, the project not load boosts and libraries...

1>c:\users\server\desktop\projeto\src\tools.h(24): fatal error C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory (compiling source file ..\src\ban.cpp)
1>baseevents.cpp
 
Last edited:
It looks like he didn't miss a step, Don. Unless he edited his post. I am currently testing it out to see if it works when I do it
 
So it turns out that I have the same problem, being that the boost libraries are not being found when I attempt to compile in visual studio.
I am also using Windows 10 64bit

1 -
I downloaded:
Git
Visual Studio 2017
vcpkg

2 - I installed:
Git
Visual Studio 2017

3 - I followed the setup properly in Git to install vcpkg and libraries with success
4 - Opened project file with Visual Studio and attempted to compile without success.
 
Last edited:
Code:
git clone --recursive otland/forgottenserver (https://github.com/otland/forgottenserver.git)

I am using exactly what was provided
 
I reinstalled everything and tried it again with 100% success. I don't know why it wasn't working the first time.
 
I reinstalled everything
What exactly do you mean by "everything"?
I'm getting this error now and I'm trying to re-run the steps, no success so far.


Edit: what worked for me was replacing "#include <lua.hpp>" for "#include <luajit/lua.hpp>" in configmanager.cpp and luascript.h.
 
Last edited:
Code:
:x64-windows
    boost-filesystem[core]:x64-windows
    boost-iostreams[core]:x64-windows
    boost-lockfree[core]:x64-windows
    boost-system[core]:x64-windows
    boost-variant[core]:x64-windows
    cryptopp[core]:x64-windows
    libmariadb[core]:x64-windows
    luajit[core]:x64-windows
    mpir[core]:x64-windows
    pugixml[core]:x64-windows
Package boost-iostreams:x64-windows is already installed
Package boost-asio:x64-windows is already installed
Package boost-filesystem:x64-windows is already installed
Package boost-lockfree:x64-windows is already installed
Package boost-system:x64-windows is already installed
Package boost-variant:x64-windows is already installed
Package cryptopp:x64-windows is already installed
Package libmariadb:x64-windows is already installed
Package luajit:x64-windows is already installed
Package mpir:x64-windows is already installed
Package pugixml:x64-windows is already installed

Total elapsed time: 5.003 ms

The package cryptopp:x64-windows provides CMake targets:

    find_package(cryptopp CONFIG REQUIRED)
    target_link_libraries(main PRIVATE cryptopp-static)

The package pugixml:x64-windows provides CMake targets:

    find_package(pugixml CONFIG REQUIRED)
    target_link_libraries(main PRIVATE pugixml)


C:\vcpkg>

The same here, i have installed all again and i get the same.
 
Code:
:x64-windows
    boost-filesystem[core]:x64-windows
    boost-iostreams[core]:x64-windows
    boost-lockfree[core]:x64-windows
    boost-system[core]:x64-windows
    boost-variant[core]:x64-windows
    cryptopp[core]:x64-windows
    libmariadb[core]:x64-windows
    luajit[core]:x64-windows
    mpir[core]:x64-windows
    pugixml[core]:x64-windows
Package boost-iostreams:x64-windows is already installed
Package boost-asio:x64-windows is already installed
Package boost-filesystem:x64-windows is already installed
Package boost-lockfree:x64-windows is already installed
Package boost-system:x64-windows is already installed
Package boost-variant:x64-windows is already installed
Package cryptopp:x64-windows is already installed
Package libmariadb:x64-windows is already installed
Package luajit:x64-windows is already installed
Package mpir:x64-windows is already installed
Package pugixml:x64-windows is already installed

Total elapsed time: 5.003 ms

The package cryptopp:x64-windows provides CMake targets:

    find_package(cryptopp CONFIG REQUIRED)
    target_link_libraries(main PRIVATE cryptopp-static)

The package pugixml:x64-windows provides CMake targets:

    find_package(pugixml CONFIG REQUIRED)
    target_link_libraries(main PRIVATE pugixml)


C:\vcpkg>

The same here, i have installed all again and i get the same.
Try again, this happened to me 3 times and I solved it by reinstalling. Apparently it is an error when downloading the files.
 
Back
Top