BIC-MNI / minc-toolkit

Metaproject uniting all the available minc tools
GNU General Public License v3.0
37 stars 15 forks source link

compilation error opensuse 13.1 #23

Closed mathieudesro closed 9 years ago

mathieudesro commented 9 years ago

I try to build the latest minc packages I receive the following error at 100% of compilation

the 28 november 2014

git clone --recursive git://github.com/BIC-MNI/minc-toolkit.git minc-toolkit

Here my configuration

BUILD_TESTING ON
CMAKE_BUILD_TYPE
CMAKE_INSTALL_PREFIX /usr/local/pkg/minc-1.9
MT_BUILD_ITK_TOOLS OFF
MT_BUILD_LITE OFF
MT_BUILD_SHARED_LIBS OFF
MT_BUILD_VISUAL_TOOLS OFF
MT_USE_OPENMP ON
USE_SYSTEM_FFTW3F ON
USE_SYSTEM_GLUT ON
USE_SYSTEM_GSL ON
USE_SYSTEM_HDF5 OFF
USE_SYSTEM_ITK OFF
USE_SYSTEM_NETCDF OFF
USE_SYSTEM_PCRE ON
USE_SYSTEM_ZLIB OFF

I receive the following error

CMakeFiles/mincnlm.dir/mincnlm.cpp.o: In function Exec(minc::simple_volume<float>&, float*, int*, double*, float*)': mincnlm.cpp:(.text+0xcbe): undefined reference tominc::noise_estimate(minc::simple_volume const&, double&, bool, bool)' collect2: error: ld returned 1 exit status make[2]: * [EZminc/mincnlm/mincnlm] Error 1 make[1]: * [EZminc/mincnlm/CMakeFiles/mincnlm.dir/all] Error 2 make: *\ [all] Error 2

vfonov commented 9 years ago

Can't reproduce, builds fine with following options: LIB_SUFFIX=64 BUILD_TESTING:BOOL=ON CMAKE_BUILD_TYPE:STRING=Release CMAKE_INSTALL_PREFIX:PATH=/opt/minc GLUT_X11_LIBRARY:FILEPATH=/usr/lib64/libX11.so MT_BUILD_C3D:BOOL=OFF MT_BUILD_ITK_TOOLS:BOOL=OFF MT_BUILD_LITE:BOOL=OFF MT_BUILD_MINC_ANTS:BOOL=OFF MT_BUILD_SHARED_LIBS:BOOL=OFF MT_BUILD_VISUAL_TOOLS:BOOL=ON MT_USE_OPENMP:BOOL=ON USE_SYSTEM_FFTW3F:BOOL=ON USE_SYSTEM_GLUT:BOOL=ON USE_SYSTEM_GSL:BOOL=ON USE_SYSTEM_HDF5:BOOL=OFF USE_SYSTEM_ITK:BOOL=OFF USE_SYSTEM_NETCDF:BOOL=OFF USE_SYSTEM_PCRE:BOOL=ON USE_SYSTEM_ZLIB:BOOL=OFF

mathieudesro commented 9 years ago

To make the installation work for my server, I need to go in EZminc/image_proc/CMakeLists.txt and remove every lines that contain FFTW3F_FOUND. Then noise_estimate become available into libminc_image_proc.a library.

Weird.

vfonov commented 9 years ago

Probably cmake didn't find FFTW3 then