StephanPreibisch / FourierConvolutionCUDALib

Implementation of 3d non-separable convolution using CUDA & FFT Convolution
20 stars 13 forks source link

Cmake fail to build on Ubuntu 15.10 #10

Closed Xqua closed 8 years ago

Xqua commented 8 years ago

Hi,

While trying to build the library, I get an error on test_gpu_convolve due to a missing link to the Boost Library. I'm not sure, where to look to fix it.

Any chance you can help ?


➜  build  make 
[ 12%] Building NVCC (Device) object src/CMakeFiles/FourierConvolutionCUDALib.dir/FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o
-- Removing /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//./FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o
/usr/bin/cmake -E remove /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//./FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o
-- Generating dependency file: /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o.NVCC-depend
/usr/bin/nvcc -M -D__CUDACC__ /home/xqua/Downloads/FourierConvolutionCUDALib-master/src/standardCUDAfunctions.cu -o /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o.NVCC-depend -ccbin /usr/bin/c++ -m64 -DFourierConvolutionCUDALib_EXPORTS -Xcompiler ,\"-fPIC\",\"-O3\",\"-DNDEBUG\" -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -O2 --use_fast_math -DNVCC -I/usr/include -I/home/xqua/Downloads/FourierConvolutionCUDALib-master/src/. -I/usr/include
-- Generating temporary cmake readable file: /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o.depend.tmp
/usr/bin/cmake -D input_file:FILEPATH=/home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o.NVCC-depend -D output_file:FILEPATH=/home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o.depend.tmp -P /usr/share/cmake-3.2/Modules/FindCUDA/make2cmake.cmake
-- Copy if different /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o.depend.tmp to /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o.depend
/usr/bin/cmake -E copy_if_different /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o.depend.tmp /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o.depend
-- Removing /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o.depend.tmp and /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o.NVCC-depend
/usr/bin/cmake -E remove /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o.depend.tmp /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o.NVCC-depend
-- Generating /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//./FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o
/usr/bin/nvcc /home/xqua/Downloads/FourierConvolutionCUDALib-master/src/standardCUDAfunctions.cu -c -o /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//./FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o -ccbin /usr/bin/c++ -m64 -DFourierConvolutionCUDALib_EXPORTS -Xcompiler ,\"-fPIC\",\"-O3\",\"-DNDEBUG\" -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -O2 --use_fast_math -DNVCC -I/usr/include -I/home/xqua/Downloads/FourierConvolutionCUDALib-master/src/. -I/usr/include
Generated /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//./FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o successfully.
[ 25%] Building NVCC (Device) object src/CMakeFiles/FourierConvolutionCUDALib.dir/FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o
-- Removing /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//./FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o
/usr/bin/cmake -E remove /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//./FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o
-- Generating dependency file: /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o.NVCC-depend
/usr/bin/nvcc -M -D__CUDACC__ /home/xqua/Downloads/FourierConvolutionCUDALib-master/src/convolution3Dfft.cu -o /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o.NVCC-depend -ccbin /usr/bin/c++ -m64 -DFourierConvolutionCUDALib_EXPORTS -Xcompiler ,\"-fPIC\",\"-O3\",\"-DNDEBUG\" -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -O2 --use_fast_math -DNVCC -I/usr/include -I/home/xqua/Downloads/FourierConvolutionCUDALib-master/src/. -I/usr/include
-- Generating temporary cmake readable file: /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o.depend.tmp
/usr/bin/cmake -D input_file:FILEPATH=/home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o.NVCC-depend -D output_file:FILEPATH=/home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o.depend.tmp -P /usr/share/cmake-3.2/Modules/FindCUDA/make2cmake.cmake
-- Copy if different /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o.depend.tmp to /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o.depend
/usr/bin/cmake -E copy_if_different /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o.depend.tmp /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o.depend
-- Removing /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o.depend.tmp and /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o.NVCC-depend
/usr/bin/cmake -E remove /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o.depend.tmp /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o.NVCC-depend
-- Generating /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//./FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o
/usr/bin/nvcc /home/xqua/Downloads/FourierConvolutionCUDALib-master/src/convolution3Dfft.cu -c -o /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//./FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o -ccbin /usr/bin/c++ -m64 -DFourierConvolutionCUDALib_EXPORTS -Xcompiler ,\"-fPIC\",\"-O3\",\"-DNDEBUG\" -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -O2 --use_fast_math -DNVCC -I/usr/include -I/home/xqua/Downloads/FourierConvolutionCUDALib-master/src/. -I/usr/include
Generated /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//./FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o successfully.
Linking CXX shared library libFourierConvolutionCUDALib.so
[ 25%] Built target FourierConvolutionCUDALib
[ 37%] Building NVCC (Device) object src/CMakeFiles/FourierConvolutionCUDALib_static.dir/FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o
-- Removing /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//./FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o
/usr/bin/cmake -E remove /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//./FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o
-- Generating dependency file: /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o.NVCC-depend
/usr/bin/nvcc -M -D__CUDACC__ /home/xqua/Downloads/FourierConvolutionCUDALib-master/src/standardCUDAfunctions.cu -o /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o.NVCC-depend -ccbin /usr/bin/c++ -m64 -Xcompiler ,\"-O3\",\"-DNDEBUG\" -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -O2 --use_fast_math -DNVCC -I/usr/include -I/home/xqua/Downloads/FourierConvolutionCUDALib-master/src/. -I/usr/include
-- Generating temporary cmake readable file: /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o.depend.tmp
/usr/bin/cmake -D input_file:FILEPATH=/home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o.NVCC-depend -D output_file:FILEPATH=/home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o.depend.tmp -P /usr/share/cmake-3.2/Modules/FindCUDA/make2cmake.cmake
-- Copy if different /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o.depend.tmp to /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o.depend
/usr/bin/cmake -E copy_if_different /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o.depend.tmp /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o.depend
-- Removing /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o.depend.tmp and /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o.NVCC-depend
/usr/bin/cmake -E remove /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o.depend.tmp /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o.NVCC-depend
-- Generating /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//./FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o
/usr/bin/nvcc /home/xqua/Downloads/FourierConvolutionCUDALib-master/src/standardCUDAfunctions.cu -c -o /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//./FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o -ccbin /usr/bin/c++ -m64 -Xcompiler ,\"-O3\",\"-DNDEBUG\" -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -O2 --use_fast_math -DNVCC -I/usr/include -I/home/xqua/Downloads/FourierConvolutionCUDALib-master/src/. -I/usr/include
Generated /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//./FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o successfully.
[ 50%] Building NVCC (Device) object src/CMakeFiles/FourierConvolutionCUDALib_static.dir/FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o
-- Removing /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//./FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o
/usr/bin/cmake -E remove /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//./FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o
-- Generating dependency file: /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o.NVCC-depend
/usr/bin/nvcc -M -D__CUDACC__ /home/xqua/Downloads/FourierConvolutionCUDALib-master/src/convolution3Dfft.cu -o /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o.NVCC-depend -ccbin /usr/bin/c++ -m64 -Xcompiler ,\"-O3\",\"-DNDEBUG\" -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -O2 --use_fast_math -DNVCC -I/usr/include -I/home/xqua/Downloads/FourierConvolutionCUDALib-master/src/. -I/usr/include
-- Generating temporary cmake readable file: /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o.depend.tmp
/usr/bin/cmake -D input_file:FILEPATH=/home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o.NVCC-depend -D output_file:FILEPATH=/home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o.depend.tmp -P /usr/share/cmake-3.2/Modules/FindCUDA/make2cmake.cmake
-- Copy if different /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o.depend.tmp to /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o.depend
/usr/bin/cmake -E copy_if_different /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o.depend.tmp /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o.depend
-- Removing /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o.depend.tmp and /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o.NVCC-depend
/usr/bin/cmake -E remove /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o.depend.tmp /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o.NVCC-depend
-- Generating /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//./FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o
/usr/bin/nvcc /home/xqua/Downloads/FourierConvolutionCUDALib-master/src/convolution3Dfft.cu -c -o /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//./FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o -ccbin /usr/bin/c++ -m64 -Xcompiler ,\"-O3\",\"-DNDEBUG\" -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -O2 --use_fast_math -DNVCC -I/usr/include -I/home/xqua/Downloads/FourierConvolutionCUDALib-master/src/. -I/usr/include
Generated /home/xqua/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//./FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o successfully.
Linking CXX static library libFourierConvolutionCUDALib_static.a
[ 75%] Built target FourierConvolutionCUDALib_static
[ 87%] Building CXX object tests/CMakeFiles/test_gpu_convolve.dir/test_gpu_convolve.cpp.o
[100%] Building CXX object tests/CMakeFiles/test_gpu_convolve.dir/image_stack_utils.cpp.o
Linking CXX executable test_gpu_convolve
CMakeFiles/test_gpu_convolve.dir/test_gpu_convolve.cpp.o: In function `boost::unit_test::make_test_case(boost::unit_test::callback0<boost::unit_test::ut_detail::unused> const&, boost::unit_test::basic_cstring<char const>)':
test_gpu_convolve.cpp:(.text._ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE[_ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE]+0x23): undefined reference to `boost::unit_test::ut_detail::normalize_test_case_name(boost::unit_test::basic_cstring<char const>)'
collect2: error: ld returned 1 exit status
tests/CMakeFiles/test_gpu_convolve.dir/build.make:118: recipe for target 'tests/test_gpu_convolve' failed
make[2]: *** [tests/test_gpu_convolve] Error 1
CMakeFiles/Makefile2:162: recipe for target 'tests/CMakeFiles/test_gpu_convolve.dir/all' failed
make[1]: *** [tests/CMakeFiles/test_gpu_convolve.dir/all] Error 2
Makefile:126: recipe for target 'all' failed
make: *** [all] Error 2
StephanPreibisch commented 8 years ago

Hi, I never built it using CMake but only with NSight as outlined on the main page. @psteinb set up the CMake system and is hopefully able to help out.

psteinb commented 8 years ago

Hi Xqua,

apologies for the silly question, but did you check if boost_unit_test_framework is installed on your system?

Also, could you send me the output of the actual cmake call and not from the call to make?

Best, P

On 12/08/2015 05:28 PM, Xqua wrote:

Hi,

While trying to build the library, I get an error on test_gpu_convolve due to a missing link to the Boost Library. I'm not sure, where to look to fix it.

Any chance you can help ?

➜  build  make
[ 12%] Building NVCC (Device) object src/CMakeFiles/FourierConvolutionCUDALib.dir/FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o
-- Removing /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//./FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o
/usr/bin/cmake -E remove /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//./FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o
-- Generating dependency file: /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o.NVCC-depend
/usr/bin/nvcc -M -D__CUDACC__ /home/lblondel/Downloads/FourierConvolutionCUDALib-master/src/standardCUDAfunctions.cu -o /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o.NVCC-depend -ccbin /usr/bin/c++ -m64 -DFourierConvolutionCUDALib_EXPORTS -Xcompiler ,\"-fPIC\",\"-O3\",\"-DNDEBUG\" -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -O2 --use_fast_math -DNVCC -I/usr/include -I/home/lblondel/Downloads/FourierConvolutionCUDALib-master/src/. -I/usr/include
-- Generating temporary cmake readable file: /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o.depend.tmp
/usr/bin/cmake -D input_file:FILEPATH=/home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o.NVCC-depend -D output_file:FILEPATH=/home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o.depend.tmp -P /usr/share/cmake-3.2/Modules/FindCUDA/make2cmake.cmake
-- Copy if different /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o.depend.tmp to /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o.depend
/usr/bin/cmake -E copy_if_different /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o.depend.tmp /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o.depend
-- Removing /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o.depend.tmp and /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o.NVCC-depend
/usr/bin/cmake -E remove /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o.depend.tmp /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o.NVCC-depend
-- Generating /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//./FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o
/usr/bin/nvcc /home/lblondel/Downloads/FourierConvolutionCUDALib-master/src/standardCUDAfunctions.cu -c -o /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//./FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o -ccbin /usr/bin/c++ -m64 -DFourierConvolutionCUDALib_EXPORTS -Xcompiler ,\"-fPIC\",\"-O3\",\"-DNDEBUG\" -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -O2 --use_fast_math -DNVCC -I/usr/include -I/home/lblondel/Downloads/FourierConvolutionCUDALib-master/src/. -I/usr/include
Generated /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//./FourierConvolutionCUDALib_generated_standardCUDAfunctions.cu.o successfully.
[ 25%] Building NVCC (Device) object src/CMakeFiles/FourierConvolutionCUDALib.dir/FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o
-- Removing /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//./FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o
/usr/bin/cmake -E remove /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//./FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o
-- Generating dependency file: /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o.NVCC-depend
/usr/bin/nvcc -M -D__CUDACC__ /home/lblondel/Downloads/FourierConvolutionCUDALib-master/src/convolution3Dfft.cu -o /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o.NVCC-depend -ccbin /usr/bin/c++ -m64 -DFourierConvolutionCUDALib_EXPORTS -Xcompiler ,\"-fPIC\",\"-O3\",\"-DNDEBUG\" -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -O2 --use_fast_math -DNVCC -I/usr/include -I/home/lblondel/Downloads/FourierConvolutionCUDALib-master/src/. -I/usr/include
-- Generating temporary cmake readable file: /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o.depend.tmp
/usr/bin/cmake -D input_file:FILEPATH=/home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o.NVCC-depend -D output_file:FILEPATH=/home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o.depend.tmp -P /usr/share/cmake-3.2/Modules/FindCUDA/make2cmake.cmake
-- Copy if different /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o.depend.tmp to /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o.depend
/usr/bin/cmake -E copy_if_different /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o.depend.tmp /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o.depend
-- Removing /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o.depend.tmp and /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o.NVCC-depend
/usr/bin/cmake -E remove /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o.depend.tmp /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o.NVCC-depend
-- Generating /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//./FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o
/usr/bin/nvcc /home/lblondel/Downloads/FourierConvolutionCUDALib-master/src/convolution3Dfft.cu -c -o /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//./FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o -ccbin /usr/bin/c++ -m64 -DFourierConvolutionCUDALib_EXPORTS -Xcompiler ,\"-fPIC\",\"-O3\",\"-DNDEBUG\" -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -O2 --use_fast_math -DNVCC -I/usr/include -I/home/lblondel/Downloads/FourierConvolutionCUDALib-master/src/. -I/usr/include
Generated /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib.dir//./FourierConvolutionCUDALib_generated_convolution3Dfft.cu.o successfully.
Linking CXX shared library libFourierConvolutionCUDALib.so
[ 25%] Built target FourierConvolutionCUDALib
[ 37%] Building NVCC (Device) object src/CMakeFiles/FourierConvolutionCUDALib_static.dir/FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o
-- Removing /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//./FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o
/usr/bin/cmake -E remove /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//./FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o
-- Generating dependency file: /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o.NVCC-depend
/usr/bin/nvcc -M -D__CUDACC__ /home/lblondel/Downloads/FourierConvolutionCUDALib-master/src/standardCUDAfunctions.cu -o /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o.NVCC-depend -ccbin /usr/bin/c++ -m64 -Xcompiler ,\"-O3\",\"-DNDEBUG\" -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -O2 --use_fast_math -DNVCC -I/usr/include -I/home/lblondel/Downloads/FourierConvolutionCUDALib-master/src/. -I/usr/include
-- Generating temporary cmake readable file: /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o.depend.tmp
/usr/bin/cmake -D input_file:FILEPATH=/home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o.NVCC-depend -D output_file:FILEPATH=/home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o.depend.tmp -P /usr/share/cmake-3.2/Modules/FindCUDA/make2cmake.cmake
-- Copy if different /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o.depend.tmp to /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o.depend
/usr/bin/cmake -E copy_if_different /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o.depend.tmp /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o.depend
-- Removing /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o.depend.tmp and /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o.NVCC-depend
/usr/bin/cmake -E remove /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o.depend.tmp /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o.NVCC-depend
-- Generating /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//./FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o
/usr/bin/nvcc /home/lblondel/Downloads/FourierConvolutionCUDALib-master/src/standardCUDAfunctions.cu -c -o /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//./FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o -ccbin /usr/bin/c++ -m64 -Xcompiler ,\"-O3\",\"-DNDEBUG\" -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -O2 --use_fast_math -DNVCC -I/usr/include -I/home/lblondel/Downloads/FourierConvolutionCUDALib-master/src/. -I/usr/include
Generated /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//./FourierConvolutionCUDALib_static_generated_standardCUDAfunctions.cu.o successfully.
[ 50%] Building NVCC (Device) object src/CMakeFiles/FourierConvolutionCUDALib_static.dir/FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o
-- Removing /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//./FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o
/usr/bin/cmake -E remove /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//./FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o
-- Generating dependency file: /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o.NVCC-depend
/usr/bin/nvcc -M -D__CUDACC__ /home/lblondel/Downloads/FourierConvolutionCUDALib-master/src/convolution3Dfft.cu -o /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o.NVCC-depend -ccbin /usr/bin/c++ -m64 -Xcompiler ,\"-O3\",\"-DNDEBUG\" -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -O2 --use_fast_math -DNVCC -I/usr/include -I/home/lblondel/Downloads/FourierConvolutionCUDALib-master/src/. -I/usr/include
-- Generating temporary cmake readable file: /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o.depend.tmp
/usr/bin/cmake -D input_file:FILEPATH=/home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o.NVCC-depend -D output_file:FILEPATH=/home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o.depend.tmp -P /usr/share/cmake-3.2/Modules/FindCUDA/make2cmake.cmake
-- Copy if different /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o.depend.tmp to /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o.depend
/usr/bin/cmake -E copy_if_different /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o.depend.tmp /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o.depend
-- Removing /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o.depend.tmp and /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o.NVCC-depend
/usr/bin/cmake -E remove /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o.depend.tmp /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o.NVCC-depend
-- Generating /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//./FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o
/usr/bin/nvcc /home/lblondel/Downloads/FourierConvolutionCUDALib-master/src/convolution3Dfft.cu -c -o /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//./FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o -ccbin /usr/bin/c++ -m64 -Xcompiler ,\"-O3\",\"-DNDEBUG\" -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -O2 --use_fast_math -DNVCC -I/usr/include -I/home/lblondel/Downloads/FourierConvolutionCUDALib-master/src/. -I/usr/include
Generated /home/lblondel/Downloads/FourierConvolutionCUDALib-master/build/src/CMakeFiles/FourierConvolutionCUDALib_static.dir//./FourierConvolutionCUDALib_static_generated_convolution3Dfft.cu.o successfully.
Linking CXX static library libFourierConvolutionCUDALib_static.a
[ 75%] Built target FourierConvolutionCUDALib_static
[ 87%] Building CXX object tests/CMakeFiles/test_gpu_convolve.dir/test_gpu_convolve.cpp.o
[100%] Building CXX object tests/CMakeFiles/test_gpu_convolve.dir/image_stack_utils.cpp.o
Linking CXX executable test_gpu_convolve
CMakeFiles/test_gpu_convolve.dir/test_gpu_convolve.cpp.o: In function `boost::unit_test::make_test_case(boost::unit_test::callback0<boost::unit_test::ut_detail::unused> const&, boost::unit_test::basic_cstring<char const>)':
test_gpu_convolve.cpp:(.text._ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE[_ZN5boost9unit_test14make_test_caseERKNS0_9callback0INS0_9ut_detail6unusedEEENS0_13basic_cstringIKcEE]+0x23): undefined reference to `boost::unit_test::ut_detail::normalize_test_case_name(boost::unit_test::basic_cstring<char const>)'
collect2: error: ld returned 1 exit status
tests/CMakeFiles/test_gpu_convolve.dir/build.make:118: recipe for target 'tests/test_gpu_convolve' failed
make[2]: *** [tests/test_gpu_convolve] Error 1
CMakeFiles/Makefile2:162: recipe for target 'tests/CMakeFiles/test_gpu_convolve.dir/all' failed
make[1]: *** [tests/CMakeFiles/test_gpu_convolve.dir/all] Error 2
Makefile:126: recipe for target 'all' failed
make: *** [all] Error 2

Reply to this email directly or view it on GitHub: https://github.com/StephanPreibisch/FourierConvolutionCUDALib/issues/10

Peter Steinbach, Dr. rer. nat. Scientific Software Engineer, Scientific Computing Facility

Scionics Computer Innovation GmbH Löscherstr. 16 01309 Dresden Germany

phone +49 351 210 2882 fax +49 351 202 707 04 www.scionics.de

Sitz der Gesellschaft: Dresden (Main office) Amtsgericht - Registergericht: Dresden HRB 20337 (Commercial Registry) Ust-IdNr.: DE813263791 (VAT ID Number) Geschäftsführer: John Duperon, Jeff Oegema (Managing Directors)

StephanPreibisch commented 8 years ago

Thanks @psteinb!

Xqua commented 8 years ago

@psteinb Yes, I did made sure it was installed in theory, on ubuntu it is provided by libboost-test-dev

cmake call

cmake -DCMAKE_INSTALL_PREFIX=/home/xqua/Software/Fiji.app/lib/linux64/ ..
>> Setting up Release build
>> compiling for Compute Capability 2.x, 3.0 and 3.5 only 
>> static Boost UTF: /usr/lib/x86_64-linux-gnu/libboost_system.a;/usr/lib/x86_64-linux-gnu/libboost_filesystem.a;/usr/lib/x86_64-linux-gnu/libboost_unit_test_framework.a
-- Configuring done
-- Generating done
-- Build files have been written to: /home/xqua/Downloads/FourierConvolutionCUDALib-master/build
Xqua commented 8 years ago

Maybe a libboost version issue ? I have version 1.58

I have the libboost files under : /usr/lib/x86_64-linux-gnu

libboost_unit_test_framework.a libboost_unit_test_framework.so libboost_unit_test_framework.so.1.58.0

psteinb commented 8 years ago

just tried under centos 7 with cuda 7.5 and boost 1.58. everything works fine! I don't have a ubuntu 15.10 box around. Looking at the error message, nvcc appears to suggest that a function which is present in the boost.test headers is not available in the libboost_unit_test_framework.{a,so}. Which is very weird! So either cmake picked up the headers from somewhere, but is unable to link against the corresponding library. Could you please delete the build folder and do a fresh cmake?! What gcc and cuda version are you using?

Peter Steinbach, Dr. rer. nat. Scientific Software Engineer, Scientific Computing Facility

Scionics Computer Innovation GmbH Löscherstr. 16 01309 Dresden Germany

phone +49 351 210 2882 fax +49 351 202 707 04 www.scionics.de

Sitz der Gesellschaft: Dresden (Main office) Amtsgericht - Registergericht: Dresden HRB 20337 (Commercial Registry) Ust-IdNr.: DE813263791 (VAT ID Number) Geschäftsführer: John Duperon, Jeff Oegema (Managing Directors)

Xqua commented 8 years ago

Hi,

So I deleted the folder and re cmake and make

same error

GCC version 4.8 (as 4.9 gives me an error) Cuda compilation tools, release 6.5, V6.5.12 But this is CUDA 7.5 boost 1.58

Xqua commented 8 years ago

I'm pretty sure this won't help, but I've tried to Fiji with the libFourierConvolutionCUDALib.so that gets compiled before make crashes and here is the output if I try to register using CUDA. If I try to deconvolve using CUDA it just crashes. But at least it finds my Graphic Card !

(Fiji Is Just) ImageJ 2.0.0-rc-43/1.50e; Java 1.8.0_66 [64-bit]; Linux 4.2.0-21-generic; 20198MB of 28000MB (72%)

java.lang.UnsatisfiedLinkError: Error looking up function 'convolve_15': /home/lblondel/Software/FourierConvolutionCUDALib/build/src/libFourierConvolutionCUDALib.so: undefined symbol: convolve_15
    at com.sun.jna.Function.<init>(Function.java:179)
    at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:344)
    at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:324)
    at com.sun.jna.Library$Handler.invoke(Library.java:203)
    at com.sun.proxy.$Proxy10.convolve_15(Unknown Source)
    at spim.process.cuda.CUDASeparableConvolutionFunctions.gauss(CUDASeparableConvolutionFunctions.java:182)
    at spim.process.cuda.CUDASeparableConvolutionFunctions.gauss(CUDASeparableConvolutionFunctions.java:87)
    at spim.process.interestpointdetection.DifferenceOfGaussianCUDA$CUDAOutput.process(DifferenceOfGaussianCUDA.java:170)
    at spim.process.interestpointdetection.DifferenceOfGaussianNewPeakFinder$1.run(DifferenceOfGaussianNewPeakFinder.java:78)
    at java.lang.Thread.run(Thread.java:745)
    at mpicbg.imglib.multithreading.SimpleMultiThreading.startAndJoin(SimpleMultiThreading.java:139)
    at spim.process.interestpointdetection.DifferenceOfGaussianNewPeakFinder.process(DifferenceOfGaussianNewPeakFinder.java:90)
    at spim.process.interestpointdetection.ProcessDOG.compute(ProcessDOG.java:131)
    at spim.fiji.plugin.interestpointdetection.DifferenceOfGaussian.findInterestPoints(DifferenceOfGaussian.java:110)
    at spim.fiji.plugin.Interest_Point_Detection.detectInterestPoints(Interest_Point_Detection.java:167)
    at spim.fiji.plugin.Interest_Point_Detection.run(Interest_Point_Detection.java:67)
    at ij.IJ.runUserPlugIn(IJ.java:212)
    at ij.IJ.runPlugIn(IJ.java:176)
    at ij.Executer.runCommand(Executer.java:136)
    at ij.Executer.run(Executer.java:65)
    at java.lang.Thread.run(Thread.java:745)
psteinb commented 8 years ago

Hi Xqua - I setup a Ubuntu 15.10 virtual machine to check upon this error ... funny enough, libboost_unit_test_framework.so and it's pointee appears to contain no symbols that it is exporting, the static version is alright though! I need to dig further to find it's cause and see if this is a known problem or how to work around it

psteinb commented 8 years ago

we seem to be hitting this one: http://stackoverflow.com/a/30668880 I am in contact with the ubuntu developers list to sort this out. I can say, that if you build boost with gcc 4.9 on Ubuntu 15.10 it works as expected. If you want to go ahead and build boost with gcc 4.9 under /path/to/boost-build-with-gcc-4.9, the build this library with:

$ cd build
$ CXX=g++-4.9 CC=gcc-4.9 cmake -DBOOST_ROOT=/path/to/boost-build-with-gcc-4.9 ..

:( but that is a rather inconvenient solution.

psteinb commented 8 years ago

Ok, here is the deal from my point of view:

Please consider closing this issue, I consider it solved!

Xqua commented 8 years ago

Hi, Indeed, this issue is closed, I will try to build libBoost when I have time ! Maybe Cuda will be out before I have this time.

Thank you a lot for your help !