Skip to content

Build with QtCreator

Marcus Hudritsch edited this page Feb 17, 2017 · 32 revisions
  • All C++ projects can also be built with the free and platform independent IDE from Qt.
  • Make sure that you have defined the QTDIR environment variable.
  • Make sure that you add the QTDIR/bin folder to the path environment variable.
  • You need a C++ 11 ready compiler. The latest versions of GCC or LLVM clang are ok.
  • You can download the Qt Creator IDE. For Windows without Visual Studio download the MinGW version with the GNU toolchain. For Windows we recommend to build and work with Visual Studio.

Build SLProject for Qt

  • Under Windows:

  • Clone the GIT repository into a directory of your choice

  • Start the Qt Creator and open the SLProject.pro file with the menu File > Open File or Project.

  • We recommend the Microsoft Platform tools with the VisualStudio compiler. MinGW compiles very slow and is not recommended.

  • Under Mac OSX:

  • Clone the GIT repository into a directory of your choice

  • Start the Qt Creator and open the SLProject.pro file with the menu File > Open File or Project

  • Choose Desktop Qt 5.x for clang 64bit build environment and press Configure

  • Build with the menu command Build > Build all

  • Ignore the errors due to the OpenCV dylibs.

  • If the error occurs because of a missing library libwebp.dylib you have to install the Google libwebp library. You do this best with Mac-Ports.

  • Under Linux:

  • See wiki on Setup Ubuntu for SLProject

  • Click in the right bar on Project and deselect the Shadow Build option.

  • In the Build Step Details of the project dialogue deselect the QML Debugging option.

  • Click on SLProject in the project tree and choose Rebuild.

  • Click the green run arrow to start the selected application.

  • Above the green run arrow you can choose another startup application.

Clone this wiki locally