• 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!
  • If you're using Gesior 2012 or MyAAC, please review this thread for information about a serious security vulnerability and a fix.

Compiling Error instaling libraries to compile TFS

soviec

New Member
Joined
Jun 7, 2012
Messages
11
Reaction score
1
Hi, everyone. How are you?

For the past few days I've been struggling to find a way to learn how to compile a server. I'm doing this because I've lost tons of works in servers that had errors in the sources, so i'm up to learn stuff from zero.

I'm trying to compile any TFS version, since it's the same process, by following this tutorial: Compiling on Windows (vcpkg) · otland/forgottenserver Wiki (https://github.com/otland/forgottenserver/wiki/Compiling-on-Windows-%28vcpkg%29)

It happens that I'm having issues to download the libraries through git bash. I'm clearly having problems with the boost libraries, and I'd like to know how to deal with it. The code below is the bash results I got after trying to install it. Ps: I changed my user and notebook name, not sure if this matters or if it is a real secutiry problem, just being cautious (apart from the "marce" that shows in some points xD).

Needless to say I always get some boost related (sometimes other libraries) error message when trying to compile the server (Green textes are just portuguease texts translateds).
1660880418436.png

Full bash results:
Code:
USER-ANYNOTEBOOK MINGW64 /c
$ cd C:\vcpkg

USER-ANYNOTEBOOK MINGW64 /c/vcpkg
$ git clone https://github.com/Microsoft/vcpkg && cd vcpkg && .\bootstrap-vcpkg.bat && .\vcpkg integrate install                                                Cloning into 'vcpkg'...
remote: Enumerating objects: 160822, done.
remote: Counting objects: 100% (76/76), done.
remote: Compressing objects: 100% (58/58), done.
remote: Total 160822 (delta 31), reused 41 (delta 18), pack-reused 160746
Receiving objects: 100% (160822/160822), 60.60 MiB | 2.66 MiB/s, done.
Resolving deltas: 100% (103035/103035), done.
Updating files: 100% (9090/9090), done.
bash: .bootstrap-vcpkg.bat: command not found

USER-ANYNOTEBOOK /c/vcpkg/vcpkg (master)
$ ./bootstrap-vcpkg.sh
Downloading https://github.com/microsoft/vcpkg-tool/releases/download/2022-07-21/vcpkg.exe -> C:\vcpkg\vcpkg\vcpkg.exe... done.
Validating signature... done.

Telemetry
---------
vcpkg collects usage data in order to help us improve your experience.
The data collected by Microsoft is anonymous.
You can opt-out of telemetry by re-running the bootstrap-vcpkg script with -disableMetrics,
passing --disable-metrics to vcpkg on the command line,
or by setting the VCPKG_DISABLE_METRICS environment variable.

Read more about vcpkg telemetry at docs/about/privacy.md

USER-ANYNOTEBOOK MINGW64 /c/vcpkg/vcpkg (master)
$ ./vcpkg integrate install
Applied user-wide integration for this vcpkg root.
CMake projects should use: "-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/vcpkg/scripts/buildsystems/vcpkg.cmake"All MSBuild C++ projects can now #include any installed libraries. Linking will be handled automatically. Installing new libraries will make them instantly available.

USER-ANYNOTEBOOK MINGW64 /c/vcpkg/vcpkg (master)
$ .\vcpkg install --triplet x64-windows boost-iostreams boost-asio boost-system boost-filesystem boost-variant boost-lockfree luajit libmariadb pugixml cryptopp fmt
bash: .vcpkg: command not found

USER-ANYNOTEBOOK MINGW64 /c/vcpkg/vcpkg (master)
$ ./vcpkg install --triplet x64-windows boost-iostreams boost-asio boost-system boost-filesystem boost-variant boost-lockfree luajit libmariadb pugixml cryptopp fmt
Computing installation plan...
A suitable version of cmake was not found (required v3.24.0). Downloading portable cmake v3.24.0...
Downloading cmake...
  https://github.com/Kitware/CMake/releases/download/v3.24.0/cmake-3.24.0-windows-i386.zip -> C:\vcpkg\vcpkg\downloads\cmake-3.24.0-windows-i386.zip
Extracting cmake...
The following packages will be built and installed:
  * boost-algorithm[core]:x64-windows -> 1.79.0
  * boost-align[core]:x64-windows -> 1.79.0
  * boost-array[core]:x64-windows -> 1.79.0
    boost-asio[core]:x64-windows -> 1.79.0
  * boost-assert[core]:x64-windows -> 1.79.0
  * boost-atomic[core]:x64-windows -> 1.79.0
  * boost-bind[core]:x64-windows -> 1.79.0
  * boost-build[core]:x64-windows -> 1.79.0#1
  * boost-chrono[core]:x64-windows -> 1.79.0
  * boost-concept-check[core]:x64-windows -> 1.79.0
  * boost-config[core]:x64-windows -> 1.79.0
  * boost-container[core]:x64-windows -> 1.79.0
  * boost-container-hash[core]:x64-windows -> 1.79.0
  * boost-context[core]:x64-windows -> 1.79.0
  * boost-conversion[core]:x64-windows -> 1.79.0
  * boost-core[core]:x64-windows -> 1.79.0
  * boost-coroutine[core]:x64-windows -> 1.79.0
  * boost-date-time[core]:x64-windows -> 1.79.0
  * boost-detail[core]:x64-windows -> 1.79.0
  * boost-dynamic-bitset[core]:x64-windows -> 1.79.0
  * boost-exception[core]:x64-windows -> 1.79.0
    boost-filesystem[core]:x64-windows -> 1.79.0
  * boost-function[core]:x64-windows -> 1.79.0
  * boost-function-types[core]:x64-windows -> 1.79.0
  * boost-fusion[core]:x64-windows -> 1.79.0
  * boost-integer[core]:x64-windows -> 1.79.0
  * boost-intrusive[core]:x64-windows -> 1.79.0
  * boost-io[core]:x64-windows -> 1.79.0
    boost-iostreams[bzip2,core,lzma,zlib,zstd]:x64-windows -> 1.79.0
  * boost-iterator[core]:x64-windows -> 1.79.0
  * boost-lexical-cast[core]:x64-windows -> 1.79.0
    boost-lockfree[core]:x64-windows -> 1.79.0
  * boost-modular-build-helper[core]:x64-windows -> 1.79.0#8
  * boost-move[core]:x64-windows -> 1.79.0
  * boost-mp11[core]:x64-windows -> 1.79.0
  * boost-mpl[core]:x64-windows -> 1.79.0
  * boost-numeric-conversion[core]:x64-windows -> 1.79.0
  * boost-optional[core]:x64-windows -> 1.79.0
  * boost-parameter[core]:x64-windows -> 1.79.0
  * boost-pool[core]:x64-windows -> 1.79.0
  * boost-predef[core]:x64-windows -> 1.79.0
  * boost-preprocessor[core]:x64-windows -> 1.79.0
  * boost-random[core]:x64-windows -> 1.79.0
  * boost-range[core]:x64-windows -> 1.79.0
  * boost-ratio[core]:x64-windows -> 1.79.0
  * boost-rational[core]:x64-windows -> 1.79.0
  * boost-regex[core]:x64-windows -> 1.79.0#1
  * boost-smart-ptr[core]:x64-windows -> 1.79.0
  * boost-static-assert[core]:x64-windows -> 1.79.0
    boost-system[core]:x64-windows -> 1.79.0
  * boost-throw-exception[core]:x64-windows -> 1.79.0
  * boost-tokenizer[core]:x64-windows -> 1.79.0
  * boost-tuple[core]:x64-windows -> 1.79.0
  * boost-type-index[core]:x64-windows -> 1.79.0
  * boost-type-traits[core]:x64-windows -> 1.79.0
  * boost-typeof[core]:x64-windows -> 1.79.0
  * boost-uninstall[core]:x64-windows -> 1.79.0
  * boost-unordered[core]:x64-windows -> 1.79.0
  * boost-utility[core]:x64-windows -> 1.79.0
    boost-variant[core]:x64-windows -> 1.79.0
  * boost-variant2[core]:x64-windows -> 1.79.0
  * boost-vcpkg-helpers[core]:x64-windows -> 1.79.0
  * boost-winapi[core]:x64-windows -> 1.79.0
  * bzip2[core]:x64-windows -> 1.0.8#2
    cryptopp[core]:x64-windows -> 8.6.0#1
    fmt[core]:x64-windows -> 9.0.0
  * liblzma[core]:x64-windows -> 5.2.5#6
    libmariadb[core,schannel,ssl]:x64-windows -> 3.3.1
    luajit[core]:x64-windows -> 2022-08-11#1
    pugixml[core]:x64-windows -> 1.12.1#1
  * vcpkg-cmake[core]:x64-windows -> 2022-07-18
  * vcpkg-cmake-config[core]:x64-windows -> 2022-02-06#1
  * vcpkg-cmake-get-vars[core]:x64-windows -> 2022-05-10#1
  * zlib[core]:x64-windows -> 1.2.12#1
  * zstd[core]:x64-windows -> 1.5.2#1
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows...
A suitable version of powershell-core was not found (required v7.2.5). Downloading portable powershell-core v7.2.5...
Downloading powershell-core...
  https://github.com/PowerShell/PowerShell/releases/download/v7.2.5/PowerShell-7.2.5-win-x86.zip -> C:\vcpkg\vcpkg\downloads\PowerShell-7.2.5-win-x86.zip
Extracting powershell-core...
A suitable version of 7zip was not found (required v21.7.0). Downloading portable 7zip v21.7.0...
Downloading 7zip...
  https://www.7-zip.org/a/7z2107-extra.7z -> C:\vcpkg\vcpkg\downloads\7z2107-extra.7z
Extracting 7zip...
Restored 47 package(s) from C:\Users\marce\AppData\Local\vcpkg\archives in 11.98 s. Use --debug to see more details.
Installing 1/75 boost-uninstall:x64-windows...
Elapsed time to handle boost-uninstall:x64-windows: 32.44 ms
Installing 2/75 boost-vcpkg-helpers:x64-windows...
Elapsed time to handle boost-vcpkg-helpers:x64-windows: 111.8 ms
Installing 3/75 boost-config:x64-windows...
Elapsed time to handle boost-config:x64-windows: 1.085 s
Installing 4/75 boost-assert:x64-windows...
Elapsed time to handle boost-assert:x64-windows: 45.64 ms
Installing 5/75 boost-static-assert:x64-windows...
Elapsed time to handle boost-static-assert:x64-windows: 39.53 ms
Installing 6/75 boost-throw-exception:x64-windows...
Elapsed time to handle boost-throw-exception:x64-windows: 40.11 ms
Installing 7/75 boost-core:x64-windows...
Elapsed time to handle boost-core:x64-windows: 257.1 ms
Installing 8/75 boost-array:x64-windows...
Elapsed time to handle boost-array:x64-windows: 39.71 ms
Installing 9/75 boost-bind:x64-windows...
Elapsed time to handle boost-bind:x64-windows: 116 ms
Installing 10/75 boost-preprocessor:x64-windows...
Elapsed time to handle boost-preprocessor:x64-windows: 1.86 s
Installing 11/75 boost-type-traits:x64-windows...
Elapsed time to handle boost-type-traits:x64-windows: 790.4 ms
Installing 12/75 boost-concept-check:x64-windows...
Elapsed time to handle boost-concept-check:x64-windows: 101.5 ms
Installing 13/75 boost-build:x64-windows...
Elapsed time to handle boost-build:x64-windows: 4.459 s
Installing 14/75 vcpkg-cmake:x64-windows...
Building vcpkg-cmake[core]:x64-windows...
-- Installing: C:/vcpkg/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake
-- Installing: C:/vcpkg/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake
-- Installing: C:/vcpkg/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake
-- Installing: C:/vcpkg/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg-port-config.cmake
-- Installing: C:/vcpkg/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/copyright
-- Performing post-build validation
-- Performing post-build validation done
Stored binary cache: "C:\Users\marce\AppData\Local\vcpkg\archives\2a\2ac5979094202f53516438089ac143d651cd65506147640cadfd76b09b835dba.zip"
Elapsed time to handle vcpkg-cmake:x64-windows: 279.2 ms
Installing 15/75 vcpkg-cmake-get-vars:x64-windows...
Building vcpkg-cmake-get-vars[core]:x64-windows...
-- Installing: C:/vcpkg/vcpkg/packages/vcpkg-cmake-get-vars_x64-windows/share/vcpkg-cmake-get-vars/vcpkg_cmake_get_vars.cmake
-- Installing: C:/vcpkg/vcpkg/packages/vcpkg-cmake-get-vars_x64-windows/share/vcpkg-cmake-get-vars/cmake_get_vars
-- Installing: C:/vcpkg/vcpkg/packages/vcpkg-cmake-get-vars_x64-windows/share/vcpkg-cmake-get-vars/cmake_get_vars/CMakeLists.txt
-- Installing: C:/vcpkg/vcpkg/packages/vcpkg-cmake-get-vars_x64-windows/share/vcpkg-cmake-get-vars/vcpkg-port-config.cmake
-- Installing: C:/vcpkg/vcpkg/packages/vcpkg-cmake-get-vars_x64-windows/share/vcpkg-cmake-get-vars/copyright
-- Performing post-build validation
-- Performing post-build validation done
Stored binary cache: "C:\Users\marce\AppData\Local\vcpkg\archives\4a\4aa17696442cb0a53dd2c13bc161f22de7af33ab33a2519da74b59d1b21888b1.zip"
Elapsed time to handle vcpkg-cmake-get-vars:x64-windows: 278 ms
Installing 16/75 boost-modular-build-helper:x64-windows...
Building boost-modular-build-helper[core]:x64-windows...
-- Performing post-build validation
-- Performing post-build validation done
Stored binary cache: "C:\Users\marce\AppData\Local\vcpkg\archives\fe\fe0c960ee3f21521eb8306c0dba540a7c7eb91c5aa7f4f97b44b53c670a88031.zip"
Elapsed time to handle boost-modular-build-helper:x64-windows: 271.5 ms
Installing 17/75 boost-predef:x64-windows...
Elapsed time to handle boost-predef:x64-windows: 652.8 ms
Installing 18/75 boost-winapi:x64-windows...
Elapsed time to handle boost-winapi:x64-windows: 499.5 ms
Installing 19/75 boost-move:x64-windows...
Elapsed time to handle boost-move:x64-windows: 256.3 ms
Installing 20/75 boost-smart-ptr:x64-windows...
Elapsed time to handle boost-smart-ptr:x64-windows: 507.3 ms
Installing 21/75 boost-tuple:x64-windows...
Elapsed time to handle boost-tuple:x64-windows: 56.98 ms
Installing 22/75 boost-exception:x64-windows...
Building boost-exception[core]:x64-windows...
-- Downloading https://github.com/boostorg/exception/archive/boost-1.79.0.tar.gz -> boostorg-exception-boost-1.79.0.tar.gz...
[DEBUG] To include the environment variables in debug output, pass --debug-env
[DEBUG] Feature flag 'binarycaching' unset
[DEBUG] Feature flag 'manifests' = off
[DEBUG] Feature flag 'compilertracking' unset
[DEBUG] Feature flag 'registries' unset
[DEBUG] Feature flag 'versions' unset
[DEBUG] Downloading https://github.com/boostorg/exception/archive/boost-1.79.0.tar.gz
[DEBUG] Download failed -- retrying after 1000 ms.
[DEBUG] Download failed -- retrying after 2000 ms.
[DEBUG] Download failed -- retrying after 4000 ms.
Error: Failed to download from mirror set:
https://github.com/boostorg/exception/archive/boost-1.79.0.tar.gz: WinHttpSendRequest() failed: 12007
https://github.com/boostorg/exception/archive/boost-1.79.0.tar.gz: WinHttpSendRequest() failed: 12007
https://github.com/boostorg/exception/archive/boost-1.79.0.tar.gz: WinHttpSendRequest() failed: 12007
https://github.com/boostorg/exception/archive/boost-1.79.0.tar.gz: WinHttpReceiveResponse() failed: 12007

[DEBUG] D:\a\_work\1\s\src\vcpkg\base\downloads.cpp(766):
[DEBUG] Time in subprocesses: 0 us
[DEBUG] Time in parsing JSON: 4 us
[DEBUG] Time in JSON reader: 0 us
[DEBUG] Time in filesystem: 3138 us
[DEBUG] Time in loading ports: 0 us
[DEBUG] Exiting after 7.397 s (7376736 us)

CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:32 (message):

      Failed to download file with error: 1
      If you use a proxy, please check your proxy setting. Possible causes are:

      1. You are actually using an HTTP proxy, but setting HTTPS_PROXY variable
         to `https://address:port`. This is not correct, because `https://` prefix
         claims the proxy is an HTTPS proxy, while your proxy (v2ray, shadowsocksr
         , etc..) is an HTTP proxy. Try setting `http://address:port` to both
         HTTP_PROXY and HTTPS_PROXY instead.

      2. You are using Fiddler. Currently a bug (https://github.com/microsoft/vcpkg/issues/17752)
         will set HTTPS_PROXY to `https://fiddler_address:port` which lead to problem 1 above.
         Workaround is open Windows 10 Settings App, and search for Proxy Configuration page,
         Change `http=address:port;https=address:port` to `address`, and fill the port number.

      3. Your proxy's remote server is out of service.

      In future vcpkg releases, if you are using Windows, you no longer need to set
      HTTP(S)_PROXY environment variables. Vcpkg will simply apply Windows IE Proxy
      Settings set by your proxy software. See (https://github.com/microsoft/vcpkg-tool/pull/49)
      and (https://github.com/microsoft/vcpkg-tool/pull/77)

      Otherwise, please submit an issue at https://github.com/Microsoft/vcpkg/issues

Call Stack (most recent call first):
  scripts/cmake/vcpkg_download_distfile.cmake:273 (z_vcpkg_download_distfile_show_proxy_and_fail)
  scripts/cmake/vcpkg_from_github.cmake:106 (vcpkg_download_distfile)
  ports/boost-exception/portfile.cmake:3 (vcpkg_from_github)
  scripts/ports.cmake:147 (include)


error: building boost-exception:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
    https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+boost-exception
You can submit a new issue at:
    https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[boost-exception]+Build+error
Include '[boost-exception] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above.
    vcpkg-tool version: 2022-07-21-a0e87e227afb536c62188c11ad029954f28fdb22
    vcpkg-scripts version: e99d9a4fa 2022-08-18 (3 hours ago)

You can also use the prefilled template from C:\vcpkg\vcpkg\installed\vcpkg\issue_body.md.

Also, If anyone knows how to completely clean my notebook from all of this libraries (thausands of fail attempts) and start to download them from scratch, please let me know.

Thanks a lot, OTLand community! And sorry for any english errors aswell :D
 

Svira

Member
Joined
Jan 27, 2008
Messages
206
Solutions
7
Reaction score
20
library is missing from folder, sources not complete ...
or...
Have you tried using powershell instead of git bash?
 
Top