[Insight-users] problems with QtImageViewer

Mathieu Malaterre Mathieu.Malaterre@creatis.insa-lyon.fr
Fri, 28 Feb 2003 16:32:43 +0100


Marcelo,
	I bet you have installed two differents QT versions, right ?

	Because there is a version mismatched in your CMakeCache.txt between:

/usr/bin/moc
and
/usr/local/qt/include

as I don't know which version is the right one, I'll just go for the one 
in /usr/local/
I suggest you edit CMakeCache.txt with your favorite editor, and change 
your values to these one:

QT_INCLUDE_DIR:PATH=/usr/local/qt/include
QT_MOC_EXECUTABLE:FILEPATH=/usr/local/bin/moc
QT_QT_LIBRARY:FILEPATH=/usr/local/lib/libqt.so
QT_UIC_EXECUTABLE:FILEPATH=/usr/local/bin/uic


If the right version of Qt was in /usr
then the right values would be:

QT_INCLUDE_DIR:PATH=/usr/qt/include
QT_MOC_EXECUTABLE:FILEPATH=/usr/bin/moc
QT_QT_LIBRARY:FILEPATH=/usr/lib/libqt.so
QT_UIC_EXECUTABLE:FILEPATH=/usr/bin/uic


Tell me if it works,
mathieu


MarceloCostaOliveira Oliveira wrote:
> Hi Mathieu, tanks a lot for your time and for help me !!
> 
> 
> 
>>
>>     Could you send me the output of:
>>
>> grep QT InsightApplications/Auxiliary/QtImageView/CMakeCache.txt
> 
> 
> In attach
> 
> 
>> BTW the recommended approach is to use another directory to build 
>> stuff (for example QtImageView-bin ).
> 
> 
> i did but the problem still happen.
> 
>> Furthermore could you also send me:
>>
>> nm -u QtGlSliceView.o | grep QGLWidget
> 
> 
> QtGlSliceView.o - in attach
> QGLWidget - i don t have this file
> 
> 
>> And also if you don't mind could you send me: moc_QtGlSliceView.cxx
> 
> 
> in attach
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>> From: Mathieu Malaterre <Mathieu.Malaterre@creatis.insa-lyon.fr>
>> To: Marcelo Costa Oliveira <marcelo@radioimaging.net>
>> Subject: Re: [Insight-users] problems with QtImageViewer
>> Date: Fri, 28 Feb 2003 14:30:42 +0100
>>
>> Marcelo,
>>
>>     Could you send me the output of:
>>
>> grep QT InsightApplications/Auxiliary/QtImageView/CMakeCache.txt
>>
>> BTW the recommended approach is to use another directory to build 
>> stuff (for example QtImageView-bin ).
>>
>> Furthermore could you also send me:
>>
>> nm -u QtGlSliceView.o | grep QGLWidget
>>
>> And also if you don't mind could you send me: moc_QtGlSliceView.cxx
>>
>> I'll see if I can help you (I am using RH7.3 and everything is fine)
>>
>> thanks,
>> mathieu
>>
>> Marcelo Costa Oliveira wrote:
>>
>>> 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 !!!
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Insight-users mailing list
>>> Insight-users@public.kitware.com
>>> http://public.kitware.com/mailman/listinfo/insight-users
>>>
>>
>>
>> -- 
>> Mathieu Malaterre
>> CREATIS
>> 28 Avenue du Doyen LEPINE
>> B.P. Lyon-Montchat
>> 69394 Lyon Cedex 03
>> http://www.creatis.insa-lyon.fr/~malaterre/
> 
> 

-- 
Mathieu Malaterre
CREATIS
28 Avenue du Doyen LEPINE
B.P. Lyon-Montchat
69394 Lyon Cedex 03
http://www.creatis.insa-lyon.fr/~malaterre/