How can I create a cross-platform Qt app which uses OpenCV?

asked 2013-09-02 20:20:35 -0600

prerna1 gravatar image

updated 2013-09-03 01:19:53 -0600

berak gravatar image

I have compiled the OpenCV library & places the dylibs into a folder and included the dylibs by writing LIBS += /myproject/...executablepath/opencv_lib/*.dylib in my project's .pro file

The above works if I have files in /usr/local/lib, however it does NOT work when these dylibs are not there in /usr/local/lib.

I want to create a Qt app which "bundles" OpenCV with it, such that the user does NOT need to install OpenCV himself before running the app. Now that I have already included the dylibs in my project, why should the libraries need to be there in /usr/local/lib also?

Please help!

edit retag flag offensive close merge delete

Comments

2

I guess you have build the opencv libraries as shared libraries. http://stackoverflow.com/questions/18222248/building-opencv-as-static-libraries

Moster gravatar imageMoster ( 2013-09-03 01:06:48 -0600 )edit

Moster, why not make it an answer ?

berak gravatar imageberak ( 2013-09-03 01:18:45 -0600 )edit

Since Im not really sure if its the actual reason.

Moster gravatar imageMoster ( 2013-09-03 03:33:03 -0600 )edit

Actually I think it is correct :)

StevenPuttemans gravatar imageStevenPuttemans ( 2013-09-03 09:40:22 -0600 )edit