Unsolved Qt deploy for Mac Os doesn't work
-
Can you please show me how to use macdeployqt?
-
@Aj501
hi
Read the tut. its very good at explaining.The actual use is just
macdeployqt <ApplicationName>.app
(if you are not using QML) -
Thank you! so I navigated to my build directory, which is:
build-NickBilliardsPrjQT-MacDesktop-Release
and then I ran the command: macdeployqt NickBilliards.app
but I got this error saying: zsh: command not found: macdeployqt
I noticed my macdeployqt is not in the same directory as my build directory. Should this be the problem? -
@Aj501
Hi
Just use the full path to it.
It does not have to be (is normally not) in the build directory. -
While I tried to find the path to macdeployqt using find / -iname macdeployqt, I only found it in Qt version 5.12 .5 and 5.13, which were the previous versions I used. I supposed the macdeployqt in the older version will not work for my newly release app.
My qt is now of version 5.14 and the project is in this newer version, but I can't find 5.14, hence I can't find the macdeployqt, in my Qt directory. Do you know why? -
Hi,
How did you install Qt ?
-
I installed it using usual steps. I started with version 5.12.5 and 5.13 and the app was built and deployed on these two version, but when I updated QC to version 5.14 and deployed the app again, it's not showing up in any directory except the built release version of the app. I don't know what else I can say about my installation of Qt as I followed the standard (normal) installation steps.
-
@SGaist Even I tried to cd in to the macdeployqt which resides in qt version 5.12.5 and ran the command "macdeployqt myapp.app", it still says this: "zsh: command not found: macdeployqt"
-
You are on a Unix system. To run an application from a specific folder either cd into the folder and call ./exec_name or use the full path to the executable file.
Please explain the method you used. On macOS, there are at least 3 different ways that can be called standard to install Qt.
-
@SGaist said in Qt deploy for Mac Os doesn't work:
To run an application from a specific folder either
I don't remember detail steps but I used the Qt online installation and used the suggested version of Qt for my Mac. Would it be easier now if I uninstall Qt and reinstall it? Do you have a favorite method of installing Qt?
-
The online installer is fine. The goal was to ensure that the version to check is the same for everybody.
Did you pass any parameter to macdeployqt ?