-
Notifications
You must be signed in to change notification settings - Fork 1
Build with QtCreator
Marcus Hudritsch edited this page Jul 1, 2024
·
5 revisions
- All C++ projects can also be built with the platform-independent IDE QtCreator from Qt. For Windows without Visual Studio download the MinGW version with the GNU toolchain. For Windows, we recommend to build and work with Visual Studio.
- Clone the SLProject GIT repository into a directory of your choice. Warning for Windows: Make sure that the path where you clone the project into is NOT longer than 256 characters.
- Install the latest CMake. You need at least CMake Version 3.3.
- Open the QtCreator IDE.
- Choose Open File or Project... and select the top-level CMakeLists.txt file in the SLProject root folder.
- Set build configurations: Uncheck all except the Debug and the Release configuration. Change the build directories into the SLProject folder. Press Configure Project:
- Parallel build: Open the Project Settings on the left toolbar. Expand the Build Steps. In the field Tool Arguments enter -j8. This guides the make process to build the project in parallel with 8 threads. Choose the app-demo as Target to build.
-
Start Application: Click on the green run button to start the selected application. You can select there the application and configuration to start as well:
- After closing the welcome dialogue you can open with the menu File > Load Demo Scenes many different scenes that demonstrate the features of SLProject.
-
Problem on MacOS-Arm64: If you get the error
Library not loaded: /opt/homebrew/opt/ffmpeg/lib/libavcodec.60.dylib
you have to additionally install FFMPEG. You best do this with brew. You then can install ffmpeg with:brew install ffmpeg
.