[Insight-users] problems with QtImageViewer
Marcelo Costa Oliveira
marcelo@radioimaging.net
Fri, 28 Feb 2003 09:47:23 -0300
Hi users !!!!
I´m starting with ITK and QT,
i´m using itk cvs, cmake 1.6.5, Qt designer 2.3.1, mesag3+ggi 3.4.2.1-4
on Debian 3.0 stable
This example is working
Insight/Applications/InsightApplications/QtITK#
but when try to compile the
Insight/Applications/InsightApplications/Auxiliary/QtImageViewer
this error appear
Building dependencies cmake.check_depends...
Building object file QtSlicerTest.o...
Building object file QtGlSliceView.o...
Building object file QtSlicer.o...
Building object file QtSlicerGUI.o...
Building object file moc_QtSlicerGUI.o...
Building object file QtSlicerHelpGUI.o...
Building object file moc_QtSlicerHelpGUI.o...
Building object file moc_QtGlSliceView.o...
Building executable QtSlicer...
QtGlSliceView.o: In function `QtGlSliceView::QtGlSliceView(QWidget *, char
const *)':
QtGlSliceView.o(.text+0x1b): undefined reference to
`QGLWidget::QGLWidget(QWidget *, char const *, QGLWidget const *, unsigned
int)'
QtGlSliceView.o(.text+0x2c7): undefined reference to
`QGLWidget::~QGLWidget(void)'
QtGlSliceView.o: In function `QtGlSliceView::QtGlSliceView(QGLFormat,
QWidget *, char const *)':
QtGlSliceView.o(.text+0x30b): undefined reference to
`QGLWidget::QGLWidget(QGLFormat const &, QWidget *, char const *, QGLWidget
const *, unsigned int)'
QtGlSliceView.o(.text+0x517): undefined reference to
`QGLWidget::~QGLWidget(void)'
moc_QtGlSliceView.o: In function `QtGlSliceView::initMetaObject(void)':
moc_QtGlSliceView.o(.text+0x32): undefined reference to
`QGLWidget::className(void) const'
moc_QtGlSliceView.o: In function `QtGlSliceView::staticMetaObject(void)':
moc_QtGlSliceView.o(.text+0xf6): undefined reference to
`QGLWidget::staticMetaObject(void)'
moc_QtGlSliceView.o(.rodata+0x6bc): undefined reference to `QGLWidget
type_info node'
moc_QtGlSliceView.o(.gnu.linkonce.d.__vt_13QtGlSliceView+0x88): undefined
reference to `QGLWidget::setMouseTracking(bool)'
moc_QtGlSliceView.o(.gnu.linkonce.d.__vt_13QtGlSliceView+0x11c): undefined
reference to `QGLWidget::paintEvent(QPaintEvent *)'
moc_QtGlSliceView.o(.gnu.linkonce.d.__vt_13QtGlSliceView+0x124): undefined
reference to `QGLWidget::resizeEvent(QResizeEvent *)'
moc_QtGlSliceView.o(.gnu.linkonce.d.__vt_13QtGlSliceView+0x18c): undefined
reference to `QGLWidget::makeCurrent(void)'
moc_QtGlSliceView.o(.gnu.linkonce.d.__vt_13QtGlSliceView+0x190): undefined
reference to `QGLWidget::swapBuffers(void)'
moc_QtGlSliceView.o(.gnu.linkonce.d.__vt_13QtGlSliceView+0x194): undefined
reference to `QGLWidget::setFormat(QGLFormat const &)'
moc_QtGlSliceView.o(.gnu.linkonce.d.__vt_13QtGlSliceView+0x198): undefined
reference to `QGLWidget::setContext(QGLContext *, QGLContext const *, bool)'
moc_QtGlSliceView.o(.gnu.linkonce.d.__vt_13QtGlSliceView+0x19c): undefined
reference to `QGLWidget::renderPixmap(int, int, bool)'
moc_QtGlSliceView.o(.gnu.linkonce.d.__vt_13QtGlSliceView+0x1a0): undefined
reference to `QGLWidget::makeOverlayCurrent(void)'
moc_QtGlSliceView.o(.gnu.linkonce.d.__vt_13QtGlSliceView+0x1a4): undefined
reference to `QGLWidget::updateGL(void)'
moc_QtGlSliceView.o(.gnu.linkonce.d.__vt_13QtGlSliceView+0x1a8): undefined
reference to `QGLWidget::updateOverlayGL(void)'
moc_QtGlSliceView.o(.gnu.linkonce.d.__vt_13QtGlSliceView+0x1b8): undefined
reference to `QGLWidget::initializeOverlayGL(void)'
moc_QtGlSliceView.o(.gnu.linkonce.d.__vt_13QtGlSliceView+0x1bc): undefined
reference to `QGLWidget::resizeOverlayGL(int, int)'
moc_QtGlSliceView.o(.gnu.linkonce.d.__vt_13QtGlSliceView+0x1c0): undefined
reference to `QGLWidget::paintOverlayGL(void)'
moc_QtGlSliceView.o(.gnu.linkonce.d.__vt_13QtGlSliceView+0x1c4): undefined
reference to `QGLWidget::glInit(void)'
moc_QtGlSliceView.o(.gnu.linkonce.d.__vt_13QtGlSliceView+0x1c8): undefined
reference to `QGLWidget::glDraw(void)'
moc_QtGlSliceView.o: In function `QtGlSliceView::~QtGlSliceView(void)':
moc_QtGlSliceView.o(.gnu.linkonce.t._._13QtGlSliceView+0x72): undefined
reference to `QGLWidget::~QGLWidget(void)'
moc_QtGlSliceView.o: In function `QtGlSliceView type_info function':
moc_QtGlSliceView.o(.gnu.linkonce.t.__tf13QtGlSliceView+0x10): undefined
reference to `QGLWidget type_info function'
collect2: ld returned 1 exit status
make[1]: *** [QtSlicer] Error 1
make: *** [default_target] Error 2
(none):/usr/local/Insight/Applications/InsightApplications/Auxiliary/QtImage
Viewer#
When i run Cmake this can´t find xmesa.h, is possible that this make the
error ??
Tanks a lot for you help !!!