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

CEMAKE COMPILE OTCLIENT

Ichito123

New Member
Joined
Nov 25, 2013
Messages
36
Reaction score
3
Hello All i use tutorial by site:
and in cmake 3.18.3 i have this error:
Lua:
CMake Error at C:/Program Files/CMake/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
  Could NOT find Boost (missing: system thread filesystem) (found suitable
  version "1.64.0", minimum required is "1.48.0")
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
  C:/Program Files/CMake/share/cmake-3.18/Modules/FindBoost.cmake:2177 (find_package_handle_standard_args)
  src/framework/CMakeLists.txt:205 (find_package)
  CMakeLists.txt:12 (include)


CMake Warning (dev) in C:/Program Files/CMake/share/cmake-3.18/Modules/FindBoost.cmake:
  Policy CMP0011 is not set: Included scripts do automatic cmake_policy PUSH
  and POP.  Run "cmake --help-policy CMP0011" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  The included script

    C:/Program Files/CMake/share/cmake-3.18/Modules/FindBoost.cmake

  affects policy settings.  CMake is implying the NO_POLICY_SCOPE option for
  compatibility, so the effects are applied to the including context.
Call Stack (most recent call first):
  src/framework/CMakeLists.txt:205 (find_package)
  CMakeLists.txt:12 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.


Please little help...
 
This is my error:
Lua:
1> ------ Rebuild everything started: Projektotclient, Configuration: Release x64 ------
1> animatedtext.cpp
1> animator.cpp
1> c: \ users \ xxx \ desktop \ otclient \ src \ framework \ stdext \ thread.h (26): fatal error C1083: Cannot restore join join: 'boost / thread / future.hpp': No such file or directory (compile source file .. \ src \ client \ animatedtext.cpp)
1> c: \ users \ xxx \ desktop \ otclient \ src \ framework \ stdext \ thread.h (26): fatal error C1083: Cannot restore join join: 'boost / thread / future.hpp': No such file or directory (compile source file .. \ src \ client \ animator.cpp)
1> client.cpp
1> container.cpp
1> c: \ users \ xxx \ desktop \ otclient \ src \ framework \ stdext \ thread.h (26): fatal error C1083: Cannot restore join join: 'boost / thread / future.hpp': No such file or directory (compile source file .. \ src \ client \ client.cpp)
1> creature.cpp
1> c: \ users \ xxx \ desktop \ otclient \ src \ framework \ stdext \ thread.h (26): fatal error C1083: Cannot restore join join: 'boost / thread / future.hpp': No such file or directory (compile source file .. \ src \ client \ container.cpp)
1> creatures.cpp
1> c: \ users \ xxx \ desktop \ otclient \ src \ framework \ stdext \ thread.h (26): fatal error C1083: Cannot restore join join: 'boost / thread / future.hpp': No such file or directory (compile source file .. \ src \ client \ creatures.cpp)
1> effect.cpp
1> c: \ users \ xxx \ desktop \ otclient \ src \ framework \ stdext \ thread.h (26): fatal error C1083: Cannot restore join join: 'boost / thread / future.hpp': No such file or directory (compile source file .. \ src \ client \ creature.cpp)
1> game.cpp
1> c: \ users \ xxx \ desktop \ otclient \ src \ framework \ stdext \ thread.h (26): fatal error C1083: Cannot open file append: 'boost / thread / future.hpp': No such file or directory (compile source file .. \ src \ client \ effect.cpp)
1> houses.cpp
1> c: \ users \ xxx \ desktop \ otclient \ src \ framework \ stdext \ thread.h (26): fatal error C1083: Unable to open file append: 'boost / thread / future.hpp': No such file or directory (compile source file .. \ src \ client \ game.cpp)
1> item.cpp
1> c: \ users \ xxx \ desktop \ otclient \ src \ framework \ stdext \ thread.h (26): fatal error C1083: Cannot open file append: 'boost / thread / future.hpp': No such file or directory (compile source file .. \ src \ client \ houses.cpp)
1> itemtype.cpp
1> c: \ users \ xxx \ desktop \ otclient \ src \ framework \ stdext \ thread.h (26): fatal error C1083: Cannot open file append: 'boost / thread / future.hpp': No such file or directory (compile source file .. \ src \ client \ itemtype.cpp)
1> lightview.cpp
1> c: \ users \ xxx \ desktop \ otclient \ src \ framework \ stdext \ thread.h (26): fatal error C1083: Cannot open file append: 'boost / thread / future.hpp': No such file or directory (compile source file .. \ src \ client \ item.cpp)
1> localplayer.cpp
1> c: \ users \ xxx \ desktop \ otclient \ src \ framework \ stdext \ thread.h (26): fatal error C1083: Cannot open file append: 'boost / thread / future.hpp': No such file or directory (compile source file .. \ src \ client \ lightview.cpp)
1> luafunctions.cpp
1> c: \ users \ xxx \ desktop \ otclient \ src \ framework \ stdext \ thread.h (26): fatal error C1083: Cannot open file append: 'boost / thread / future.hpp': No such file or directory (compile source file .. \ src \ client \ localplayer.cpp)
1> luavaluecasts.cpp
1> c: \ users \ xxx \ desktop \ otclient \ src \ framework \ stdext \ thread.h (26): fatal error C1083: Unable to open file append: 'boost / thread / future.hpp': No such file or directory (compile source file .. \ src \ client \ luafunctions.cpp)
1> map.cpp
1> Compiling the project "otclient.vcxproj" done - FAILED.
Post automatically merged:

i install vcpkg and nothing
Post automatically merged:

and this git client:
Lua:
XXX@XXX-Komputer MINGW64 ~
$ cd desktop/vcpkg

XXX@XXX-Komputer MINGW64 ~/desktop/vcpkg
$ ./C:\>cd Program Files (x86)\Microsoft Visual Studio\Installer
bash: syntax error near unexpected token `('

XXX@XXX-Komputer MINGW64 ~/desktop/vcpkg
$ ./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 glew:x64-windows boost-filesystem:x64-windows boost-uuid:x64-windows physfs:x64-windows openal-soft:x64-windows libogg:x64-windows libvorbis:x64-windows zlib:x64-windows opengl:x64-windows
Computing installation plan...
The following packages will be built and installed:
  * boost-algorithm[core]:x64-windows
  * boost-align[core]:x64-windows
  * boost-array[core]:x64-windows
    boost-asio[core]:x64-windows
  * boost-assert[core]:x64-windows
  * boost-atomic[core]:x64-windows
  * boost-bind[core]:x64-windows
  * boost-build[core]:x64-windows
  * boost-chrono[core]:x64-windows
  * boost-compatibility[core]:x64-windows
  * boost-concept-check[core]:x64-windows
  * boost-config[core]:x64-windows
  * boost-container[core]:x64-windows
  * boost-container-hash[core]:x64-windows
  * boost-context[core]:x64-windows
  * boost-conversion[core]:x64-windows
  * boost-core[core]:x64-windows
  * boost-coroutine[core]:x64-windows
  * boost-date-time[core]:x64-windows
  * boost-detail[core]:x64-windows
  * boost-dynamic-bitset[core]:x64-windows
  * boost-endian[core]:x64-windows
  * boost-exception[core]:x64-windows
    boost-filesystem[core]:x64-windows
  * boost-foreach[core]:x64-windows
  * boost-function[core]:x64-windows
  * boost-function-types[core]:x64-windows
  * boost-functional[core]:x64-windows
  * boost-fusion[core]:x64-windows
  * boost-integer[core]:x64-windows
  * boost-intrusive[core]:x64-windows
  * boost-io[core]:x64-windows
    boost-iostreams[core]:x64-windows
  * boost-iterator[core]:x64-windows
  * boost-lambda[core]:x64-windows
  * boost-lexical-cast[core]:x64-windows
  * boost-locale[core]:x64-windows
    boost-lockfree[core]:x64-windows
  * boost-math[core]:x64-windows
  * boost-modular-build-helper[core]:x64-windows
  * boost-move[core]:x64-windows
  * boost-mp11[core]:x64-windows
  * boost-mpl[core]:x64-windows
  * boost-multiprecision[core]:x64-windows
  * boost-numeric-conversion[core]:x64-windows
  * boost-optional[core]:x64-windows
  * boost-parameter[core]:x64-windows
  * boost-phoenix[core]:x64-windows
  * boost-pool[core]:x64-windows
  * boost-predef[core]:x64-windows
  * boost-preprocessor[core]:x64-windows
  * boost-proto[core]:x64-windows
  * boost-random[core]:x64-windows
  * boost-range[core]:x64-windows
  * boost-ratio[core]:x64-windows
  * boost-rational[core]:x64-windows
  * boost-regex[core]:x64-windows
  * boost-serialization[core]:x64-windows
  * boost-smart-ptr[core]:x64-windows
  * boost-spirit[core]:x64-windows
  * boost-static-assert[core]:x64-windows
    boost-system[core]:x64-windows
  * boost-thread[core]:x64-windows
  * boost-throw-exception[core]:x64-windows
  * boost-tokenizer[core]:x64-windows
  * boost-tti[core]:x64-windows
  * boost-tuple[core]:x64-windows
  * boost-type-index[core]:x64-windows
  * boost-type-traits[core]:x64-windows
  * boost-typeof[core]:x64-windows
  * boost-uninstall[core]:x64-windows
  * boost-unordered[core]:x64-windows
  * boost-utility[core]:x64-windows
    boost-uuid[core]:x64-windows
    boost-variant[core]:x64-windows
  * boost-vcpkg-helpers[core]:x64-windows
  * boost-winapi[core]:x64-windows
  * bzip2[core]:x64-windows
    glew[core]:x64-windows
  * liblzma[core]:x64-windows
    libogg[core]:x64-windows
    libvorbis[core]:x64-windows
    luajit[core]:x64-windows
    openal-soft[core]:x64-windows
    opengl[core]:x64-windows
  * openssl[core]:x64-windows
  * openssl-windows[core]:x64-windows
    physfs[core]:x64-windows
    zlib[core]:x64-windows
  * zstd[core]:x64-windows
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.0.3). Downloading portable powershell-core v7.0.3...
Downloading powershell-core...
  https://github.com/PowerShell/PowerShell/releases/download/v7.0.3/PowerShell-7.0.3-win-x86.zip -> C:\Users\XXX\Desktop\vcpkg\downloads\PowerShell-7.0.3-win-x86.zip
Extracting powershell-core...
Error occurred while detecting compiler information. Pass `--debug` for more information.

XXX@XXX-Komputer MINGW64 ~/desktop/vcpkg
$
 
Hello, I have your exact same problem. Did you ever figure it out?
What client do you build? OTClient by edubart or some custom repository?
Last build that compiled on Windows was Use float literals where applicable (#1210) · edubart/otclient@e6861d7 (https://github.com/edubart/otclient/actions/runs/5851286846/workflow#L100) - from this workflow file you can get vcpkg commit hash.
You should remove vcpkg directory (to make sure you have no cache of newest libraries), download vcpkg again as git repository (git clone), then checkout (git checkout) to commit 6f7ffeb18f99796233b958aaaf14ec7bd4fb64b2 and then install all libraries:
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 glew:x64-windows boost-filesystem:x64-windows boost-uuid:x64-windows boost-thread:x64-windows physfs:x64-windows openal-soft:x64-windows libogg:x64-windows libvorbis:x64-windows zlib:x64-windows opengl:x64-windows
You have to close Visual Studio before you run .\vcpkg\vcpkg integrate install and start it again, to make it notice new vcpkg installation.
 
Thank you for your response.

I was using Edubart's OTClient. I cloned the repo when following the compilation instructions here, and I just checked that I am indeed on the same build as you linked. I did not have the same issue as the OP when trying to get it to work for Visual Studio, but I couldn't compile because it didn't manage to find the OpenSSL libraries. I kind of preemptively gave up and decided to try the CodeBlocks approach instead, and that's when that error appeared when using CMake. In the end, I managed to fix it by using MSYS and installing boost and all other necessary libraries that way.

However, now I'm getting the following error instead:
Code:
Checking if target is up-to-date: mingw32-make.exe -q -f Makefile all
Running command: C:/msys64/mingw64/bin/mingw32-make.exe -f "C:/Users/wazowski/otclient/project/Makefile"  VERBOSE=1 all
"C:\Program Files\CMake\bin\cmake.exe" -SC:\Users\wazowski\otclient -BC:\Users\wazowski\otclient\project --check-build-system CMakeFiles\Makefile.cmake 0
"C:\Program Files\CMake\bin\cmake.exe" -E cmake_progress_start C:\Users\wazowski\otclient\project\CMakeFiles C:\Users\wazowski\otclient\project\\CMakeFiles\progress.marks
C:/msys64/mingw64/bin/mingw32-make.exe  -f CMakeFiles\Makefile2 all
mingw32-make[1]: Entering directory 'C:/Users/wazowski/otclient/project'
C:/msys64/mingw64/bin/mingw32-make.exe  -f CMakeFiles\otclient.dir\build.make CMakeFiles/otclient.dir/depend
mingw32-make[2]: Entering directory 'C:/Users/wazowski/otclient/project'
"C:\Program Files\CMake\bin\cmake.exe" -E cmake_depends "MinGW Makefiles" C:\Users\wazowski\otclient C:\Users\wazowski\otclient C:\Users\wazowski\otclient\project C:\Users\wazowski\otclient\project C:\Users\wazowski\otclient\project\CMakeFiles\otclient.dir\DependInfo.cmake "--color="
mingw32-make[2]: Leaving directory 'C:/Users/wazowski/otclient/project'
C:/msys64/mingw64/bin/mingw32-make.exe  -f CMakeFiles\otclient.dir\build.make CMakeFiles/otclient.dir/build
mingw32-make[2]: Entering directory 'C:/Users/wazowski/otclient/project'
[  1%] Linking CXX executable otclient.exe
"C:\Program Files\CMake\bin\cmake.exe" -E cmake_link_script CMakeFiles\otclient.dir\link.txt --verbose=1
"C:\Program Files\CMake\bin\cmake.exe" -E rm -f CMakeFiles\otclient.dir/objects.a
C:\msys64\mingw64\bin\ar.exe qc CMakeFiles\otclient.dir/objects.a @CMakeFiles\otclient.dir\objects1.rsp
C:\msys64\mingw64\bin\c++.exe  -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wno-unused-result -pipe   -mthreads -O1 -g -fno-omit-frame-pointer  -mwindows -Wl,-Map=otclient.map -Wl,--whole-archive CMakeFiles\otclient.dir/objects.a -Wl,--no-whole-archive -o otclient.exe -Wl,--out-implib,libotclient.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles\otclient.dir\linkLibs.rsp
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../lib\libcrypto.a(libdefault-lib-winstore_store.obj):(.text+0x64): undefined reference to `__imp_CertFreeCertificateContext'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../lib\libcrypto.a(libdefault-lib-winstore_store.obj):(.text+0x86): undefined reference to `__imp_CertCloseStore'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../lib\libcrypto.a(libdefault-lib-winstore_store.obj):(.text+0x137): undefined reference to `__imp_CertOpenSystemStoreW'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../lib\libcrypto.a(libdefault-lib-winstore_store.obj):(.text+0x14f): undefined reference to `__imp_CertFreeCertificateContext'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../lib\libcrypto.a(libdefault-lib-winstore_store.obj):(.text+0x372): undefined reference to `__imp_CertFindCertificateInStore'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../lib\libcrypto.a(libdefault-lib-winstore_store.obj):(.text+0x5fa): undefined reference to `__imp_CertFreeCertificateContext'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../lib\libcrypto.a(libdefault-lib-winstore_store.obj):(.text+0x66f): undefined reference to `__imp_CertFindCertificateInStore'
collect2.exe: error: ld returned 1 exit status
mingw32-make[2]: *** [CMakeFiles\otclient.dir\build.make:2568: otclient.exe] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:83: CMakeFiles/otclient.dir/all] Error 2
mingw32-make: *** [C:/Users/wazowski/otclient/project/Makefile:135: all] Error 2
mingw32-make[2]: Leaving directory 'C:/Users/wazowski/otclient/project'
mingw32-make[1]: Leaving directory 'C:/Users/wazowski/otclient/project'
Process terminated with status 2 (0 minute(s), 2 second(s))
11 error(s), 0 warning(s) (0 minute(s), 2 second(s))

It successfully compiles up to the point where it needs to link libraries, and then fails. From what I've seen online, it seems to be some sort of issue that makes it so that libcrypto requires libcrypt32 to be linked before (or after?) it. However, I don't know enough about cmake to be able to even begin making that change. I don't know if anybody happens to know a fix or any other way around it, so far this seems like a dead end to me.

I was going to try the Visual Studio route again, see if I can somehow get that one to work instead. So you say I should remove vpckg, redownload it, change to that specific commit, then download dependencies through that command? I'll try to do that, maybe that will help tackle the missing OpenSSL head problem I was having as well. Thanks a lot for the suggestion!
 
Back
Top