taokeron.blogg.se

Qt creator mac
Qt creator mac








qt creator mac
  1. #Qt creator mac how to#
  2. #Qt creator mac mac os x#
  3. #Qt creator mac code#

#Qt creator mac code#

If you have Xcode Tools 1.5 or higher installed, you may want to take advantage of "dead code stripping" to reduce the size of your binary even more. You probably want to link against the release libraries, and you can specify this when invoking qmake. Now run qmake to create a new makefile for the application, and do a clean build to create the statically linked executable: make clean First, we must go into the directory that contains the application: cd /path/to/Qt/examples/tools/plugandpaint

qt creator mac

Once Qt is built statically, the next step is to regenerate the makefile and rebuild the application. Linking the Application to the Static Version of Qt

qt creator mac

You can check the various options that are available by running configure -help. Remember that you will not be able to use plugins and you must build in all the image formats, SQL drivers, etc. Start by installing a static version of the Qt library. If you want to keep things simple by only having a few files to deploy, then you must build everything statically. A future version of this document may include more information for using Xcode in the deployment process. While it is possible to use Xcode for this, Xcode has changed enough between each version that it makes it difficult to document it perfectly for each version. We will only concern ourselves with command-line tools here.

#Qt creator mac how to#

Please refer to the X11 deployment documentation for information about how to deploy these "bundle-less" applications. This will tell qmake not to put the executable inside a bundle. You probably don't want to run it in a bundle: Add this to your application's.

#Qt creator mac mac os x#

More information about bundles is available on Apple's Developer Website.Ī Qt command line application on Mac OS X works similar to a command line application on Unix and Windows. This is specific to Mac OS X and beyond the scope of this document. As a programmer you can access bundle information in your own code. One primary advantage is that, since it is a single entity, it allows for drag-and-drop installation. The bundle provides many advantages to the user. A bundle for an application typcially contains the executable and all the resources it needs. A bundle is a directory structure that appears as a single entity when viewed in the Finder. On the Mac, a GUI application must be built and run from a bundle. We demonstrate the procedures in terms of deploying the Plug & Paint application that is provided in Qt's examples directory. This document describes how to create a bundle and how to make sure that the application will find the resources it needs at run-time. Beginning with Qt 4.5, a deployment tool is included that automates the prodecures described here.










Qt creator mac