mehah / otclient

An alternative tibia client for otserv written in C++20 and Lua, made with a modular system that uses lua scripts for ingame interface and functionality, making otclient flexible and easy to customize
Other
263 stars 203 forks source link

Compiling error #540

Closed Ralumbi closed 1 year ago

Ralumbi commented 1 year ago

Priority

Low

Area

What happened?

While compiling the vcpkg needs get installed, except for the openssl which gives an error. Now I am looking for a way to get past this and just get it to compile.

Where is the output log:

Rebuild started...
1>------ Rebuild All started: Project: otclient, Configuration: Release x64 ------
1>Installing vcpkg dependencies to D:\2_development\Tibia\otclient\vcpkg_installed\x64-windows-static\
1>"C:\vcpkg\vcpkg.exe" install  --x-wait-for-lock --triplet "x64-windows-static" --vcpkg-root "C:\vcpkg\\" "--x-manifest-root=D:\2_development\Tibia\otclient\\" "--x-install-root=D:\2_development\Tibia\otclient\vcpkg_installed\x64-windows-static\\"
1>Detecting compiler hash for triplet x64-windows...
1>Detecting compiler hash for triplet x64-windows-static...
1>The following packages will be built and installed:
1>    openssl[core]:x64-windows-static -> 3.1.0#1 -- C:\vcpkg\buildtrees\versioning_\versions\openssl\b123beef6759b490ff8679b5cd4db0f721a2808a
1>    parallel-hashmap[core]:x64-windows-static -> 1.3.8 -- C:\vcpkg\buildtrees\versioning_\versions\parallel-hashmap\65be62557bbdb29d6d0ee383b70a6f84ef401b2f
1>    physfs[core]:x64-windows-static -> 3.2.0#1 -- C:\vcpkg\buildtrees\versioning_\versions\physfs\09bfe04124fab72544d0a7c27efcccb4005dc784
1>  * protobuf[core]:x64-windows -> 3.21.12 -- C:\vcpkg\buildtrees\versioning_\versions\protobuf\3b145508ba614fe26989b23f6317f15bf6467be4
1>    protobuf[core]:x64-windows-static -> 3.21.12 -- C:\vcpkg\buildtrees\versioning_\versions\protobuf\3b145508ba614fe26989b23f6317f15bf6467be4
1>    pugixml[core]:x64-windows-static -> 1.13.0 -- C:\vcpkg\buildtrees\versioning_\versions\pugixml\4547c4ff9371f06f34f087f2989f884ab3ef7b71
1>    stduuid[core]:x64-windows-static -> 1.2.2 -- C:\vcpkg\buildtrees\versioning_\versions\stduuid\bd235773c953e5636a7b9f6356437daef6e5010c
1>    zlib[core]:x64-windows-static -> 1.2.13 -- C:\vcpkg\buildtrees\versioning_\versions\zlib\ad5a49006f73b45b715299515f31164131b51982
1>Additional packages (*) will be modified to complete this operation.
1>Restored 0 package(s) from C:\Users\caleb\AppData\Local\vcpkg\archives in 1.61 ms. Use --debug to see more details.
1>Installing 1/8 openssl:x64-windows-static...
1>Building openssl[core]:x64-windows-static...
1>-- Installing port from location: C:\vcpkg\buildtrees\versioning_\versions\openssl\b123beef6759b490ff8679b5cd4db0f721a2808a
1>-- Using cached openssl-openssl-openssl-3.1.0.tar.gz.
1>-- Cleaning sources at C:/vcpkg/buildtrees/openssl/src/nssl-3.1.0-1ebd9e680e.clean. Use --editable to skip cleaning for the packages you specify.
1>-- Extracting source C:/vcpkg/downloads/openssl-openssl-openssl-3.1.0.tar.gz
1>-- Applying patch disable-apps.patch
1>-- Applying patch disable-install-docs.patch
1>-- Applying patch script-prefix.patch
1>-- Applying patch windows/install-layout.patch
1>-- Applying patch windows/install-pdbs.patch
1>-- Applying patch unix/android-cc.patch
1>-- Applying patch unix/move-openssldir.patch
1>-- Applying patch unix/no-empty-dirs.patch
1>-- Applying patch unix/no-static-libs-for-shared.patch
1>-- Using source at C:/vcpkg/buildtrees/openssl/src/nssl-3.1.0-1ebd9e680e.clean
1>-- Found external ninja('1.11.0').
1>-- Getting CMake variables for x64-windows-static
1>-- Getting CMake variables for x64-windows-static
1>-- Prerunning x64-windows-static-dbg
1>-- Building x64-windows-static-dbg
1>-- Restarting build without parallelism
1>CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
1>    Command failed: "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.36.32532/bin/Hostx64/x64/nmake.exe" /NOLOGO /G /U /F makefile install_dev install_modules INSTALL_PDBS=OFF
1>    Working Directory: C:/vcpkg/buildtrees/openssl/x64-windows-static-dbg
1>    See logs for more information:
1>      C:\vcpkg\buildtrees\openssl\install-x64-windows-static-dbg-nmake-out.log
1>      C:\vcpkg\buildtrees\openssl\install-x64-windows-static-dbg-nmake-err.log
1>
1>Call Stack (most recent call first):
1>  scripts/cmake/vcpkg_build_nmake.cmake:156 (vcpkg_execute_build_process)
1>  buildtrees/versioning_/versions/openssl/b123beef6759b490ff8679b5cd4db0f721a2808a/windows/portfile.cmake:50 (vcpkg_build_nmake)
1>  buildtrees/versioning_/versions/openssl/b123beef6759b490ff8679b5cd4db0f721a2808a/portfile.cmake:62 (include)
1>  scripts/ports.cmake:147 (include)
1>
1>
1>C:\vcpkg\scripts\buildsystems\msbuild\vcpkg.targets(183,5): warning : error: building openssl:x64-windows-static failed with: BUILD_FAILED
1>Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
1>Then check for known issues at:
1>    https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+openssl
1>You can submit a new issue at:
1>    https://github.com/microsoft/vcpkg/issues/new?title=[openssl]+Build+error&body=Copy+issue+body+from+D%3A%2F2_development%2FAnticus%2FTibia%2Fotclient%2Fvcpkg_installed%2Fx64-windows-static%2Fvcpkg%2Fissue_body.md
1>
1>C:\vcpkg\scripts\buildsystems\msbuild\vcpkg.targets(183,5): error MSB3073: The command ""C:\vcpkg\vcpkg.exe" install  --x-wait-for-lock --triplet "x64-windows-static" --vcpkg-root "C:\vcpkg\\" "--x-manifest-root=D:\2_development\Tibia\otclient\\" "--x-install-root=D:\2_development\Tibia\otclient\vcpkg_installed\x64-windows-static\\" " exited with code 1.
1>Done building project "otclient.vcxproj" -- FAILED.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
========== Rebuild started at 1:10 PM and took 02:57.441 minutes ==========

I have already updated vcpkg and pulled new changes from git. (even deleted vcpkg completely and reinstalled)

What OS are you seeing the problem on?

Windows

Code of Conduct

Ralumbi commented 1 year ago

This had to do with something inside windows itself, I tried it on a new install on the same computer and it worked out of the box.