Updated README.md compile steps
All checks were successful
Deploy / deploy (push) Successful in 10m31s

This commit is contained in:
Chewico 2025-07-02 22:18:08 +02:00
parent db48644676
commit c4d9dd300b

View File

@ -16,44 +16,57 @@ You can check out Premake at:
### Clone the repo ### Clone the repo
```console ```bash
git clone https://git.frostdeer.com/Chewico/DeerEngine.git git clone --recursive https://git.frostdeer.com/Chewico/DeerEngine.git
cd Deer cd DeerEngine
``` ```
### Generating Project Files ### Generating Project Files
As we mentioned we need to generate the make files with premake, to do this you can install the premake bin or compile it as we will mention Install dependencies (if you haven't already):
```console ```bash
sudo apt-get update
sudo apt-get install uuid-dev make gcc sudo apt-get install uuid-dev make gcc
```
Build Premake from source:
```bash
cd vendor/premake-core cd vendor/premake-core
make -f Bootstrap.mak linux make -f Bootstrap.mak linux
cd ../.. cd ../..
``` ```
```console Generate Makefiles:
```bash
vendor/premake-core/bin/release/premake5 gmake vendor/premake-core/bin/release/premake5 gmake
``` ```
If you want to generate vscode workspace use If you want to generate a VSCode workspace, run:
```console ```bash
./vendor/premake-core/bin/release/premake5 vscode vendor/premake-core/bin/release/premake5 vscode
``` ```
### Compile ### Compile
Run Before compiling, ensure you have the necessary dependencies installed:
```console ```bash
sudo apt update sudo apt update
sudo apt install clang libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libgtk-3-dev make gcc gdb sudo apt install clang libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libgtk-3-dev gdb
sudo make ```
Then compile the project:
```bash
make
``` ```
### Run ### Run
```console ```bash
./bin/linux-x86_64/Debug/DeerStudio/DeerStudio ./bin/linux-x86_64/Debug/DeerStudio/DeerStudio
``` ```