hashdist / hashstack

Collection of software profiles for HashDist
https://hashdist.github.io/
51 stars 60 forks source link

VTK fails on RHEL6 #582

Open certik opened 9 years ago

certik commented 9 years ago

with missing TK...

2014/12/09 10:30:56 - INFO: [package:run_job] -- Could NOT find TCL (missing:  TCL_LIBRARY TCL_INCLUDE_PATH) 
2014/12/09 10:30:56 - INFO: [package:run_job] -- Could NOT find TCLTK (missing:  TCL_LIBRARY TCL_INCLUDE_PATH TK_LIBRARY TK_INCLUDE_PATH) 
2014/12/09 10:30:56 - INFO: [package:run_job] -- Could NOT find TK (missing:  TK_LIBRARY TK_INCLUDE_PATH) 
2014/12/09 10:30:56 - INFO: [package:run_job] CMake Error at CMake/vtkWrapTcl.cmake:209 (MESSAGE):
2014/12/09 10:30:56 - INFO: [package:run_job]   Tk was not found.  Install the Tk development package (see http://tcl.tk or
2014/12/09 10:30:56 - INFO: [package:run_job]   ActiveState Tcl) and set the appropriate variables (TK_INCLUDE_PATH,
2014/12/09 10:30:56 - INFO: [package:run_job]   TK_LIBRARY, TK_WISH) or disable VTK_USE_TK.
2014/12/09 10:30:56 - INFO: [package:run_job] Call Stack (most recent call first):
2014/12/09 10:30:56 - INFO: [package:run_job]   CMakeLists.txt:1134 (INCLUDE)
2014/12/09 10:30:56 - INFO: [package:run_job] 
2014/12/09 10:30:56 - INFO: [package:run_job] 
2014/12/09 10:30:56 - INFO: [package:run_job] -- Configuring incomplete, errors occurred!
johannesring commented 9 years ago

Does it work if you turn of TK with -D VTK_USE_TK:BOOL=OFF as in #561?

certik commented 9 years ago

With this patch:

diff --git a/pkgs/vtk/vtk.yaml b/pkgs/vtk/vtk.yaml
index 3abb284..d4cfb54 100644
--- a/pkgs/vtk/vtk.yaml
+++ b/pkgs/vtk/vtk.yaml
@@ -47,7 +47,7 @@ build_stages:
     - '-D BUILD_EXAMPLES:BOOL=OFF'
     - '-D BUILD_SHARED_LIBS:BOOL=ON'
     - '-D VTK_WRAP_PYTHON:BOOL=ON'
-    - '-D VTK_USE_TK:BOOL=ON'
+    - '-D VTK_USE_TK:BOOL=OFF'
     - '-D VTK_WRAP_TCL:BOOL=OFF'
     - '-D VTK_USE_GL2PS:BOOL=ON'
     - '-D VTK_PYTHON_SETUP_ARGS:STRING="--prefix=. --root=${ARTIFACT} --single-

it goes further. Then it fails with https://gist.github.com/certik/273b8c966809ad77d9f6, which is unrelated.

certik commented 9 years ago

So it looks like the vtk package that you maintained never worked for me. However, this one worked for me: https://github.com/hashdist/hashstack-old/blob/master/vtkConfig/bash_script.linux, as you can see, I properly set the opengl stuff so that it works.

certik commented 9 years ago

Perhaps we can add it as an optional feature to use osmesa, that installs everywhere. And the user can then set this in the profile. (Because it's better to use the fast hardware accelerated drivers if available.)

johannesring commented 9 years ago

I agree, it would be good to have this as an option.

blechta commented 9 years ago

This (missing OpenGL) seems to be an issue on Ubuntu-MATE 15.04 as well.