https://github.com/viewizard/astromenace-windows-prebuilt-dependencies
https://github.com/viewizard/astromenace-windows-prebuilt-dependencies
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/viewizard/astromenace-windows-prebuilt-dependencies
- Owner: viewizard
- Created: 2020-10-25T14:47:41.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-11-22T20:05:11.000Z (over 3 years ago)
- Last Synced: 2025-01-26T11:43:01.684Z (about 1 year ago)
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Download prebuilt dependencies for MinGW 32bit build: [prebuilt_dep_mingw_32bit.zip](https://github.com/viewizard/astromenace-windows-prebuilt-dependencies/releases/download/latest/prebuilt_dep_mingw_32bit.zip)
### Download prebuilt dependencies for MinGW 64bit build: [prebuilt_dep_mingw_64bit.zip](https://github.com/viewizard/astromenace-windows-prebuilt-dependencies/releases/download/latest/prebuilt_dep_mingw_64bit.zip)
Based on lib's sources and binary packages available for download from `Releases` page.
#### OpenAL (bin)
https://openal-soft.org/#download
Note, by default openal-soft release `libOpenAL32.dll.a` and `soft_oal.dll` instead of `OpenAL32.dll`, make sure you rename `soft_oal.dll` into `OpenAL32.dll` (for both, 32bit and 64bit).
#### SDL2 (bin)
https://github.com/libsdl-org/SDL/releases/latest
#### libogg and libvorbis (sources)
https://xiph.org/downloads/
#### freealut (sources)
https://github.com/vancegroup/freealut
#### freetype (sources)
https://sourceforge.net/projects/freetype/files/
### Build
`patches_for_msys2_mingw_build` contain patches, that were used for libs build. Note, I used absolute paths from my PC, make sure you correct them.
Build commands (MSYS2 + MinGW 32bit/64bit) for freealut, libogg and libvorbis:
```
$ mkdir build
$ cd build
$ cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX=$PWD/../bin -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=true
$ cmake --build . --target install
```
Build commands (MSYS2 + MinGW 32bit/64bit) for freetype:
```
$ mkdir build
$ cd build
$ cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX=$PWD/../bin -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=true \
-DCMAKE_DISABLE_FIND_PACKAGE_ZLIB=TRUE \
-DCMAKE_DISABLE_FIND_PACKAGE_BZip2=TRUE \
-DCMAKE_DISABLE_FIND_PACKAGE_PNG=TRUE \
-DCMAKE_DISABLE_FIND_PACKAGE_HarfBuzz=TRUE \
-DCMAKE_DISABLE_FIND_PACKAGE_BrotliDec=TRUE
$ cmake --build . --target install
```