Ask Your Question
1

Compiling OpenCV 2.4.3 on Ubuntu 12.10: libz.so error

asked 2013-04-02 11:24:20 -0600

Thor gravatar image

updated 2013-04-02 12:00:51 -0600

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 bylib/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!

edit retag flag offensive close merge delete

Comments

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.

Alexander Smorkalov gravatar imageAlexander Smorkalov ( 2013-04-03 01:03:36 -0600 )edit

HI Alexander,

You can check here the cmake output: https://gist.github.com/lalves/5326502

Thor gravatar imageThor ( 2013-04-06 10:36:46 -0600 )edit

1 answer

Sort by » oldest newest most voted
1

answered 2013-04-06 13:30:57 -0600

Thor gravatar image

I don't know why, ubuntu 12.10 has the /usr/lib files broken (libz.so for example) I deleted the symbolic link and did it again pointing to the correct file path and voilá!

Thanks to Alexander to give me the clue to solve this!

edit flag offensive delete link more

Comments

Where did you delete the symbolic link from? Where do we add the correct path?

WiseDreamer gravatar imageWiseDreamer ( 2017-07-02 09:55:46 -0600 )edit

@WiseDreamer this post is too old if you have any problem please ask a question

LBerger gravatar imageLBerger ( 2017-07-02 10:36:25 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2013-04-02 11:24:20 -0600

Seen: 1,887 times

Last updated: Apr 06 '13