how to install x11_xt_lib when configure VTK?

Haven picture Haven · May 7, 2014 · Viewed 13.6k times · Source

when I configure VTK with ccmake command on Ubuntu 14.04, the following error message happens after I press c button. how to install that stuff?

 CMake Error at Rendering/OpenGL/CMakeLists.txt:304 (message):
   X11_Xt_LIB could not be found.  Required for VTK X lib.

Answer

tk_y1275963 picture tk_y1275963 · Apr 19, 2015

Try to install libxt-dev using:

sudo apt-get install libxt-dev 

This is from http://vtk.1045678.n5.nabble.com/cmake-error-when-building-vtk-6-0-0-on-ubuntu-12-04-td5722859.html.

And at least it works for me, and my OS version is Ubuntu 14.04 LTS.