[Insight-users] FLTK problem -- still struggling

Julien Jomier julien.jomier at kitware.com
Sun Jul 2 15:25:42 EDT 2006


Hi Esen,

This means that InsightApplications has been configured with 
BUILD_SHARED_LIBS turned ON (using CMake). Can you check the 
CMakeCache.txt within you InsightApplications binary directory and check 
that the option BUILD_SHARED_LIBS is set to OFF.

Note that this option can be set automatically if ITK or VTK or FLTK 
have been configured with shared libraries turned on. So you may want to 
check these configurations as well.

Julien

Seniha Esen Yuksel wrote:
> Hi Julien,
> 
> I compiled ITK with shared libraries turned off, then I compiled the 
> InsightApplications and got the ImageViewer working! Good news!! But 
> then to learn what I was doing wrong, I deleted the InsightApplications 
> and compiled again :(( (bad idea! :-) )
> Now I am getting the error:
> 
> ./ImageViewer out.mhd
> ./ImageViewer: error while loading shared libraries: 
> libITKFltkImageViewer.so: cannot open shared object file: No such file 
> or directory
> 
> Then I recompiled the InsightApplications, I tried turning on or off the 
> shared library options, but they didn't work I am getting the same error.
> 
> I really hope this will be my last question :)
> Thanks a lot!
> Esen
> 
> 
> */Julien Jomier <julien.jomier at kitware.com>/* wrote:
> 
>     Hi Esen,
> 
>     Happy to see that we are making some progress :)
> 
>     The error looks like a mis-compilation of ITK or something like that.
>     Did you try to recompile ITK?
>     Are you compiling ITK using shared libraries? Can you try using static
>     libraries? (there is an option in CMake)
> 
>     For the information FLTK 1.1.6 comes with a CMakeLists.txt and you
>     should be able to run CMake on it. Then when you configure
>     InsightApplications with CMake the FLTK_DIR is the FLTK binary
>     directory
>     generated by CMake and CMake should magically find all the FLTK related
>     libraries and includes.
> 
>     Julien
> 
>     Seniha Esen Yuksel wrote:
>      > Oh, sorry. I didn't compile FLTK with cmake, since it does not
>     have a
>      > cmakelists.txt file. I just did make in its own directory. With the
>      > new settings, I am getting the error below now. The CmakeCache is in
>      > http://www.cise.ufl.edu/~seyuksel/CMakeCache.txt.
>      > I cannot thank you enough for your help!
>      > Esen
>      >
>      > plum:62% make
>      > Generating ImageViewerGUI.cxx
>      > Scanning dependencies of target ImageViewer
>      > Building CXX object
>     ImageViewer/CMakeFiles/ImageViewer.dir/ImageViewer.o
>      > Building CXX object
>     ImageViewer/CMakeFiles/ImageViewer.dir/ImageViewerGUI.o
>      > Linking CXX executable ImageViewer
>      > /usr/local/lib/libITKFltkImageViewer.so: undefined reference to
>      > `itk::TimeProbesCollectorBase::Report() const'
>      > collect2: ld returned 1 exit status
>      > make[2]: *** [ImageViewer/ImageViewer] Error 1
>      > make[1]: *** [ImageViewer/CMakeFiles/ImageViewer.dir/all] Error 2
>      > make: *** [all] Error 2
>      >
>      >
>      > */Julien Jomier /* wrote:
>      >
>      > Hi Esen,
>      >
>      > When you ran CMake on FLTK I assume you specified where to build the
>      > binaries (this is the binary directory I'm talking about).
>      >
>      > The main problem you have is that the FLTK_INCLUDE_DIR is defined as:
>      >
>      >
>     FLTK_INCLUDE_DIR:PATH=/cise/research51/cvgmi_04/seyuksel/source/FLTK/fltk-1.1.4/FL
>      >
>      > and should actually be:
>      >
>      >
>     FLTK_INCLUDE_DIR:PATH=/cise/research51/cvgmi_04/seyuksel/source/FLTK/fltk-1.1.4
>      >
>      > Also the FLTK_DIR directory should point to the binary directory
>      > defined
>      > when running CMake. It looks like your binary and source directories
>      > are the same...
>      >
>      >
>     FLTK_DIR:PATH=/cise/research51/cvgmi_04/seyuksel/source/FLTK/fltk-1.1.4
>      >
>      > Let us know if that helps,
>      >
>      > Julien
>      >
>      > Seniha Esen Yuksel wrote:
>      > > Hi Julien,
>      > >
>      > > At the expense of sounding stupid, I don't see a bin directory in
>      > Fltk.
>      > > However, FLTK survived the Cmake flawlessly and I have
>      > executables in
>      > > the test directory and they are working great. Below is the
>      > > CMakeCache.txt. Thanks a lot for your help.
>      > > Esen
>      > >
>      >
>      >
>      >
>      >
>      > Seniha Esen Yuksel
>      > University of Florida
>      >
>      >
>     ------------------------------------------------------------------------
>      > Do you Yahoo!?
>      > Everyone is raving about the all-new Yahoo! Mail Beta.
>      >
>      >
>      >
>      >
>      >
>     ------------------------------------------------------------------------
>      >
>      > _______________________________________________
>      > Insight-users mailing list
>      > Insight-users at itk.org
>      > http://www.itk.org/mailman/listinfo/insight-users
> 
> 
> ------------------------------------------------------------------------
> Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great 
> rates starting at 1¢/min. 
> <http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com>
> 
> 
>  <http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com>
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>  <http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com>



More information about the Insight-users mailing list