Not able to build with Numpy support on Windows 10 #1200
-
Hello all, I previously installed vcpkg and the following dependencies, according to the README instructions Then I built openvdb with: cmake -DCMAKE_TOOLCHAIN_FILE=\VCPKG\vcpkg\scripts\buildsystems\vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows -DPython_NumPy_INCLUDE_DIR=C:/VCPKG/vcpkg/installed/x64-windows/include/boost/python -DOPENVDB_BUILD_PYTHON_MODULE=ON -D USE_NUMPY=ON -A x64 .. I also attached the CMake file. I also tried to use instead of the VCPKG Python installation my Anaconda Python 3.9.7 installation: Python_EXECUTABLE:FILEPATH=C:/Users/FB/anaconda3/envs/PYTHON39/python.exe Got however the same error, Could NOT find NumPy: Found unsuitable version ""but required is at least Many thanks for any help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Looks like CMake isn't setting |
Beta Was this translation helpful? Give feedback.
Looks like CMake isn't setting
Python_NumPy_VERSION
for some reason. Can you try without providing the path forPython_INCLUDE_DIR=
? If that doesn't work you can probably just set the version yourself to circumvent the issue i.e:cmake -DPython_NumPy_VERSION="1.21.2" <other args>"