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