libopencv_reg.3.3.dylib

asked 2017-11-07 04:33:54 -0600

Santhosh1 gravatar image

I am trying to make a executable python file.

But the process is stopping with this error

copying /Users/name/.virtualenvs/test/lib/python3.6/site-packages/cv2.so -> build/exe.macosx-10.12-x86_64-3.6/lib/cv2.so
copying /Users/name/.virtualenvs/test/bin/../lib/libopencv_reg.3.3.dylib -> build/exe.macosx-10.12-x86_64-3.6/libopencv_reg.3.3.dylib
error: [Errno 2] No such file or directory: '/Users/name/.virtualenvs/test/bin/../lib/libopencv_reg.3.3.dylib'

Here is my stack overflow link

I am running using python virtual environment. I though entire OpenCV would be running but this file no found error is confusing me.

Can anyone let me know where I can find this file?

edit retag flag offensive close merge delete

Comments

you should build your cv2.so statically, so it won't depend on further opencv so's:

cmake -DBUILD_SHARED_LIBS=OFF
berak gravatar imageberak ( 2017-11-07 04:45:34 -0600 )edit

@berak What are the changes I would need to make? (Please don't tell, I have to reinstall opencv 😞) I installed OpenCV using this link

Santhosh1 gravatar imageSanthosh1 ( 2017-11-07 05:11:25 -0600 )edit

no idea about anything apple, sorry. (but yes, you'd have to rebuild it all from scratch)

berak gravatar imageberak ( 2017-11-07 05:29:00 -0600 )edit