Hi Clint,<br><br>thanks again for your feedback, it was helpful. Just to give feedback: <br><br>Dynamic linking of vtk-5.0.3 release with QVTK on x86_64 seems to work, except the example code below, which seems to be a version mismatch in Qt versions I guess. The CVS version of vtk produces the same results, although I was able to use static linking there. I hope the error below will not be linked to some deeper error in the VTK/QVTK/Qt combination, but again, I think it looks like a version mismatch (I was using Qt
4.3.2).<br><br>Best regards and thanks<br>Ruben<br><br>Linking CXX executable /scratch/local/schillin/VTKBuild/bin/qtimageviewer<br>/project/imaging/software/lib/libQtGui.a(qapplication_x11.o): In function `qt_init(QApplicationPrivate*, int, _XDisplay*, unsigned long, unsigned long)':
<br>qapplication_x11.cpp:(.text+0x10323): undefined reference to `XFixesQueryExtension'<br>qapplication_x11.cpp:(.text+0x10360): undefined reference to `XFixesQueryVersion'<br>/project/imaging/software/lib/libQtGui.a(qcursor_x11.o): In function `QCursorData::update()':
<br>qcursor_x11.cpp:(.text+0x252): undefined reference to `XFixesSetCursorName'<br>qcursor_x11.cpp:(.text+0x362): undefined reference to `XFixesSetCursorName'<br>/project/imaging/software/lib/libQtCore.a(qeventdispatcher_unix.o): In function `QTimerInfoList::getTime(timeval&)':
<br>qeventdispatcher_unix.cpp:(.text+0x517): undefined reference to `clock_gettime'<br>collect2: ld returned 1 exit status<br>make[5]: *** [/scratch/local/schillin/VTKBuild/bin/qtimageviewer] Error 1<br>make[5]: Leaving directory `/amd/hurtz/1/scratch/schillin/VTKBuild/Examples/All'
<br>make[4]: *** [GUI/Qt/ImageViewer/CMakeFiles/qtimageviewer.dir/all] Error 2<br>make[4]: Leaving directory `/amd/hurtz/1/scratch/schillin/VTKBuild/Examples/All'<br>make[3]: *** [all] Error 2<br>make[3]: Leaving directory `/amd/hurtz/1/scratch/schillin/VTKBuild/Examples/All'
<br>make[2]: *** [VTKExamples] Error 1<br>make[1]: *** [Examples/CMakeFiles/VTKExamplesTarget.dir/all] Error 2<br>make: *** [all] Error 2<br><br><br><div><span class="gmail_quote">2007/10/11, <a href="mailto:clinton@elemtech.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
clinton@elemtech.com</a> <<a href="mailto:clinton@elemtech.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">clinton@elemtech.com</a>>:</span><div><span class="e" id="q_115938ffe7ce5bd8_1">
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thursday 11 October 2007 10:32:49 am Ruben Schilling wrote:<br>> Hi again,<br>><br>> I just saw, that actually switching in the ccmake configuration<br>><br>> BUILD_SHARED_LIBS *OFF<br>> and adding a '-static' to the CXXFLAGS
<br>><br>> does not prevent vtk 5.0.3 from being built as a shared library! What is<br>> wrong with this? Can I specify a static library otherwise with ccmake?<br><br>VTK is built as a static libraries. The one library you're having problems
<br>with is a Qt Designer *plugin* which is supposed to be shared.<br>In VTK 5.0, the plugin linked with VTK, which led to link errors on some<br>systems, like you're seeing. Which is linking non-PIC objects (that's the
<br>static VTK libraries), with a shared library (that's the Qt Designer plugin).<br>Two possible workarounds are to add -fPIC as the linker error suggested, or<br>build VTK as shared libraries.<br>This issue has already been fixed in the CVS version of VTK. So if you want
<br>to use that, you can.<br><br>Clint<br></blockquote></span></div></div><br>