Ask Your Question

puneet336's profile - activity

2020-03-22 09:15:39 -0500 received badge  Notable Question (source)
2018-12-24 16:58:38 -0500 received badge  Popular Question (source)
2016-06-15 02:01:27 -0500 asked a question 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 ... (more)

2016-06-13 06:15:50 -0500 asked a question cannot find -lopencv_imgcodecs

Hi, i have compiled opencv-2.4.13 using following options:

cmake -DCMAKE_INSTALL_PREFIX:PATH="/home/apps/LIBOPENCV/2/4.13/gnu" -DPNG_INCLUDE_DIR="${PNG_ROOT}/include" -DPNG_LIBRARY="${PNG_ROOT}/lib/libpng.a" -DZLIB_LIBRARY="${ZLIB_ROOT}/lib/libz.a" -DZLIB_INCLUDE_DIR="${ZLIB_ROOT}/include" -DJPEG_LIBRARY="${JPEG_ROOT}/lib/libjpeg.a" -DJPEG_INCLUDE_DIR="${JPEG_ROOT}/include" -DCMAKE_EXE_LINKER_FLAGS="${JPEG_ROOT}/lib/libjpeg.a ${PNG_ROOT}/lib/libpng.a ${ZLIB_ROOT}/lib/libz.a" -DPYTHON_EXECUTABLE="/home/soft/python-2.7.10/bin/python" -DPYTHON_INCLUDE_DIRS="/home/soft/python-2.7.10/include" -DPYTHON_LIBRARY="/home/soft/python-2.7.10/lib/libpython2.7.a" -DPYTHON_PACKAGES_PATH="/home/soft/python-2.7.10/lib/python2.7/site-packages" -DPYTHON_NUMPY_INCLUDE_DIR="/home/soft/python-2.7.10/lib/python2.7/site-packages/numpy/core/include/" -DCMAKE_SKIP_RPATH:BOOL="YES" -DJASPER_LIBRARIES="${JASPER_ROOT}/lib/libjasper.a" -DJASPER_INCLUDE_DIR="${JASPER_ROOT}/include" -DTIFF_LIBRARIES="${TIFF_ROOT}/lib/libtiff.a" -DTIFF_LIBRARY="${TIFF_ROOT}/lib/libtiff.a" -DTIFF_INCLUDE_DIR="${TIFF_ROOT}/include" .. 2>&1|tee cmake_logs.txt

but this make did not generate opencv_imgcodecs library needed by my application, i have:

cv2.so
libopencv_flann.so.2.4.13
libopencv_ml.so.2.4.13
libopencv_stitching.so.2.4.13 libopencv_calib3d.so
libopencv_gpu.so
libopencv_nonfree.so
libopencv_superres.so libopencv_calib3d.so.2.4
libopencv_gpu.so.2.4
libopencv_nonfree.so.2.4
libopencv_superres.so.2.4 libopencv_calib3d.so.2.4.13
libopencv_gpu.so.2.4.13
libopencv_nonfree.so.2.4.13
libopencv_superres.so.2.4.13 libopencv_contrib.so
libopencv_highgui.so
libopencv_objdetect.so
libopencv_ts.a libopencv_contrib.so.2.4
libopencv_highgui.so.2.4
libopencv_objdetect.so.2.4
libopencv_video.so libopencv_contrib.so.2.4.13
libopencv_highgui.so.2.4.13 libopencv_objdetect.so.2.4.13 libopencv_videostab.so libopencv_core.so
libopencv_imgproc.so
libopencv_ocl.so
libopencv_videostab.so.2.4 libopencv_core.so.2.4
libopencv_imgproc.so.2.4
libopencv_ocl.so.2.4
libopencv_videostab.so.2.4.13 libopencv_core.so.2.4.13
libopencv_imgproc.so.2.4.13 libopencv_ocl.so.2.4.13
libopencv_video.so.2.4 libopencv_features2d.so
libopencv_legacy.so
libopencv_photo.so
libopencv_video.so.2.4.13 libopencv_features2d.so.2.4
libopencv_legacy.so.2.4
libopencv_photo.so.2.4
pkgconfig libopencv_features2d.so.2.4.13 libopencv_legacy.so.2.4.13
libopencv_photo.so.2.4.13
python2.7 libopencv_flann.so
libopencv_ml.so
libopencv_stitching.so libopencv_flann.so.2.4
libopencv_ml.so.2.4
libopencv_stitching.so.2.4

am i missing some options here ? or i need to upgrade the version?

Any help/hint will be very useful.

2015-10-14 03:25:30 -0500 received badge  Editor (source)
2015-10-14 03:22:32 -0500 asked a question error compiling opencv from source - grfmt_jpeg.cpp invalid pointer conversion error

Hi , I am trying to compile opencv from source (github) i was able to configure successfully

but while making the opencv, i am getting :

icpc -DCVAPI_EXPORTS -DHAVE_WEBP -DIMGCODECS_EXPORTS -D__OPENCV_BUILD=1 -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -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 -fvisibility-inlines-hidden -Wno-deprecated-declarations -O3 -DNDEBUG -DNDEBUG -fPIC -I/home/puneet/Downloads/caffe/caffedeps/opencv/3rdparty/libjasper -I/home/puneet/Downloads/caffe/caffedeps/opencv/build/3rdparty/libtiff -I/home/puneet/Downloads/caffe/caffedeps/opencv/3rdparty/libtiff -I/home/puneet/Downloads/caffe/caffedeps/opencv/3rdparty/libwebp -I/home/puneet/Downloads/caffe/caffedeps/opencv/build -isystem /opt/onama/Onama_Installed/Application_Dependencies/include -isystem /home/puneet/Downloads/caffe/caffedeps/opencv/3rdparty/openexr/Half -isystem /home/puneet/Downloads/caffe/caffedeps/opencv/3rdparty/openexr/Iex -isystem /home/puneet/Downloads/caffe/caffedeps/opencv/3rdparty/openexr/IlmThread -isystem /home/puneet/Downloads/caffe/caffedeps/opencv/3rdparty/openexr/Imath -isystem /home/puneet/Downloads/caffe/caffedeps/opencv/3rdparty/openexr/IlmImf -I/home/puneet/Downloads/caffe/caffedeps/opencv/modules/imgcodecs/include -I/home/puneet/Downloads/caffe/caffedeps/opencv/modules/imgcodecs/src -I/home/puneet/Downloads/caffe/caffedeps/opencv/build/modules/imgcodecs -I/home/puneet/Downloads/caffe/caffedeps/opencv/modules/cudev/include -I/home/puneet/Downloads/caffe/caffedeps/opencv/modules/hal/include -I/home/puneet/Downloads/caffe/caffedeps/opencv/modules/core/include -I/home/puneet/Downloads/caffe/caffedeps/opencv/modules/imgproc/include -I/home/puneet/Downloads/caffe/caffedeps/opencv/modules/ts/include -I/home/puneet/Downloads/caffe/caffedeps/opencv/modules/videoio/include -I/home/puneet/Downloads/caffe/caffedeps/opencv/modules/highgui/include -I/home/puneet/Downloads/caffe/caffedeps/opencv/modules/imgcodecs/test -I/home/puneet/Downloads/caffe/caffedeps/opencv/modules/imgcodecs/perf -include "/home/puneet/Downloads/caffe/caffedeps/opencv/build/modules/imgcodecs/precomp.hpp" -Winvalid-pch -o CMakeFiles/opencv_imgcodecs.dir/src/grfmt_jpeg.cpp.o -c /home/puneet/Downloads/caffe/caffedeps/opencv/modules/imgcodecs/src/grfmt_jpeg.cpp icpc: command line warning #10006: ignoring unknown option '-fdiagnostics-show-option' icpc: command line warning #10120: overriding '-msse' with '-msse3' icpc: command line warning #10159: invalid argument for option '-m' icpc: command line warning #10159: invalid argument for option '-m' icpc: command line warning #10159: invalid argument for option '-m' icpc: command line warning

10006: ignoring unknown option '-Wno-deprecated-declarations' icpc:

command line warning #10148: option '-mno-avx' not supported In file included from /home/puneet/Downloads/caffe/caffedeps/opencv/modules/core/include/opencv2/core.hpp(3106), from /home/puneet/Downloads/caffe/caffedeps/opencv/modules/imgcodecs/include/opencv2/imgcodecs.hpp(46), from /home/puneet/Downloads/caffe/caffedeps/opencv/build/modules/imgcodecs/precomp.hpp(45), from /home/puneet/Downloads/caffe/caffedeps/opencv/modules/imgcodecs/src/grfmt_jpeg.cpp(0): /home/puneet/Downloads/caffe/caffedeps/opencv/modules/core/include/opencv2/core/operations.hpp(439): warning #1418: external function definition with no prior declaration
partition( const std::vector<_Tp>& _vec, std::vector<int>& labels, ^

/home/puneet/Downloads/caffe/caffedeps/opencv/modules/imgcodecs/src/grfmt_jpeg.cpp(150): error: a value of type "void ...

(more)