Solved How to add libraries to the program in MacOS?
-
You know that this is a bit light on information ?
First thing, you should know what librairies you are using and deploying.
Then, what makes the computer of your user different from yours ?
Also, when an application crashes on macOS a report is generated. Ask your user to send you that report. -
But I sent the assembled application to someone else's computer. Computers differ only in that my is QT. The program works with SQLite.
-
What do you mean by assembled ?
Did you use macdeployqt before sending the application ?
Are you using SQLite directly or are you using the QtSql module ? -
I use SQLite directly. How to use macdeployqt ?
-
to include all lib dependencies in you app, ou must use macdeployqt
-
@mikeeeeee what about reading the documentation ?
-
@sgaist said in How to add libraries to the program in MacOS?:
@mikeeeeee what about reading the documentation ?
But in this documentation there is no instruction how to collect libraries in a folder by the program.
-
@mikeeeeee the linked page can be a bit overwhelming
take a look at the section specific to to macdeploymenttool:
https://doc.qt.io/qt-5/macos-deployment.html#the-mac-deployment-tool -
@j-hilk said in How to add libraries to the program in MacOS?:
the linked page can be a bit overwhelming
take a look at the section specific to to macdeploymenttool:I didn't understand. I very recently got acquainted with Makos. How do I copy the required libraries to the program folder? Are there examples?
-
Maybe QtInstallerFramework can help?
-
@mikeeeeee said in How to add libraries to the program in MacOS?:
@j-hilk said in How to add libraries to the program in MacOS?:
the linked page can be a bit overwhelming
take a look at the section specific to to macdeploymenttool:I didn't understand. I very recently got acquainted with Makos. How do I copy the required libraries to the program folder? Are there examples?
the macdeployment tool does it for you, that's the point, and the docu section has an example on how to call it
-
Its work
QMAKE_POST_LINK += "~/Qt/5.12.0/clang_64/bin/macdeployqt $${TARGET}.app $$escape_expand( \\n\\t )"