Hi Grégoire, Probably OTB needs to link to some or all of those X libraries too.
Do you have more success if you compile FLTK with CMake instead of autoconf ? Another thing you can try : add the X libraries to CMAKE_EXE_LINKER_FLAGS (and possibly CMAKE_SHARED_LINKER_FLAGS). I would start with "-lXft -lXinerama". Julien On 01/14/2014 06:00 PM, Grégoire MERCIER wrote: > Hi, > > When compiling the last version of OTB (from scratch) I have the following > compilation error: > > Linking CXX executable ../../bin/SimpleViewer > /usr/local/lib/../lib/libfltk.so: undefined reference to `XftListFonts' > /usr/local/lib/../lib/libfltk.so: undefined reference to `XftFontOpen' > /usr/local/lib/../lib/libfltk.so: undefined reference to `XftFontOpenXlfd' > /usr/local/lib/../lib/libfltk.so: undefined reference to `XineramaIsActive' > /usr/local/lib/../lib/libfltk.so: undefined reference to `XftDrawChange' > /usr/local/lib/../lib/libfltk.so: undefined reference to `XftDrawCreate' > /usr/local/lib/../lib/libfltk.so: undefined reference to `XftTextExtents32' > /usr/local/lib/../lib/libfltk.so: undefined reference to > `XineramaQueryScreens' > /usr/local/lib/../lib/libfltk.so: undefined reference to `XftFontMatch' > /usr/local/lib/../lib/libfltk.so: undefined reference to `XftDrawSetClip' > /usr/local/lib/../lib/libfltk.so: undefined reference to `XftDrawString32' > /usr/local/lib/../lib/libfltk.so: undefined reference to `XftFontOpenPattern' > collect2: error: ld returned 1 exit status > > my FLTK (1.3.1, compiled through configure) is linked with: > fltk-config --use-images --ldflags > -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lfltk_images -lpng -lz -ljpeg > -lfltk -lXext -lXft -lfontconfig -lXinerama -lpthread -ldl -lm -lX11 > > It runs on Mint that I just installed on a 64b machine... > > I do no see... > Any idea ? > > Thanks > Greg > > > -- -- Check the OTB FAQ at http://www.orfeo-toolbox.org/FAQ.html You received this message because you are subscribed to the Google Groups "otb-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/otb-users?hl=en --- You received this message because you are subscribed to the Google Groups "otb-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
