VoxelEngine/README.md
Che10VeK 30ad8385c9
Added cmake support (#11)
* Update README.md

* added submodules

* moved submodules to release tag

* fix include for fixed width integer

* added cmake support and build instruction

* Update README.md

* fix cmake links

* upd CMakeLists.txt
2023-08-02 05:44:09 +03:00

1.2 KiB

Run in windows with compiled executable file:

EXE for windows
MinGW libraries (include & lib) + glew32.dll

Run in linux:

$ git clone https://github.com/MihailRis/VoxelEngine-Cpp.git

$ cd VoxelEngine-Cpp/Debug

$ make

$ ./voxel_engine

Build with CMake

git clone --recursive https://github.com/MihailRis/VoxelEngine-Cpp.git
cd VoxelEngine-Cpp
mkdir build
cd build
cmake ../
cmake --build .

Instal libs:

Debian-based distro:

$ sudo apt install libglfw3-dev libglfw3 libglew-dev libglm-dev libpng-dev libopenal-dev

RHEL-based distro:

$ sudo dnf install glfw-devel glfw glew-devel glm-devel libpng-devel openal-devel

Arch-based distro:

If you use X11 $ sudo pacman -S glfw-x11 glew glm libpng openal

If you use Wayland $ sudo pacman -S glfw-wayland glew glm libpng openal

Note for MinGW compiling:

To fix problem with #include <mingw.thread.h> get headers mingw.thread.h and mingw.invoke.h from: https://github.com/meganz/mingw-std-threads