Adding 3rd party libraries for deployment
-
What exact error do you get with OpenCV ?
You can crank up the verbose level to get more information about what exactly is going on.
-
@Arqam
you may want to take a look at macdylibbundler
I am not very experienced with MacOSX development. Maybe @SGaist can help here?@raven-worx said in Adding 3rd party libraries for deployment:
macdylibbundler
We have to manually copy the required libraries to our .app folder right.
Apart from copying do we need to do anything else? -
@Arqam
you may want to take a look at macdylibbundler
I am not very experienced with MacOSX development. Maybe @SGaist can help here?@raven-worx What command should I use to get all the dependecies of all the external libraries for macdylibbundler. As the read me didn't tell what to use.
-
@raven-worx What command should I use to get all the dependecies of all the external libraries for macdylibbundler. As the read me didn't tell what to use.
@Arqam said in Adding 3rd party libraries for deployment:
As the read me didn't tell what to use.
Really? Not even on the very bottom of the page?!
% dylibbundler -od -b -x ./HelloWorld.app/Contents/MacOS/helloworld
-d ./HelloWorld.app/Contents/libs-ppc/ -p @executable_path/../libs-ppc/% dylibbundler -od -b -x ./HelloWorld.app/Contents/MacOS/helloworld
-d ./HelloWorld.app/Contents/libs-intel/ -p @executable_path/../libs-intel/ -
If your dependencies are built/installed properly, there's nothing special to do because macdeployqt should be able to locate the files based on the information within your application binary since it uses macOS tools to do its magic.
-
If your dependencies are built/installed properly, there's nothing special to do because macdeployqt should be able to locate the files based on the information within your application binary since it uses macOS tools to do its magic.
-
If your dependencies are built/installed properly, there's nothing special to do because macdeployqt should be able to locate the files based on the information within your application binary since it uses macOS tools to do its magic.
@SGaist I tried running in a different system, there when I saw the QT frameworks were proper inside the Content/Framework folder but the opencv libraries that I copied in the Framework folder were not proper. And the dmg app was not running.
What should I do apart from copying the library in the Framework folder? -
Did you take a look at the macOS deployment guide ?
-
Did you take a look at the macOS deployment guide ?
@SGaist said in Adding 3rd party libraries for deployment:
macOS deployment guide
Yeah I did look into that. My project which is not using any external library works fine, but this one which is using openCV is not working. I have uploaded the build directory folder, can you please have a look : https://github.com/torrtuga/QTBuildApp
-
How did you install OpenCV in the first place ?
-
By the way, you copied the symbolic link in your bundle not the actual libraries.
-
How did the OpenCV links get into the application bundle ?