Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

libopencv_core.so.3.0.0: undefined reference to ippiCopy_32s_C4MR

Hi all, I am trying to compile opencv 3 and currently stuck at a compiler error.

Linking CXX executable ../../../bin/opencv_test_cudev cd /home/user/OPENCV_SRC/opencv-3.0.0/build/modules/cudev/test && /usr/bin/cmake -E cmake_link_script CMakeFiles/opencv_test_cudev.dir/link.txt --verbose=1 /home/soft/gcc-4.9.3/bin/g++ -fPIC
-fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Winit-self -Wpointer-arith -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -Wno-undef -Wno-missing-declarations -Wno-unused-function -Wno-unused-variable -Wno-enum-compare -Wno-shadow -O3 -DNDEBUG -DNDEBUG /home/apps/LIBGPHOTO/2/2.5.6/gnu/lib/libgphoto2.so /home/user/OPENCV_SRC/ippicv_lnx/lib/intel64/libippicv.a /home/apps/LIBGPHOTO/2/2.5.6/gnu/lib/libgphoto2.so /home/apps/LIBTOOL/2.4.6/gnu/k20/lib/libjpeg.a /home/apps/LIBPNG/1.6.19/gnu/lib/libpng.a /home/apps/ZLIB/1.2.8/gnu/lib/libz.a /home/user/OPENCV_SRC/ippicv_lnx/lib/intel64/libippicv.a CMakeFiles/opencv_test_cudev.dir/test_main.cpp.o CMakeFiles/opencv_test_cudev.dir/./opencv_test_cudev_generated_test_reduction.cu.o CMakeFiles/opencv_test_cudev.dir/./opencv_test_cudev_generated_test_pyramids.cu.o CMakeFiles/opencv_test_cudev.dir/./opencv_test_cudev_generated_test_cmp_op.cu.o CMakeFiles/opencv_test_cudev.dir/./opencv_test_cudev_generated_test_integral.cu.o CMakeFiles/opencv_test_cudev.dir/./opencv_test_cudev_generated_test_arithm_func.cu.o CMakeFiles/opencv_test_cudev.dir/./opencv_test_cudev_generated_test_arithm_op.cu.o CMakeFiles/opencv_test_cudev.dir/./opencv_test_cudev_generated_transpose.cu.o CMakeFiles/opencv_test_cudev.dir/./opencv_test_cudev_generated_test_lut.cu.o CMakeFiles/opencv_test_cudev.dir/./opencv_test_cudev_generated_test_color_cvt.cu.o CMakeFiles/opencv_test_cudev.dir/./opencv_test_cudev_generated_test_split_merge.cu.o CMakeFiles/opencv_test_cudev.dir/./opencv_test_cudev_generated_test_deriv.cu.o CMakeFiles/opencv_test_cudev.dir/./opencv_test_cudev_generated_test_bitwize_op.cu.o CMakeFiles/opencv_test_cudev.dir/./opencv_test_cudev_generated_test_cvt.cu.o CMakeFiles/opencv_test_cudev.dir/./opencv_test_cudev_generated_test_warp.cu.o -o ../../../bin/opencv_test_cudev -L/home/soft/cuda-7.0/lib64 -rdynamic -lcudart ../../../lib/libopencv_cudev.so.3.0.0 ../../../lib/libopencv_core.so.3.0.0 ../../../lib/libopencv_imgproc.so.3.0.0 ../../../lib/libopencv_imgcodecs.so.3.0.0 ../../../lib/libopencv_videoio.so.3.0.0 ../../../lib/libopencv_highgui.so.3.0.0 ../../../lib/libopencv_ts.a ../../../lib/libopencv_hal.a ../../../lib/libopencv_cudev.so.3.0.0 ../../../lib/libopencv_core.so.3.0.0 ../../../lib/libopencv_imgproc.so.3.0.0 ../../../lib/libopencv_imgcodecs.so.3.0.0 ../../../lib/libopencv_videoio.so.3.0.0 ../../../lib/libopencv_highgui.so.3.0.0 -ldl -lm -lpthread -lrt /home/user/OPENCV_SRC/ippicv_lnx/lib/intel64/libippicv.a /home/user/OPENCV_SRC/ippicv_lnx/lib/intel64/libippicv.a -lcudart -lnppc -lnppi -lnpps -lcufft -lcudart ../../../lib/libopencv_videoio.so.3.0.0 ../../../lib/libopencv_imgcodecs.so.3.0.0 ../../../lib/libopencv_imgproc.so.3.0.0 ../../../lib/libopencv_core.so.3.0.0 ../../../lib/libopencv_cudev.so.3.0.0 ../../../lib/libopencv_hal.a -ldl -lm -lpthread -lrt /home/user/OPENCV_SRC/ippicv_lnx/lib/intel64/libippicv.a /home/user/OPENCV_SRC/ippicv_lnx/lib/intel64/libippicv.a -lcudart -lnppc -lnppi -lnpps -lcufft -lcudart -lnppc -lnppi -lnpps -lcufft /usr/bin/ld: warning: libgphoto2.so.2, needed by ../../../lib/libopencv_videoio.so.3.0.0, may conflict with libgphoto2.so.6 /usr/bin/ld: warning: libgphoto2.so.2, needed by ../../../lib/libopencv_videoio.so.3.0.0, may conflict with libgphoto2.so.6 ../../../lib/libopencv_core.so.3.0.0: undefined reference to ippiTranspose_16s_C4IR' ../../../lib/libopencv_core.so.3.0.0: undefined reference to ippiTranspose_16u_C4IR'

i even tried to manually add path to ippicv_lnx/lib/intel64/libippicv.a via : -L/home/user/ippicv_lnx/lib/intel64/ -lippicv but the error remains same. I even tried with cmake: -DIPP_ROOT_DIR="/home/user/OPENCV_SRC/ippicv_lnx" -DIPP_INCLUDE_DIRS="/home/user/OPENCV_SRC/ippicv_lnx/include" -DIPP_LIBRARIES="/home/user/OPENCV_SRC/ippicv_lnx/lib/intel64/libippicv.a" -DIPPROOT="/home/user/OPENCV_SRC/ippicv_lnx" -DOPENCV_ICV_PATH="/home/user/OPENCV_SRC/ippicv_lnx"

also , the missing symbols seems to be present :

nm ippicv_lnx/lib/intel64/libippicv.a|grep ippiTranspose_16u_C4IR jmp_ippiTranspose_16u_C4IR_as.s.o: jmp_ippiTranspose_16u_C4IR.o: U icv_l9_ippiTranspose_16u_C4IR U icv_m7_ippiTranspose_16u_C4IR U icv_y8_ippiTranspose_16u_C4IR U icv_y8_ippiTranspose_16u_C4IR U icv_y8_ippiTranspose_16u_C4IR pitransp16uca_y8---ippiTranspose_16u_C4IR.o: 0000000000000000 T icv_y8_ippiTranspose_16u_C4IR U icv_m7_ippiTranspose_16u_C4IR U icv_m7_ippiTranspose_16u_C4IR pitransp16uca_m7---ippiTranspose_16u_C4IR.o: 0000000000000000 T icv_m7_ippiTranspose_16u_C4IR U icv_l9_ippiTranspose_16u_C4IR U icv_l9_ippiTranspose_16u_C4IR pitransp16uca_l9---ippiTranspose_16u_C4IR.o: 0000000000000000 T icv_l9_ippiTranspose_16u_C4IR

Any help/hint will be very useful.