Hi Manuel, No. I compiled it from my side... But I guess I will try this way ;o)
Best regards Greg ----- Mail original ----- De: "Manuel Grizonnet" <[email protected]> À: [email protected] Envoyé: Mercredi 15 Janvier 2014 17:20:50 Objet: Re: [otb-users] Compilation problem Hi Greg, side question, do tyou consider installing an external version of FLTK using the package management system( fltk and fltk-dev packages should be available on mint) Regards, Manuel Le 15/01/2014 17:07, Grégoire MERCIER a écrit : > Hi Julien, > > No: CMAKE_EXE_LINKER_FLAGS adds the new links at the begining of the complete > flag list (so before the -lfltk... I check it with the makefile verbose > option) > > In fact I checked the file OTB/CMake/FindFLTK.cmake > I guess the line 310: > set(FLTK_LIBS_EXTRACT_REGEX ".*-lfltk_images (.*) -lfltk.*") > is too restrictive when fltk needs extra libs (in my case: -lXft -lfontconfig > -lXinerama) > but I did not understand well the syntax after that... so I changed directly > the line 327 by: > list(APPEND FLTK_LIBRARIES ${FLTK_BASE_LIBRARY} -lXft -lfontconfig -lXinerama) > Not very nice, but it seems ok up to now ;o) > > Best, > Greg > > > > > ----- Mail original ----- > De: "Julien Malik" <[email protected]> > À: [email protected] > Envoyé: Mercredi 15 Janvier 2014 15:31:07 > Objet: Re: [otb-users] Compilation problem > > 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. -- -- 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.
