Skip to content
Philip Lee edited this page Mar 14, 2015 · 1 revision

Prerequisites

  1. You have Qt installed on your system (if you build it yourself, please make sure to use the -universal flag when building, and build the dynamic library version, not the static version)
  2. You can successfully build and run Brewtarget on your mac
  3. You have an existing, working mac bundle of Brewtarget (just download the previous mac brewtarget app and you'll get a working bundle)

Basic Steps

  1. Build Brewtarget
  2. Copy the Brewtarget executable into the bundle (goes into Contents>MacOS in the package, replace what's in there already). To see the bundle contents, ctrl-click on the Brewtarget bundle and and choose "Show Package Contents"
  3. In terminal, navigate to the directory containing the Brewtarget bundle.
  4. Run macdeployqt %.app where % is the name of the brewtarget bundle (e.g. brewtarget-1.2.4.app)

Here's where it may not work all the way. macdeployqt is a command-line tool that comes with the full QT package (or is built if you build QT yourself). It is supposed to copy the frameworks (basically a mac equivalent of .dll's) into the proper folder in the bundle, which is Contents>Frameworks. However, if it is unable to copy the frameworks you need, it will list which ones were unsuccessful, and their locations. You should view the list of failures and manually copy them into the Frameworks folder in the bundle.

References

http://doc.qt.nokia.com/latest/deployment-mac.html