KitwareMedical / VTKPythonPackage

A setup script to generate VTK Python Wheels
https://vtkpythonpackage.readthedocs.io
BSD 3-Clause "New" or "Revised" License
34 stars 15 forks source link

X11 not found in macOS High Sierra #10

Closed maekclena closed 6 years ago

maekclena commented 6 years ago

Hi,

I'm trying to build the macOS wheels but the configure step fails:

CMake Error at /usr/local/Cellar/cmake/3.9.6/share/cmake/Modules/FindX11.cmake:429 (message):
  Could not find X11
Call Stack (most recent call first):
  Rendering/OpenGL2/CMakeLists.txt:191 (find_package)

I'm under macOS High Sierra (10.13.1) where X11 is not included. I believe the problem comes from setting VTK_USE_X to ON in VTKPythonPackage/_skbuild/cmake-build/VTK-prefix/tmp/VTK-cache-Release.cmake (line 24).

maekclena commented 6 years ago

Setting -DVTK_USE_X:BOOL=OFF in CMakeLists.txt (line 216) worked for me.

jcfr commented 6 years ago

Thanks for the note.

In the next few days, I will setup daily build for the VTK wheels (similar to what we have for ITK) and I will integrate your change.

jcfr commented 6 years ago

Closing. This should be fixed by #15