vtk: fix native build on headless server

OpenGL/Mesa libs aren't required for compile tools
This commit is contained in:
Tony Theodore 2017-10-27 18:38:12 +11:00
parent 17ed51cc35
commit d4fd40df4e
1 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,8 @@ define $(PKG)_BUILD
# first we need a native build to create the compile tools
mkdir '$(BUILD_DIR).native'
cd '$(BUILD_DIR).native' && '$(PREFIX)/$(BUILD)/bin/cmake' '$(SOURCE_DIR)' \
-DVTK_USE_X=OFF \
-DVTK_USE_OFFSCREEN=ON \
-DBUILD_TESTING=FALSE \
-DCMAKE_BUILD_TYPE="Release"
$(MAKE) -C '$(BUILD_DIR).native' -j '$(JOBS)' VERBOSE=1 vtkCompileTools