[Insight-users] QtImageViewer buidling problem
Torsten Schröer
torsten.schroeer at igd.fraunhofer.de
Wed Mar 23 06:07:36 EST 2005
Hi Benny,
regarding my prob I figured out this:
makefile seems to be generated on every "make". The changes are lost
then. But: in CMakeLists.txt there is a section LINK_LIBRARIES which has
been like this:
LINK_LIBRARIES(
vtkIO
vtkHybrid
vtkCommon
vtkGraphics
vtkRendering
${WXWINDOWS_LIBRARY}
)
I changed it to
LINK_LIBRARIES(
vtkIO
vtkHybrid
vtkCommon
vtkGraphics
vtkRendering
${WXWINDOWS_LIBRARY}
png
jpeg
tiff
z
rpcrt4
oleaut32
ole32
uuid
winspool
winmm
shell32
comctl32
ctl3d32
advapi32
wsock32
kernel32
user32
gdi32
comdlg32
)
All names past ${WXWINDOWS_LIBRARY} (which is a static build) are kind
of internal symbols of wxlibrary. It is probably the same with QT. The
path you specified is correct
(/cygdrive/c/QT/3.2.1NonCommercial/lib/qt-mtnc321.lib), but maybe you
have to reference internal library-symbols too. This should result in
something like "/cygdrive/c/QT/3.2.1NonCommercial/lib/qt-mtnc321.lib
-lqtcommon -l qttimer .. " in your Makefile. "qtcommon" and "qttimer"
are imaginary names, because I don't know anything on qt.
Good luck,
Torsten.
wuman216 at yahoo.com.tw schrieb:
> Hi Torsten,
>
> Thanks for your reply.
>
> Itried the steps you told me, but it still has the
> same link errors.
>
> It's may not the probelm of path, I set the Makefile
> manually,too.
>
>
> Benny
>
>
>
>
> --- Torsten Schr繹er <torsten.schroeer at igd.fhg.de>
> wrote:
>
>>Hi Benny,
>>
>>I had similar prob with cygwin, cmake and wxWindows
>>trying to build the
>>wxVTK. Cmake didn't set wxWindows path correctly,
>>resulting in linking
>>errors like you have. I had to manually change the
>>Makefile (set correct
>>path to wx-libs).
>>
>>First of all check your path to qt lib. Is
>>qt-mtnc321.lib really in
>>
>
> /cygdrive/c/QT/3.2.1NonCommercial/lib/qt-mtnc321.lib?
>
>>You can try this manually on console (without make):
>>/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
>>
>>Substitute $(QtSlicer_SRC_OBJS) thru needed object
>>files (see your
>>Makefile). Again check the qt-lib path.
>>
>>Torsten.
>
>
>
> _______________________________________________________________________
> Yahoo!奇摩電子信箱
> 免費容量250MB,信件在多也不怕
> http://tw.promo.yahoo.com/mail_new/index.html
More information about the Insight-users
mailing list