Hello everyone, I got an undefined reference while building OTB when BUILD_TESTING=ON in CMake. The error *does not* appear when BUILD_TESTING is OFF.
I am on Centos 5.4, i have installed my own FFTW library, I work with the latest bleeding-edge version of the OTB source code. First, I built FFTW without options and configured CMake with: FFTWD_LIB /home/lwasquel/fftw-3.3.3/.libs/libfftw3.a FFTWD_THREADS_LIB /home/lwasquel/fftw-3.3.3/.libs/libfftw3.a FFTWF_LIB /home/lwasquel/fftw-3.3.3/.libs/libfftw3.a FFTWF_THREADS_LIB /home/lwasquel/fftw-3.3.3/.libs/libfftw3.a FFTW_INCLUDE_PATH /home/lwasquel/fftw-3.3.3/api Next, I built FFTW with --enable-threads option and configured CMake with : FFTWD_LIB /home/lwasquel/fftw-3.3.3/.libs/libfftw3.a FFTWD_THREADS_LIB /home/lwasquel/fftw-3.3.3/threads/.libs/libfftw3_threads.a FFTWF_LIB /home/lwasquel/fftw-3.3.3/.libs/libfftw3.a FFTWF_THREADS_LIB /home/lwasquel/fftw-3.3.3/threads/.libs/libfftw3_threads.a FFTW_INCLUDE_PATH /home/lwasquel/fftw-3.3.3/api But it changes nothing, i got the next error during the make command of OTB: [ 69%] Built target otbBasicFiltersTests1 Linking CXX executable ../../../bin/otbBasicFiltersTests10 ../../../bin/libITKFFT-4.5.a(itkFFTWGlobalConfiguration.cxx.o): In function `itk::FFTWGlobalConfiguration::ImportWisdomFileFloat(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': itkFFTWGlobalConfiguration.cxx:(.text+0x157): undefined reference to `fftwf_import_wisdom_from_file' ../../../bin/libITKFFT-4.5.a(itkFFTWGlobalConfiguration.cxx.o): In function `itk::FFTWGlobalConfiguration::FFTWGlobalConfiguration()': itkFFTWGlobalConfiguration.cxx:(.text+0x8fb): undefined reference to `fftwf_init_threads' itkFFTWGlobalConfiguration.cxx:(.text+0xacb): undefined reference to `fftwf_import_system_wisdom' ../../../bin/libITKFFT-4.5.a(itkFFTWGlobalConfiguration.cxx.o): In function `itk::FFTWGlobalConfiguration::FFTWGlobalConfiguration()': itkFFTWGlobalConfiguration.cxx:(.text+0x1cfb): undefined reference to `fftwf_init_threads' itkFFTWGlobalConfiguration.cxx:(.text+0x1ecb): undefined reference to `fftwf_import_system_wisdom' ../../../bin/libITKFFT-4.5.a(itkFFTWGlobalConfiguration.cxx.o): In function `itk::FFTWGlobalConfiguration::ExportWisdomFileFloat(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': itkFFTWGlobalConfiguration.cxx:(.text+0x3080): undefined reference to `fftwf_export_wisdom_to_file' ../../../bin/libITKFFT-4.5.a(itkFFTWGlobalConfiguration.cxx.o): In function `itk::FFTWGlobalConfiguration::~FFTWGlobalConfiguration()': itkFFTWGlobalConfiguration.cxx:(.text+0x36f8): undefined reference to `fftwf_cleanup_threads' itkFFTWGlobalConfiguration.cxx:(.text+0x36fd): undefined reference to `fftwf_cleanup' ../../../bin/libITKFFT-4.5.a(itkFFTWGlobalConfiguration.cxx.o): In function `itk::FFTWGlobalConfiguration::~FFTWGlobalConfiguration()': itkFFTWGlobalConfiguration.cxx:(.text+0x3b18): undefined reference to `fftwf_cleanup_threads' itkFFTWGlobalConfiguration.cxx:(.text+0x3b1d): undefined reference to `fftwf_cleanup' ../../../bin/libITKFFT-4.5.a(itkFFTWGlobalConfiguration.cxx.o): In function `itk::FFTWGlobalConfiguration::~FFTWGlobalConfiguration()': itkFFTWGlobalConfiguration.cxx:(.text+0x3f28): undefined reference to `fftwf_cleanup_threads' itkFFTWGlobalConfiguration.cxx:(.text+0x3f2d): undefined reference to `fftwf_cleanup' collect2: ld returned 1 exit status make[2]: *** [bin/otbBasicFiltersTests10] Error 1 make[1]: *** [Testing/Code/BasicFilters/CMakeFiles/otbBasicFiltersTests10.dir/all] Error 2 make: *** [all] Error 2 Could you help me please? Thank you, Regards, Loïc Wasquel Capgemini -- -- 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/d/optout.
