Skip to content

Latest commit

 

History

History
68 lines (37 loc) · 1.37 KB

setup.md

File metadata and controls

68 lines (37 loc) · 1.37 KB

QML Application Template - Setup

###1. Downlaod and install prerequisites

  • Download and install Qt 5.5
  • Downlaod and install CMake

###2. Configure using CMake GUI

  • Start CMake and set the project source and binary directories:

  • Select Xcode or Unix Makefile

  • Press Configure (...and probably receive an error)

    This happens only if CMake is not able to locate the Qt installation

  • Fixing the above error: First type 'qt' in the search to filter values

  • Set the path to Qt5_DIR (.../Qt/Qt5.4/clang_64_lib/cmake/Qt5):

    Note that you have to use desktop builds when setting the Qt5 directory. Qt Libraries for Android and iOS are currently not working for this template.

  • Press Configure

  • Specify project settings as you want (all prefixed with TEMPLATE_)

  • Press Configure again

  • Press Generate

###3. Build and run

###3.1 Using Xcode

  • Open the generated .xcodeproj file with Xcode

  • Switch to the application target

  • Run the app

####3.2 Using Unix Makefile

  • Open terminal

  • Navigate to the project bin directory and use the following commands

     make clean
     make
     make install
     open BaseApp.app