[Insight-users] QtImageViewer buidling problem
wuman216 at yahoo.com.tw
wuman216 at yahoo.com.tw
Wed Mar 23 00:22:10 EST 2005
Hello,
I built the QtImageViewer using QT 3.21 non-commerical
version, gcc3.3.3, CMake2.0.5 and Cygwin.
I set
QT_QT_LIBRARY:FILEPATH=/cygdrive/c/QT/3.2.1NonCommercial/lib/qt-mtnc321.lib,but
the compitler gives me lots of link errors msgs when
Building QtSlicer.exe.
----------------------
...
QtSlicer.o(.rdata$_ZTV8QtSlicer[vtable for
QtSlicer]+0x1e0):QtSlicer.cxx: undefined reference to
`Gui::languageChange()'
QtSlicer.o(.rdata$_ZTV8QtSlicer[vtable for
QtSlicer]+0x1f4):QtSlicer.cxx: undefined reference to
`QPaintDevice::setResolution(int)'
QtSlicer.o(.rdata$_ZTV8QtSlicer[vtable for
QtSlicer]+0x1f8):QtSlicer.cxx: undefined reference to
`QPaintDevice::resolution() const'
QtSlicer.o(.rdata$_ZTV8QtSlicer[vtable for
QtSlicer]+0x1fc):QtSlicer.cxx: undefined reference to
`QPaintDevice::handle() const'
...
-----------------------
The part of Makefile is shown below:
----
@echo "Building executable ../bin/QtSlicer.exe..."
/usr/bin/g++ -ftemplate-depth-50 -DNOMINMAX
$(QtSlicer_SRC_OBJS) $(QtSlicer_EXTERNAL_OBJS) -o
../bin/QtSlicer.exe
-L/cygdrive/d/workspace/ITK/unix/bin
-L/cygdrive/c/QT/3.2.1NonCommercial/lib
-L/usr/lib/w32api -lITKAlgorithms -lITKStatistics
-lITKFEM
/cygdrive/c/QT/3.2.1NonCommercial/lib/qt-mtnc321.lib
-lglu32 -lglu32 -lopengl32 -lglu32 -lopengl32
-lITKNumerics -lITKBasicFilters -lITKIO -lITKCommon
-litkvnl_inst -litkvnl_algo -litkvnl -litkvcl
-litknetlib -lm -litksys -lpthread -lgdi32 -lITKNrrdIO
-litkgdcm -litkjpeg12 -litkjpeg16 -lwsock32 -lsnmpapi
-litkpng -litktiff -litkjpeg8 -lITKMetaIO -litkzlib
-lITKDICOMParser -lITKEXPAT -lm
----
Help resolving this greatly appreciated.
Benny
_______________________________________________________________________
Yahoo!奇摩電子信箱
免費容量250MB,信件在多也不怕
http://tw.promo.yahoo.com/mail_new/index.html
More information about the Insight-users
mailing list