I’m trying to build SlicerVirtualReality on Windows, but I’m getting this error:
3> CMake Error at C:/Program Files/CMake/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
3> Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
I’m not sure if they are related, but I have the feeling they are, because I can build other extensions like MarkupsToModel or SlicerRT without problems.
The reason this computer is different from my other computers on which SlicerVirtualReality builds fine is that I installed a Python 3.7 on this one. There was nothing in the environment variables related to that other python installation other than a path, but the error didn’t go away after removing that either.
Does anyone has an idea what to try next? Thanks a lot!
Yes, the variables have the correct values in both the main SlicerVR CmakeLists.txt, and both in the one where the second error occurs (I put it just before line 6):
An update about this:
I removed all python-related environment variables and paths, which didn’t seem to solve the problem. Then I went on vacation for a few weeks, which involved windows update (and thus restart). Now I’m back and rebased SlicerVR on the master, tried to build, and now it worked. So either the env.var. thing or the update/restart, or both solved it. Thanks for the pointers.