[vtkusers] compiling qt examples qnd running it with vtk
32sthide
32sthide at gmail.com
Wed Jul 25 11:51:00 EDT 2012
using make i get these errors
/home/matt/Desktop/Vtk2/GUI/Qt/ImageViewer/main.cxx:28:26: error:
qapplication.h: No such file or directory
In file included from
/home/matt/Desktop/Vtk2/GUI/Qt/ImageViewer/main.cxx:36:
/usr/include/vtk-5.2/QVTKWidget.h:34:21: error: qwidget.h: No such file or
directory
In file included from
/home/matt/Desktop/Vtk2/GUI/Qt/ImageViewer/main.cxx:36:
/usr/include/vtk-5.2/QVTKWidget.h:52: error: expected class-name before ‘{’
token
/usr/include/vtk-5.2/QVTKWidget.h:53: error: ‘Q_OBJECT’ does not name a type
/usr/include/vtk-5.2/QVTKWidget.h:122: error: ‘QWidget’ has not been
declared
/usr/include/vtk-5.2/QVTKWidget.h:122: error: ‘Qt’ has not been declared
/usr/include/vtk-5.2/QVTKWidget.h:122: error: expected ‘,’ or ‘...’ before
‘f’
/usr/include/vtk-5.2/QVTKWidget.h:127: error: ‘QShowEvent’ has not been
declared
/usr/include/vtk-5.2/QVTKWidget.h:135: error: expected primary-expression
before ‘void’
/usr/include/vtk-5.2/QVTKWidget.h:135: error: ISO C++ forbids declaration of
‘Q_SIGNALS’ with no type
/usr/include/vtk-5.2/QVTKWidget.h:135: error: expected ‘;’ before ‘void’
/usr/include/vtk-5.2/QVTKWidget.h:147: error: expected ‘:’ before ‘Q_SLOTS’
/usr/include/vtk-5.2/QVTKWidget.h:154: error: expected primary-expression
before ‘void’
/usr/include/vtk-5.2/QVTKWidget.h:154: error: ISO C++ forbids declaration of
‘Q_SLOTS’ with no type
/usr/include/vtk-5.2/QVTKWidget.h:154: error: expected ‘;’ before ‘void’
/usr/include/vtk-5.2/QVTKWidget.h:163: error: ‘QResizeEvent’ has not been
declared
/usr/include/vtk-5.2/QVTKWidget.h:165: error: ‘QMoveEvent’ has not been
declared
/usr/include/vtk-5.2/QVTKWidget.h:167: error: ‘QPaintEvent’ has not been
declared
/usr/include/vtk-5.2/QVTKWidget.h:170: error: ‘QMouseEvent’ has not been
declared
/usr/include/vtk-5.2/QVTKWidget.h:172: error: ‘QMouseEvent’ has not been
declared
/usr/include/vtk-5.2/QVTKWidget.h:174: error: ‘QMouseEvent’ has not been
declared
/usr/include/vtk-5.2/QVTKWidget.h:176: error: ‘QKeyEvent’ has not been
declared
/usr/include/vtk-5.2/QVTKWidget.h:178: error: ‘QKeyEvent’ has not been
declared
/usr/include/vtk-5.2/QVTKWidget.h:180: error: ‘QEvent’ has not been declared
/usr/include/vtk-5.2/QVTKWidget.h:182: error: ‘QEvent’ has not been declared
/usr/include/vtk-5.2/QVTKWidget.h:185: error: ‘QWheelEvent’ has not been
declared
/usr/include/vtk-5.2/QVTKWidget.h:188: error: ‘QFocusEvent’ has not been
declared
/usr/include/vtk-5.2/QVTKWidget.h:190: error: ‘QFocusEvent’ has not been
declared
/usr/include/vtk-5.2/QVTKWidget.h:192: error: ‘QEvent’ has not been declared
/usr/include/vtk-5.2/QVTKWidget.h:195: error: ‘QContextMenuEvent’ has not
been declared
/usr/include/vtk-5.2/QVTKWidget.h:197: error: ‘QDragEnterEvent’ has not been
declared
/usr/include/vtk-5.2/QVTKWidget.h:199: error: ‘QDragMoveEvent’ has not been
declared
/usr/include/vtk-5.2/QVTKWidget.h:201: error: ‘QDragLeaveEvent’ has not been
declared
/usr/include/vtk-5.2/QVTKWidget.h:203: error: ‘QDropEvent’ has not been
declared
/usr/include/vtk-5.2/QVTKWidget.h:224: error: expected ‘:’ before ‘Q_SLOTS’
/usr/include/vtk-5.2/QVTKWidget.h:225: error: expected primary-expression
before ‘void’
/usr/include/vtk-5.2/QVTKWidget.h:225: error: ISO C++ forbids declaration of
‘Q_SLOTS’ with no type
/usr/include/vtk-5.2/QVTKWidget.h:225: error: expected ‘;’ before ‘void’
/usr/include/vtk-5.2/QVTKWidget.h:248: error: expected class-name before ‘,’
token
/usr/include/vtk-5.2/QVTKWidget.h:250: error: ISO C++ forbids declaration of
‘Q_OBJECT’ with no type
/usr/include/vtk-5.2/QVTKWidget.h:251: error: expected ‘;’ before ‘public’
/usr/include/vtk-5.2/QVTKWidget.h:265: error: expected ‘:’ before ‘Q_SLOTS’
/usr/include/vtk-5.2/QVTKWidget.h:267: error: expected primary-expression
before ‘virtual’
/usr/include/vtk-5.2/QVTKWidget.h:267: error: ISO C++ forbids declaration of
‘Q_SLOTS’ with no type
/usr/include/vtk-5.2/QVTKWidget.h:267: error: expected ‘;’ before ‘virtual’
/home/matt/Desktop/Vtk2/GUI/Qt/ImageViewer/main.cxx: In function ‘int
main(int, char**)’:
/home/matt/Desktop/Vtk2/GUI/Qt/ImageViewer/main.cxx:40: error:
‘QApplication’ was not declared in this scope
/home/matt/Desktop/Vtk2/GUI/Qt/ImageViewer/main.cxx:40: error: expected ‘;’
before ‘app’
/home/matt/Desktop/Vtk2/GUI/Qt/ImageViewer/main.cxx:42: error: no matching
function for call to ‘QVTKWidget::QVTKWidget()’
/usr/include/vtk-5.2/QVTKWidget.h:238: note: candidates are:
QVTKWidget::QVTKWidget(const QVTKWidget&)
/usr/include/vtk-5.2/QVTKWidget.h:71: error: ‘virtual
QVTKWidget::~QVTKWidget()’ is private
/home/matt/Desktop/Vtk2/GUI/Qt/ImageViewer/main.cxx:42: error: within this
context
/home/matt/Desktop/Vtk2/GUI/Qt/ImageViewer/main.cxx:43: error: ‘class
QVTKWidget’ has no member named ‘resize’
/home/matt/Desktop/Vtk2/GUI/Qt/ImageViewer/main.cxx:46: error: ‘app’ was not
declared in this scope
/usr/include/vtk-5.2/QVTKWidget.h:75: error: ‘virtual void
QVTKWidget::SetRenderWindow(vtkRenderWindow*)’ is private
/home/matt/Desktop/Vtk2/GUI/Qt/ImageViewer/main.cxx:57: error: within this
context
/usr/include/vtk-5.2/QVTKWidget.h:79: error: ‘virtual vtkRenderWindow*
QVTKWidget::GetRenderWindow()’ is private
/home/matt/Desktop/Vtk2/GUI/Qt/ImageViewer/main.cxx:58: error: within this
context
/home/matt/Desktop/Vtk2/GUI/Qt/ImageViewer/main.cxx:63: error: ‘class
QVTKWidget’ has no member named ‘show’
make[2]: *** [CMakeFiles/qtimageviewer.dir/main.o] Error 1
make[1]: *** [CMakeFiles/qtimageviewer.dir/all] Error 2
make: *** [all] Error 2
--
View this message in context: http://vtk.1045678.n5.nabble.com/compiling-qt-examples-qnd-running-it-with-vtk-tp5714913p5714919.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list