Error including <QVTKWidget.h>
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
I have a simple test file, RenderWindow.cxx:
#include <QVTKWidget.h> int main() { }
with a CMakeLists.txt file:
cmake_minimum_required(VERSION 2.8) PROJECT(RenderWindow) FIND_PACKAGE(VTK) INCLUDE(${VTK_USE_FILE}) FIND_PACKAGE(Qt4 REQUIRED) INCLUDE(${QT_USE_FILE}) ADD_EXECUTABLE(RenderWindow RenderWindow.cxx)
luke@LenovoW510 ~/tmp/testvtk/qvtk/build $ make Scanning dependencies of target RenderWindow [100%] Building CXX object CMakeFiles/RenderWindow.dir/RenderWindow.cxx.o In file included from /home/luke/usr/include/vtk-6.0/QVTKWidget.h:40:0, from /home/luke/tmp/testvtk/qvtk/RenderWindow.cxx:13: /home/luke/usr/include/vtk-6.0/QVTKInteractor.h:45:52: fatal error: vtkTDxConfigure.h: No such file or directory compilation terminated. make[2]: *** [CMakeFiles/RenderWindow.dir/RenderWindow.cxx.o] Error 1 make[1]: *** [CMakeFiles/RenderWindow.dir/all] Error 2 make: *** [all] Error 2
This is from the master branch (commit d615e721), when I build and install, vtkTDxConfigure.h is not installed. I am not sure if this file is supposed to be installed or not.
I see that Rendering/OpenGL/CMakeLists:39 has a configure_file() statement that I think should be installing the file. For some reason it isn't however. Similarly for various other configure files.
I don't know if this is a problem with QVTKWidget.h, or maybe QVTKInteractor.h, or if this is a problem with the build system.