Thanks, I add Xft to LINK_LIBRARIES variable and It compiles! But.... now when I open a dicom image with the visor I obtain the output:<br><div class="gmail_quote"><br>$./DicomImageViewer <br><br>Loading File: /home/kendra/13614193285030010/1.3.6.1.4.1.9328.50.3.1788/1.3.6.1.4.1.9328.50.3.1789/https-33727.dcm<br>


...Done Loading File<br>libGL error: open DRM failed (Operation not permitted)<br>libGL error: reverting to (slow) indirect rendering<br><br>Anybody knows why this error with libGL?<br><br><br><div class="gmail_quote">2008/6/23 Mathieu Malaterre &lt;<a href="mailto:mathieu.malaterre@gmail.com" target="_blank">mathieu.malaterre@gmail.com</a>&gt;:<div>
<div></div><div class="Wj3C7c"><br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div>On Sat, Jun 21, 2008 at 7:46 PM, Kendra &lt;<a href="mailto:kendracorreo@gmail.com" target="_blank">kendracorreo@gmail.com</a>&gt; wrote:<br>
&gt; Hi. When I compile DicomImageViewer I&#39;ve got the next error when Linking CXX<br>
&gt; executable DicomImageViewer. It seems due to Xft problem, but I have compile<br>
&gt; FLTK library from Gentoo (with emerge, portage) without &quot;noxft&quot; use flag and<br>
&gt; then Xft should be activated. And, of course, I&#39;ve got x11-libs/libXft<br>
&gt; installed too.<br>
&gt;<br>
&gt; $ make<br>
&gt; [ &nbsp;1%] Generating fltkTimeProbesCollectorGUI.cxx<br>
&gt; [ &nbsp;3%] Generating fltkClippingPlane3DDrawerGUI.cxx<br>
&gt; [ &nbsp;5%] Generating fltkDisplayGlWindowGUI.cxx<br>
&gt; [ &nbsp;7%] Generating fltkDisplayGlWindowFlatGUI.cxx<br>
&gt; [ &nbsp;9%] Generating fltkFrustumFunctionControlGUI.cxx<br>
&gt; [ 10%] Generating fltkImageViewerGUI.cxx<br>
&gt; [ 12%] Generating fltkImage2DViewerGUI.cxx<br>
&gt; [ 14%] Generating fltkRGBImage2DViewerGUI.cxx<br>
&gt; [ 16%] Generating fltkRegularStepGradientDescentGUI.cxx<br>
&gt; [ 18%] Generating fltkSlice2DDrawerGUI.cxx<br>
&gt; [ 20%] Generating fltkSlice3DDrawerGUI.cxx<br>
&gt; [ 21%] Generating fltkSphereFunctionControlGUI.cxx<br>
&gt; Scanning dependencies of target ITKFltkImageViewer<br>
&gt; [ 23%] Building CXX object<br>
&gt; CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkBox3D.o<br>
&gt; [ 25%] Building CXX object<br>
&gt; CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkCone3D.o<br>
&gt; [ 27%] Building CXX object<br>
&gt; CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkClippingPlane3DDrawer.o<br>
&gt; [ 29%] Building CXX object<br>
&gt; CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkCylinder3D.o<br>
&gt; [ 30%] Building CXX object<br>
&gt; CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkFrustum3D.o<br>
&gt; [ 32%] Building CXX object<br>
&gt; CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkGlWindow.o<br>
&gt; [ 34%] Building CXX object<br>
&gt; CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkGlWindowInteractive.o<br>
&gt; [ 36%] Building CXX object<br>
&gt; CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkGlWindowInteractiveFlat.o<br>
&gt; [ 38%] Building CXX object<br>
&gt; CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkImage2DViewerWindow.o<br>
&gt; [ 40%] Building CXX object<br>
&gt; CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkRGBImage2DViewerWindow.o<br>
&gt; [ 41%] Building CXX object<br>
&gt; CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkLightButton.o<br>
&gt; [ 43%] Building CXX object<br>
&gt; CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkProgressBar.o<br>
&gt; [ 45%] Building CXX object<br>
&gt; CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkShape3D.o<br>
&gt; [ 47%] Building CXX object<br>
&gt; CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkSphere3D.o<br>
&gt; [ 49%] Building CXX object<br>
&gt; CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkWindowInteractive.o<br>
&gt; [ 50%] Building CXX object<br>
&gt; CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkTimeProbeGUI.o<br>
&gt; [ 52%] Building CXX object<br>
&gt; CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkTimeProbesCollector.o<br>
&gt; [ 54%] Building CXX object<br>
&gt; CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkUtils.o<br>
&gt; [ 56%] Building CXX object<br>
&gt; CMakeFiles/ITKFltkImageViewer.dir/fltkClippingPlane3DDrawerGUI.o<br>
&gt; [ 58%] Building CXX object<br>
&gt; CMakeFiles/ITKFltkImageViewer.dir/fltkDisplayGlWindowGUI.o<br>
&gt; [ 60%] Building CXX object<br>
&gt; CMakeFiles/ITKFltkImageViewer.dir/fltkDisplayGlWindowFlatGUI.o<br>
&gt; [ 61%] Building CXX object<br>
&gt; CMakeFiles/ITKFltkImageViewer.dir/fltkFrustumFunctionControlGUI.o<br>
&gt; [ 63%] Building CXX object<br>
&gt; CMakeFiles/ITKFltkImageViewer.dir/fltkImageViewerGUI.o<br>
&gt; [ 65%] Building CXX object<br>
&gt; CMakeFiles/ITKFltkImageViewer.dir/fltkImage2DViewerGUI.o<br>
&gt; [ 67%] Building CXX object<br>
&gt; CMakeFiles/ITKFltkImageViewer.dir/fltkRGBImage2DViewerGUI.o<br>
&gt; [ 69%] Building CXX object<br>
&gt; CMakeFiles/ITKFltkImageViewer.dir/fltkRegularStepGradientDescentGUI.o<br>
&gt; [ 70%] Building CXX object<br>
&gt; CMakeFiles/ITKFltkImageViewer.dir/fltkSlice2DDrawerGUI.o<br>
&gt; [ 72%] Building CXX object<br>
&gt; CMakeFiles/ITKFltkImageViewer.dir/fltkSlice3DDrawerGUI.o<br>
&gt; [ 74%] Building CXX object<br>
&gt; CMakeFiles/ITKFltkImageViewer.dir/fltkSphereFunctionControlGUI.o<br>
&gt; [ 76%] Building CXX object<br>
&gt; CMakeFiles/ITKFltkImageViewer.dir/fltkTimeProbesCollectorGUI.o<br>
&gt; Linking CXX static library libITKFltkImageViewer.a<br>
&gt; [ 98%] Built target ITKFltkImageViewer<br>
&gt; Scanning dependencies of target DicomImageViewer<br>
&gt; [100%] Building CXX object<br>
&gt; CMakeFiles/DicomImageViewer.dir/DicomImageViewer.o<br>
&gt; Linking CXX executable DicomImageViewer<br>
&gt; /usr/lib/fltk-1.1/libfltk.a(fl_font.o): In function<br>
&gt; `fl_destroy_xft_draw(unsigned long)&#39;:<br>
&gt; (.text+0x3ac): undefined reference to `XftDrawChange&#39;<br>
&gt; /usr/lib/fltk-1.1/libfltk.a(fl_font.o): In function `fl_width(char const*,<br>
&gt; int)&#39;:<br>
&gt; (.text+0x576): undefined reference to `XftTextExtents8&#39;<br>
&gt; /usr/lib/fltk-1.1/libfltk.a(fl_font.o): In function `fontopen(char const*,<br>
&gt; bool)&#39;:<br>
&gt; (.text+0x747): undefined reference to `XftFontOpen&#39;<br>
&gt; /usr/lib/fltk-1.1/libfltk.a(fl_font.o): In function `fl_draw(char const*,<br>
&gt; int, int, int)&#39;:<br>
&gt; (.text+0xf55): undefined reference to `XftDrawChange&#39;<br>
&gt; /usr/lib/fltk-1.1/libfltk.a(fl_font.o): In function `fl_draw(char const*,<br>
&gt; int, int, int)&#39;:<br>
&gt; (.text+0xf82): undefined reference to `XftDrawSetClip&#39;<br>
&gt; /usr/lib/fltk-1.1/libfltk.a(fl_font.o): In function `fl_draw(char const*,<br>
&gt; int, int, int)&#39;:<br>
&gt; (.text+0x1031): undefined reference to `XftDrawString8&#39;<br>
&gt; /usr/lib/fltk-1.1/libfltk.a(fl_font.o): In function `fl_draw(char const*,<br>
&gt; int, int, int)&#39;:<br>
&gt; (.text+0x1088): undefined reference to `XftDrawCreate&#39;<br>
&gt; collect2: ld devolvió el estado de salida 1<br>
&gt; make[2]: *** [DicomImageViewer] Error 1<br>
&gt; make[1]: *** [CMakeFiles/DicomImageViewer.dir/all] Error 2<br>
&gt; make: *** [all] Error 2<br>
&gt;<br>
<br>
</div></div>It simply means you are missing the explicit linking to Xft (-lXft).<br>
You can verify thise by typing:<br>
<br>
 &nbsp;make VERBOSE=1<br>
<br>
2 cts<br>
--<br>
<font color="#888888">Mathieu<br>
</font></blockquote></div></div></div><font color="#888888"><br><br clear="all"><br>-- <br>Esther.
</font></div><br><br clear="all"><br>-- <br>Esther.