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 <<a href="mailto:mathieu.malaterre@gmail.com" target="_blank">mathieu.malaterre@gmail.com</a>>:<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 <<a href="mailto:kendracorreo@gmail.com" target="_blank">kendracorreo@gmail.com</a>> wrote:<br>
> Hi. When I compile DicomImageViewer I've got the next error when Linking CXX<br>
> executable DicomImageViewer. It seems due to Xft problem, but I have compile<br>
> FLTK library from Gentoo (with emerge, portage) without "noxft" use flag and<br>
> then Xft should be activated. And, of course, I've got x11-libs/libXft<br>
> installed too.<br>
><br>
> $ make<br>
> [ 1%] Generating fltkTimeProbesCollectorGUI.cxx<br>
> [ 3%] Generating fltkClippingPlane3DDrawerGUI.cxx<br>
> [ 5%] Generating fltkDisplayGlWindowGUI.cxx<br>
> [ 7%] Generating fltkDisplayGlWindowFlatGUI.cxx<br>
> [ 9%] Generating fltkFrustumFunctionControlGUI.cxx<br>
> [ 10%] Generating fltkImageViewerGUI.cxx<br>
> [ 12%] Generating fltkImage2DViewerGUI.cxx<br>
> [ 14%] Generating fltkRGBImage2DViewerGUI.cxx<br>
> [ 16%] Generating fltkRegularStepGradientDescentGUI.cxx<br>
> [ 18%] Generating fltkSlice2DDrawerGUI.cxx<br>
> [ 20%] Generating fltkSlice3DDrawerGUI.cxx<br>
> [ 21%] Generating fltkSphereFunctionControlGUI.cxx<br>
> Scanning dependencies of target ITKFltkImageViewer<br>
> [ 23%] Building CXX object<br>
> CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkBox3D.o<br>
> [ 25%] Building CXX object<br>
> CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkCone3D.o<br>
> [ 27%] Building CXX object<br>
> CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkClippingPlane3DDrawer.o<br>
> [ 29%] Building CXX object<br>
> CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkCylinder3D.o<br>
> [ 30%] Building CXX object<br>
> CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkFrustum3D.o<br>
> [ 32%] Building CXX object<br>
> CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkGlWindow.o<br>
> [ 34%] Building CXX object<br>
> CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkGlWindowInteractive.o<br>
> [ 36%] Building CXX object<br>
> CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkGlWindowInteractiveFlat.o<br>
> [ 38%] Building CXX object<br>
> CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkImage2DViewerWindow.o<br>
> [ 40%] Building CXX object<br>
> CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkRGBImage2DViewerWindow.o<br>
> [ 41%] Building CXX object<br>
> CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkLightButton.o<br>
> [ 43%] Building CXX object<br>
> CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkProgressBar.o<br>
> [ 45%] Building CXX object<br>
> CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkShape3D.o<br>
> [ 47%] Building CXX object<br>
> CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkSphere3D.o<br>
> [ 49%] Building CXX object<br>
> CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkWindowInteractive.o<br>
> [ 50%] Building CXX object<br>
> CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkTimeProbeGUI.o<br>
> [ 52%] Building CXX object<br>
> CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkTimeProbesCollector.o<br>
> [ 54%] Building CXX object<br>
> CMakeFiles/ITKFltkImageViewer.dir/FltkImageViewer/fltkUtils.o<br>
> [ 56%] Building CXX object<br>
> CMakeFiles/ITKFltkImageViewer.dir/fltkClippingPlane3DDrawerGUI.o<br>
> [ 58%] Building CXX object<br>
> CMakeFiles/ITKFltkImageViewer.dir/fltkDisplayGlWindowGUI.o<br>
> [ 60%] Building CXX object<br>
> CMakeFiles/ITKFltkImageViewer.dir/fltkDisplayGlWindowFlatGUI.o<br>
> [ 61%] Building CXX object<br>
> CMakeFiles/ITKFltkImageViewer.dir/fltkFrustumFunctionControlGUI.o<br>
> [ 63%] Building CXX object<br>
> CMakeFiles/ITKFltkImageViewer.dir/fltkImageViewerGUI.o<br>
> [ 65%] Building CXX object<br>
> CMakeFiles/ITKFltkImageViewer.dir/fltkImage2DViewerGUI.o<br>
> [ 67%] Building CXX object<br>
> CMakeFiles/ITKFltkImageViewer.dir/fltkRGBImage2DViewerGUI.o<br>
> [ 69%] Building CXX object<br>
> CMakeFiles/ITKFltkImageViewer.dir/fltkRegularStepGradientDescentGUI.o<br>
> [ 70%] Building CXX object<br>
> CMakeFiles/ITKFltkImageViewer.dir/fltkSlice2DDrawerGUI.o<br>
> [ 72%] Building CXX object<br>
> CMakeFiles/ITKFltkImageViewer.dir/fltkSlice3DDrawerGUI.o<br>
> [ 74%] Building CXX object<br>
> CMakeFiles/ITKFltkImageViewer.dir/fltkSphereFunctionControlGUI.o<br>
> [ 76%] Building CXX object<br>
> CMakeFiles/ITKFltkImageViewer.dir/fltkTimeProbesCollectorGUI.o<br>
> Linking CXX static library libITKFltkImageViewer.a<br>
> [ 98%] Built target ITKFltkImageViewer<br>
> Scanning dependencies of target DicomImageViewer<br>
> [100%] Building CXX object<br>
> CMakeFiles/DicomImageViewer.dir/DicomImageViewer.o<br>
> Linking CXX executable DicomImageViewer<br>
> /usr/lib/fltk-1.1/libfltk.a(fl_font.o): In function<br>
> `fl_destroy_xft_draw(unsigned long)':<br>
> (.text+0x3ac): undefined reference to `XftDrawChange'<br>
> /usr/lib/fltk-1.1/libfltk.a(fl_font.o): In function `fl_width(char const*,<br>
> int)':<br>
> (.text+0x576): undefined reference to `XftTextExtents8'<br>
> /usr/lib/fltk-1.1/libfltk.a(fl_font.o): In function `fontopen(char const*,<br>
> bool)':<br>
> (.text+0x747): undefined reference to `XftFontOpen'<br>
> /usr/lib/fltk-1.1/libfltk.a(fl_font.o): In function `fl_draw(char const*,<br>
> int, int, int)':<br>
> (.text+0xf55): undefined reference to `XftDrawChange'<br>
> /usr/lib/fltk-1.1/libfltk.a(fl_font.o): In function `fl_draw(char const*,<br>
> int, int, int)':<br>
> (.text+0xf82): undefined reference to `XftDrawSetClip'<br>
> /usr/lib/fltk-1.1/libfltk.a(fl_font.o): In function `fl_draw(char const*,<br>
> int, int, int)':<br>
> (.text+0x1031): undefined reference to `XftDrawString8'<br>
> /usr/lib/fltk-1.1/libfltk.a(fl_font.o): In function `fl_draw(char const*,<br>
> int, int, int)':<br>
> (.text+0x1088): undefined reference to `XftDrawCreate'<br>
> collect2: ld devolvió el estado de salida 1<br>
> make[2]: *** [DicomImageViewer] Error 1<br>
> make[1]: *** [CMakeFiles/DicomImageViewer.dir/all] Error 2<br>
> make: *** [all] Error 2<br>
><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>
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.