Skip to content

Commit

Permalink
more details on windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
redthing1 committed Feb 25, 2022
1 parent 0688b5c commit 514f017
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ dub build

## build (windows (not recommended))

first, download an LDC2 `win-x64` release to get the native libraries we need.
first, download an LDC2 `win-x64` release to get the native libraries we need.
Use the `lib` directory of the archive as `WINLIB_BASE` and the `lib/mingw` directory as `WINLIB_MINGW`.

Then place `raylib.lib` and `WinMM.lib` in the `dray` package directory.
You can get raylib artifacts for dray windows [here](https://github.com/redthing1/raylib/actions/workflows/windows.yml).
You can get `WinMM.lib`, `MSVCRT.lib`, `OLDNAMES.lib` [here](https://github.com/redthing1/dray/releases/download/v4.0.0-r3/winlibs_extra.7z). You should place those in your `WINLIB_BASE` path.

```sh
WINLIB_BASE="/path/to/ldc2-1.28.1-windows-x64/ldc2-1.28.1-windows-x64/lib/" WINLIB_MINGW="/path/to/Downloads/ldc2-1.28.1-windows-x64/ldc2-1.28.1-windows-x64/lib/mingw" dub build --compiler ldc2 --arch=x86_64-windows-msvc
Expand Down

0 comments on commit 514f017

Please sign in to comment.