AcademySoftwareFoundation / openvdb

OpenVDB - Sparse volume data structure and tools
http://www.openvdb.org/
Mozilla Public License 2.0
2.62k stars 647 forks source link

[BUILD] Can't build on Windows 11 CMake 3.30 #1857

Closed RainSureZhao closed 3 months ago

RainSureZhao commented 3 months ago

Environment

Operating System: Windows11 Version / Commit SHA: master CMake Version: 3.30 Compiler: msvc 2022

Describe the problem

I followed the instructions in the Readme file to build the project, but it failed, and it was prompted that version.h could not be found. Strangely, I found version.h.i in the project, but version.h did not seem to be generated correctly, I do not know what the problem is.

To Reproduce

Steps to reproduce the behavior:

  1. install depencicies by vcpkg
  2. cmake -DCMAKE_TOOLCHAIN_FILE="..\vcpkg\scripts\buildsystems\vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows -A x64 ..
  3. cmake --build . --parallel 4 --config Release --target install
  4. See error

Here's what comes out at compile time: output.txt