Getting QMake to create the correct .app file

I have a big C ++ project including:

  • 4 applications
  • 50+ libraries
  • 20+ third-party libraries

The project uses QMake (part of Trolltech Qt) to create a production version on Linux, but I play when building on MacOS.

I can build on MacOS using QMake, just fine, but I'm having trouble creating the final .app. He needs to collect all third-party structures and dynamic libraries, all dynamic libraries of the project and make sure that the application finds them.

I read online about using install_name_tool, but wondered if there was a way to automate it.

(Maybe the answer is to use Xcode, see the corresponding question, but it would have had problems building uic and moc)

thank

+3
3

, :

deployqt

, !

+3

Last.fm, DeployQt, , . perl script, Makefile, .app / .dmg.

: http://www.methylblue.com/detritus/QMake.dmg/

, :

 macx*:!macx-xcode:release {
     system( QT=\'$$QT\' QMAKE_LIBDIR_QT=\'$$QMAKE_LIBDIR_QT\' $$ROOT_DIR/common/dist/mac/Makefile.dmg.pl $$DESTDIR $$VERSION $$LIBS > Makefile.dmg )
     QMAKE_EXTRA_INCLUDES += Makefile.dmg   
}

, , , - , .

, , , , , , . .

+2

, Qt OS X. .

0

Source: https://habr.com/ru/post/1696532/


All Articles