Errors on compile Ubuntu 16.04

asked 2017-03-05 17:06:53 -0600

Try to install OpenCV 3.2.0 on ubuntu 16.04 Follow instructions in //docs.opencv.org/2.4/doc/tutorials/introduction/linux_install/linux_install.html and in //help.ubuntu.com/community/OpenCV

All dependencies were installed in the latest version, but whe using make got the following error:

[ 12%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/opencl_kernels_core.cpp.o [ 12%] Linking CXX shared library ../../lib/libopencv_core.so /home/jorge/anaconda2/lib/libz.so: error adding symbols: File in wrong format collect2: error: ld returned 1 exit status modules/core/CMakeFiles/opencv_core.dir/build.make:1425: recipe for target 'lib/libopencv_core.so.3.2.0' failed make[2]: * [lib/libopencv_core.so.3.2.0] Error 1 CMakeFiles/Makefile2:1140: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/all' failed make[1]: [modules/core/CMakeFiles/opencv_core.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: ** [all] Error 2

Some help will be appreciated.

edit retag flag offensive close merge delete

Comments

try to build and use the 3rdparty zlib, that comes with opencv, not the one from anaconda (why on earth is it even trying to use that ?)

cmake -DBUILD_ZLIB=ON -DWITH_ZLIB=ON
berak gravatar imageberak ( 2017-03-06 01:21:13 -0600 )edit

ohh, and please NEVER AGAIN look at the shoddy outdated ubuntu page !

berak gravatar imageberak ( 2017-03-06 01:22:47 -0600 )edit

so what should be a better guide to install.

jorgher gravatar imagejorgher ( 2017-03-07 07:34:13 -0600 )edit