How to add libraries to the program in MacOS?
-
wrote on 14 Sept 2019, 11:44 last edited by
Hi!
I built the program in MakOS, how to add the necessary libraries to the program? -
Hi,
What libraries ?
-
wrote on 14 Sept 2019, 16:55 last edited by
I do not know. On my computer program works, on someone else's not working.
-
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. -
wrote on 14 Sept 2019, 17:47 last edited by
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 ? -
wrote on 15 Sept 2019, 06:57 last edited by
I use SQLite directly. How to use macdeployqt ?
-
wrote on 15 Sept 2019, 17:49 last edited by
to include all lib dependencies in you app, ou must use macdeployqt
-
@mikeeeeee what about reading the documentation ?
-
wrote on 16 Sept 2019, 08:13 last edited by
@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.
-
@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 -
wrote on 16 Sept 2019, 10:47 last edited by
@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?
-
wrote on 16 Sept 2019, 10:57 last edited by
Maybe QtInstallerFramework can help?
-
@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?
@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
-
wrote on 17 Sept 2019, 16:23 last edited by
Its work
QMAKE_POST_LINK += "~/Qt/5.12.0/clang_64/bin/macdeployqt $${TARGET}.app $$escape_expand( \\n\\t )"
1/15