[vtkusers] QT VTK make error linux

Maik Beckmann beckmann.maik at googlemail.com
Fri Apr 11 01:23:20 EDT 2008


Am Donnerstag 10 April 2008 12:23:59 schrieb Brian Gee Chacko:

> g++ -c -pipe -Wall -W -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
> -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386
> -mtune=generic -fasynchronous-unwind-tables  -DQT_NO_DEBUG -DQT_SHARED
> -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/lib/qt-3.3/mkspecs/default
> -I. -I. -I/usr/lib/qt-3.3/include -o main.o main.cxx
> In file included from SimpleView3.h:37,
>                  from main.cxx:31:
> *uiSimpleView3.h:15:24: error: QVTKWidget.h: No such file or directory*
> make: *** [main.o] Error 1
>


You have to set 
  -DVTK_USE_QVTK=on
  -DVTK_USE_GUISUPPORT=on
at cmake configuration.  If you want to use Qt4 also set
  -DDESIRED_QT_VERSION=4
or respectively 
  -DDESIRED_QT_VERSION=3
for Qt3.

= A note to the developers =
The name
  DESIRED_QT_VERSION
doesn't feel very consistent with the usual naming scheme to me.  What about
  VTK_DESIRED_QT_VERSION
??

Best,
 -- Maik



More information about the vtkusers mailing list