Wiki

Clone wiki

scl-manips-v2 / configure / QtCreator

Installation

  1. Download Qt5 and Qt Creator from the Qt website. Qt5 download contains Qt Creator by default.
  2. Set the installation folder to Documents/installed/Qt or elsewhere. Note, if you install to a root folder in Ubuntu 14.04, then Qt will not work properly out of the box. It is recommended you install to Documents or another non-root folder.

Setup CMake Project

  1. Open Qt Creator, and navigate to the edit pane in left-side menu.
  2. Drag and drop the CMakeLists.txt file into the Qt Creator projects pane. A popup window will prompt for a build directory. Use my-project/qt-build/ , or choose your own. Click the run cmake button. This will run cmake and generate the make file.
  3. Build the project. You can either
    • Build from within Qt. Click the build button, shown as a hammer in the bottom left.
    • Run make release from terminal in the project directory
  4. Run the executable. In terminal navigate to the project directory and execute.
    1. cd /Documents/my-path-to-scl-tutorials/
    2. ./my-project-name
  5. If you add additional files, you will need to rerun CMake. In Qt Creator, right click the project in the left hand navigation pane, and click run cmake in the popup menu.

Updated