S
S
SatanistArtem2018-03-19 10:16:56
C++ / C#
SatanistArtem, 2018-03-19 10:16:56

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

2 answer(s)
P
Profi_GMan, 2018-03-19
@Profi_GMan

You need to recompile qt itself and set the appropriate option (I'm talking about static build)

I
Ighor July, 2018-03-19
@IGHOR

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 question

Ask a Question

731 491 924 answers to any question