Answer the question
In order to leave comments, you need to log in
How to do Static Build mac os c++ on qt creator?
There is a code for a console application, you need to compile it so that it works on other devices without qt.
Answer the question
In order to leave comments, you need to log in
You need to recompile qt itself and set the appropriate option (I'm talking about static build)
On macOS, you don't have to do a static build.
You just need to call Qt/clang_64/bin/macdeployqt with your application's app path parameter. It will copy all the dependencies there.
Since applications on macOS are distributed as an *.app folder, it doesn't matter how many files are inside.
And if you still need one binary, then you will have to compile Qt from sources with the -static key
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question