Closed Gardene-el closed 1 month ago
I'm not an expert with CMake. I use not Ninja but "Visual Studio 17 2022" as generator.
Could you please try cmake .. -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 17 2022"
?
Sorry for misunderstanding infomation i provided.
Here is the log of cmake .. -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 17 2022"
:
PS C:\Users\aloud\Documents\alien\build> cmake .. -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 17 2022"
-- Running vcpkg install
Detecting compiler hash for triplet x86-windows...
-- Automatically setting %HTTP(S)_PROXY% environment variables to "127.0.0.1:443".
Compiler found: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/Hostx64/x86/cl.exe
Detecting compiler hash for triplet x64-windows...
Compiler found: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/Hostx64/x64/cl.exe
The following packages will be built and installed:
* boost-any:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-any\cf8bdfd2ce434a981620383dcc07d46c0a071ca1
* boost-endian:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-endian\6950c45ffb4e112920b6dd50c1cddde07b30d61d
* boost-foreach:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-foreach\95983cd3eb11558e24d1f63a68a2ee944da927df
* boost-format:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-format\15c6449aa221b65139b38cc6c6ef91f32e2d2b1d
* boost-multi-index:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-multi-index\e993a57f4569f76310bc8c203372ebe472395005
* boost-phoenix:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-phoenix\2926d1b537106cb231bb9f3a657f6fde6c8530f8
* boost-pool:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-pool\7794803f75109db0ca64a48d2f1cbd76100b153d
boost-property-tree:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-property-tree\959191d822cc095e02a3f6d9af5b68aeb823a0d1
* boost-proto:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-proto\5d33f62f1117da9bac418c4b85d1a1bd96c547a4
* boost-serialization:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-serialization\bdb25d2d55569534825b139f62cf29a2f7aaba6e
* boost-spirit:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-spirit\bc66c5a9ccd7f7bde95426392bc7ff62189f920d
* boost-thread:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-thread\1c097a032a997463e15245272e40ea9298554f8b
* brotli:x86-windows@1.0.9#2 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\brotli\73d0ed2fd7816c7a4958983b0b027c85b60eac15
* bzip2:x86-windows@1.0.8#2 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\bzip2\a1ea352502e69888a565563d9151d3f7ab609fb1
cereal:x86-windows@1.3.0#1 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\cereal\7229804bbf716bbefe8052d650fc94687b6dae42
cli11:x86-windows@2.1.2#1 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\cli11\a2fa0d3108042d872a50565d15c79d5611bdf0b6
* egl-registry:x86-windows@2021-11-23 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\egl-registry\ec272777ea9d0ceccf5cc8b0336f038853e5c911
* freetype[brotli,bzip2,core,png,zlib]:x86-windows@2.11.0#2 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\freetype\9d21ff9f7071d83c1e04eca8cae21b99438400d8
glad[core,loader]:x86-windows@0.1.34#3 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\glad\2ebf6ed85a860c74f8649571e168900426cbb944
glew:x86-windows@2.2.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\glew\3211ed09c36542372ab3f1f690a42e2edbb072bc
glfw3:x86-windows@3.3.5 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\glfw3\90c6416669c2154f54d3f65e3a2afb8f75ab2aaa
gtest:x86-windows@1.11.0#3 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\gtest\bc195b45d4d766498fb51de96427835c7c4d5748
imgui[core,freetype,glfw-binding,opengl3-binding]:x86-windows@1.85 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\imgui\9ae62261d966705924645bc3a057fe748c24d290
implot:x86-windows@0.12 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\implot\ab3bc9b82bfc7fbd1808cc55559ed58b648ed964
* libpng:x86-windows@1.6.37#16 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\libpng\b082585ac20aefc27150af5386b6a8a15473e93a
* opengl:x86-windows@0.0#9 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\opengl\9fa8ed2a1fb625613a32ee95d2413dbc921860f7
* opengl-registry:x86-windows@2021-11-17 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\opengl-registry\7f4a1e05a6cfbd923a2eaf9d32da22bde0742a15
openssl:x86-windows@1.1.1l#4 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\openssl\d25384246619019a1e44f018546cdfcaf1800174
stb:x86-windows@2020-09-14#1 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\stb\fa6d7e998f98f122efa37f456ffa498d546185b9
* vcpkg-cmake-config:x64-windows@2021-11-01 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\vcpkg-cmake-config\38a87ee8edd9ea8e8fff604fbcb785661a8d0e28
zlib:x86-windows@1.2.11#13 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\zlib\92cfe30c807d343c6359d272242f0765ad906740
zstr:x86-windows@1.0.4#2 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\zstr\7a13e5cb665ce878aa5b6c9723a0e375e1be5c15
Additional packages (*) will be modified to complete this operation.
Restored 0 package(s) from C:\Users\aloud\AppData\Local\vcpkg\archives in 4.84 ms. Use --debug to see more details.
Installing 1/32 boost-thread:x86-windows@1.77.0...
Building boost-thread:x86-windows@1.77.0...
C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-thread\1c097a032a997463e15245272e40ea9298554f8b: info: installing overlay port from here
-- Using cached boostorg-thread-boost-1.77.0.tar.gz.
-- Cleaning sources at C:/Users/aloud/Documents/alien/external/vcpkg/buildtrees/boost-thread/src/ost-1.77.0-7bf4191b6c.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Users/aloud/Documents/alien/external/vcpkg/downloads/boostorg-thread-boost-1.77.0.tar.gz
-- Using source at C:/Users/aloud/Documents/alien/external/vcpkg/buildtrees/boost-thread/src/ost-1.77.0-7bf4191b6c.clean
-- Including C:/Users/aloud/Documents/alien/external/vcpkg/buildtrees/versioning_/versions/boost-thread/1c097a032a997463e15245272e40ea9298554f8b/b2-options.cmake
-- Found external ninja('1.11.0').
-- Configuring x86-windows
-- Building x86-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
Command failed: "C:/Program Files/CMake/bin/cmake.exe" --build . --config Debug --target install -- -v -j33
Working Directory: C:/Users/aloud/Documents/alien/external/vcpkg/buildtrees/boost-thread/x86-windows-dbg
See logs for more information:
C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\boost-thread\install-x86-windows-dbg-out.log
Call Stack (most recent call first):
C:/Users/aloud/Documents/alien/build/vcpkg_installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:102 (vcpkg_execute_build_process)
C:/Users/aloud/Documents/alien/build/vcpkg_installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:41 (vcpkg_cmake_build)
C:/Users/aloud/Documents/alien/build/vcpkg_installed/x64-windows/share/boost-build/boost-modular-build.cmake:105 (vcpkg_cmake_install)
buildtrees/versioning_/versions/boost-thread/1c097a032a997463e15245272e40ea9298554f8b/portfile.cmake:15 (boost_modular_build)
scripts/ports.cmake:175 (include)
error: building boost-thread:x86-windows failed with: BUILD_FAILED
Elapsed time to handle boost-thread:x86-windows: 3.6 s
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-thread
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?title=[boost-thread]+Build+error+on+x86-windows&body=Copy+issue+body+from+C%3A%2FUsers%2Faloud%2FDocuments%2Falien%2Fbuild%2Fvcpkg_installed%2Fvcpkg%2Fissue_body.md
-- Running vcpkg install - failed
CMake Error at external/vcpkg/scripts/buildsystems/vcpkg.cmake:899 (message):
vcpkg install failed. See logs for more information:
C:\Users\aloud\Documents\alien\build\vcpkg-manifest-install.log
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.30/Modules/CMakeDetermineSystem.cmake:146 (include)
CMakeLists.txt:24 (project)
-- Configuring incomplete, errors occurred!
Not sure if this helps or right, in [boost-thread] Build error on x64-windows, it seems like that the vcpkg is outdated and cause that crash.
Thanks for the info! Yes, the vcgkg is outdated and the reference should be updated. The problem with updating, however, is that the latest versions of the dependencies are then used and one has to adapt a lot of things (for instance for ImPlot). Maybe one can specify older versions in the vcpkg.json file first. I'm currently on vacation and will look at the problem next week.
vcpkg has been updated on the develop branch. Does it work now?
Thanks for help, now it works.
I got an error on
cmake .. -DCMAKE_BUILD_TYPE=Release
Here is the log:Here is the vcpkg-manifest-install.log:
Here is the install-x86-windows-dbg-out.log:
Not sure what cause that. I tried to add
boost-chrono
but not working. The environment is: Windows Visual Studio 17 2022 Release -x86 CMake 3.30.4 Ninja 1.12.1