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)&#39;:
<br>qapplication_x11.cpp:(.text+0x10323): undefined reference to `XFixesQueryExtension&#39;<br>qapplication_x11.cpp:(.text+0x10360): undefined reference to `XFixesQueryVersion&#39;<br>/project/imaging/software/lib/libQtGui.a(qcursor_x11.o): In function `QCursorData::update()&#39;:
<br>qcursor_x11.cpp:(.text+0x252): undefined reference to `XFixesSetCursorName&#39;<br>qcursor_x11.cpp:(.text+0x362): undefined reference to `XFixesSetCursorName&#39;<br>/project/imaging/software/lib/libQtCore.a(qeventdispatcher_unix.o): In function `QTimerInfoList::getTime(timeval&amp;)&#39;:
<br>qeventdispatcher_unix.cpp:(.text+0x517): undefined reference to `clock_gettime&#39;<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&#39;
<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&#39;<br>make[3]: *** [all] Error 2<br>make[3]: Leaving directory `/amd/hurtz/1/scratch/schillin/VTKBuild/Examples/All&#39;
<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> &lt;<a href="mailto:clinton@elemtech.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">clinton@elemtech.com</a>&gt;:</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>&gt; Hi again,<br>&gt;<br>&gt; I just saw, that actually switching in the ccmake configuration<br>&gt;<br>&gt; BUILD_SHARED_LIBS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *OFF<br>&gt; and adding a &#39;-static&#39; to the CXXFLAGS
<br>&gt;<br>&gt; does not prevent vtk 5.0.3 from being built as a shared library! What is<br>&gt; wrong with this? Can I specify a static library otherwise with ccmake?<br><br>VTK is built as a static libraries.&nbsp;&nbsp;The one library you&#39;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&#39;re seeing.&nbsp;&nbsp;Which is linking non-PIC objects (that&#39;s the
<br>static VTK libraries), with a shared library (that&#39;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.&nbsp;&nbsp;So if you want
<br>to use that, you can.<br><br>Clint<br></blockquote></span></div></div><br>