fixed bugs on windows

This commit is contained in:
2024-08-10 00:51:34 +03:00
parent 2710e5fc9d
commit 1859b432df
6 changed files with 46 additions and 15 deletions

View File

@@ -17,6 +17,14 @@ git clone --recurse-submodules https://timerix.ddns.net:3322/Timerix/ougge.git
Location of the headers can be found by `pkg-config --cflags --libs sdl2`.
Mingw installs SDL2 headers to `/mingw64/include/SDL2`.
5. Install [mono](https://github.com/mono/mono).
**Windows:**
1. Install mono from official website
2. Copy `*.dll` files from `C:\Program Files\Mono\bin` to `dependencies/precompiled/`
3. Copy `config` from `C:\Program Files\Mono\etc\mono` to `dependencies/precompiled/mono-libs` and rename to `config.xml`
4. Copy `mscorlib.dll` from `C:\Program Files\Mono\lib\mono\4.5\` to `dependencies/precompiled/mono-libs`
**Linux:**
1. Download and extract [sources](https://download.mono-project.com/sources/mono/index.html)
```sh
mkdir mono
@@ -42,6 +50,7 @@ git clone --recurse-submodules https://timerix.ddns.net:3322/Timerix/ougge.git
cd ..
cbuild get_mono_files_from=mono/mono_prefix
```
5. Now you can delete `mono` directory and save 3 gigabytes of disk space :3
7. Compile the program
```sh
cbuild build_exec_dbg