Compiling OpenCV 2.4.3 on Ubuntu 12.10: libz.so error
Hi guys,
I'm compiling the opencv with this command line:
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON ..
After a little, I got this error:
[ 3%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matmul.cpp.o
make[2]: * No rule to make target /usr/lib/libz.so', needed by
lib/libopencv_core.so.2.4.3'. Stop.
make[1]: [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make: ** [all] Error 2
I'm using Ubuntu 64Bits with AMD processor.
Anyone could help?
Best!
Please provide output of your cmake command. It looks like problems with your system libz library. It looks like you have no permissions for it or it is placed in unexpected (not in /usr/lib) location.
HI Alexander,
You can check here the cmake output: https://gist.github.com/lalves/5326502