Menu

macOS compilation

Requirements

  • OS X 10.12 or above
  • Xcode 9 or above with command line tools
  • Qt 5, at least 5.9, 5.12 is recommended

Installing Qt

You can skip this section if you know how to do it.

If don't have Xcode, time to install it. It must be installed and runned at least one time before Qt instalation.

Qt instalation is pretty simple, don't worry if you know nothing about Qt and do its instalation first time.

Download Qt installer, run it and follow its instructions.
You can safely uncheck everything suggested execpt clang, macOS, OS X (name my vary with version).

Getting sources

There are 2 ways to get sources:
1. download archive from release files (stable code)
2. download snapshot/clone repository (latest code)

Also you will need in resources (skins, textures, etc.)

Compilation

  • extract all downloaded archives
  • move resources to one folder
  • open scripts/create_bundle.sh from sources folder in any text editor and change QT_ROOT, CLOCK_SRC_PATH, CLOCK_DATA_PATH variables corresponding to your system
  • open terminal and navigate to clock sources root (CLOCK_SRC_PATH value)
  • run build script: ./scripts/create_bundle.sh

Compilation will take about few minutes, and as result you will get Digital Clock 4.app and digital_clock_4-macosx.dmg alongside with sources folder.

Notes

if you building for macOS Sierra and newer, use Qt 5.11 or above.


Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.