Cross platform 3D Engine-Editor made in C++/OpenGL/Qt.
To download this template, make sure you download the submodules as well :
$ git clone --recurse-submodules https://github.com/DaftMat/Daft-Engine.git
Note: For Qt5, use the link above to install it on windows or linux.
On linux using apt package manager :
$ sudo apt update
$ sudo apt install libomp-dev libgl1-mesa-dev libglu1-mesa-dev xorg-dev libxrandr-dev libxcb-randr0-dev libxinerama-dev libglm-dev libassimp-dev libeigen3-dev libglew-dev libglfw3-dev
On mac using homebrew :
$ brew update
$ brew install libomp glm eigen assimp qt glfw
On windows using vcpkg (make sure vcpkg is updated) :
$ vcpkg install glm:x64-windows eigen3:x64-windows assimp:x64-windows glfw3:x64-windows
$ vcpkg integrate install
Note: the command vcpkg integrate install will give you a path to the vcpkg toolchain, copy this path.
You can choose the OpenGL version you want to use by setting the variable GLAD_VERSION
to it (from gl33core
to gl46core
).
If you don't specify a version, it's on gl46core
by default.
$ mkdir build
$ cd build
$ cmake [-DGLAD_VERSION="glXYcore"] ..
$ make
$ mkdir build
$ cd build
$ cmake -DCMAKE_TOOLCHAIN_FILE="C:/vcpkg/scripts/buildsystems/vcpkg.cmake" [-DGLAD_VERSION="glXYcore"] -G "Visual Studio 16 2019" -A x64 ..
$ cmake --build .
Note: you can use the path you copied before, but make sure the format is the same as before.
Then you can go and run the project from the bin/Release
(or bin/Debug
) folder:
$ ./DaftEngineApp
For some reasons, Qt5 could be not found by cmake, which will output the following error:
Could not find a package configuration file provided by "Qt5" with any of
the following names:
Qt5Config.cmake
qt5-config.cmake
Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
to a directory containing one of the above files. If "Qt5" provides a
separate development package or SDK, be sure it has been installed.
The problem is solved by setting the cmake variable Qt5_DIR
to the installation directory of Qt5.
The cmake command will then look like this:
- On linux:
$ cmake -DQt5_DIR="/path/to/Qt/5.x.y/gcc_64/" ..
- On macos:
$ cmake -DCMAKE_PREFIX_PATH="/usr/local/otp/qt/lib/cmake" ..
- On windows:
$ set Qt5_DIR="C:\path\to\qt\5.x.y\msvc2019_64"
$ cmake -DCMAKE_TOOLCHAIN_FILE="C:/vcpkg/scripts/buildsystems/vcpkg.cmake" -G "Visual Studio 16 2019" -A x64 ..
Continuous Integration and automated code review is active on this project :
Application | Status |
---|---|
Travis | |
Appveyor | |
Codacy |