-
Notifications
You must be signed in to change notification settings - Fork 23
Build with QtCreator
- 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.
- You need a C++ 11 ready compiler. The latest versions of GNU gcc or LLVM clang are ok.
- You can download the Qt Creator IDE. For Windows download the MinGW version with the GNU toolchain.
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
-
Under Linux:
-
Ubuntu:
- Install the necessary packages:
sudo apt-get install git qtcreator libxcursor-dev libxrandr-dev libxi-dev libxinerama-dev libpng-dev libudev-dev
- Clone the GIT repository into a directory of your choice:
git clone --recursive https://github.com/cpvrlab/SLProject.git
- Start the Qt Creator and open the SLProject.pro file with the menu File > Open File or Project
- If you want to speed up the compilation, you can either:
- Add
MAKEFLAGS=-j<NumberOfProcessors-1>
to the project's build environment - Add
export MAKEFLAGS=$(($(nproc)-1))
to~/.profile
or the like and restart Qt creator with this setting (you'll have to restart your window manager in order for the change to take effect). - Note: It is recommended to use one core less than available for compilation as maxing out your CPU can cause freezes on some systems.
- Add
- Install the necessary packages:
-
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.