summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-10-01 21:39:19 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-10-01 21:39:19 +0300
commit22369664a28e05cd3d06964dc0e783e768c82dc1 (patch)
treea8545110305e3117a4893340592f337819e4d568
parent94cce13ab76ca040c7f103e61051ee977ef9086c (diff)
Cleanup
-rw-r--r--README.md30
1 files changed, 12 insertions, 18 deletions
diff --git a/README.md b/README.md
index d8195da3..a70d27bf 100644
--- a/README.md
+++ b/README.md
@@ -23,15 +23,11 @@ Prebuilt binaries for Windows, macOS and Linux can be found in [Releases][rel].
23 23
24On macOS you can install and upgrade via Homebrew: 24On macOS you can install and upgrade via Homebrew:
25 25
26``` 26 brew install --cask lagrange
27brew install --cask lagrange
28```
29 27
30On openSUSE Tumbleweed: 28On openSUSE Tumbleweed:
31 29
32``` 30 sudo zypper install lagrange
33sudo zypper install lagrange
34```
35 31
36## How to compile 32## How to compile
37 33
@@ -106,18 +102,16 @@ Windows builds require [MSYS2](https://www.msys2.org). In theory, [Clang](https:
106 102
107You should use a version of the SDL 2 library that is compiled for native Windows (i.e., the MSVC variant) instead of the version from MSYS2 or MinGW. You can download a copy of the SDL binaries from [libsdl.org](https://libsdl.org/). To make configuration easier in your MSYS2 environment, consider writing a custom sdl2.pc file so `pkg-config` can automatically find the correct version of SDL. Below is an example of what your sdl2.pc might look like: 103You should use a version of the SDL 2 library that is compiled for native Windows (i.e., the MSVC variant) instead of the version from MSYS2 or MinGW. You can download a copy of the SDL binaries from [libsdl.org](https://libsdl.org/). To make configuration easier in your MSYS2 environment, consider writing a custom sdl2.pc file so `pkg-config` can automatically find the correct version of SDL. Below is an example of what your sdl2.pc might look like:
108 104
109``` 105 prefix=/c/SDK/SDL2-2.0.12/
110prefix=/c/SDK/SDL2-2.0.12/ 106 arch=x64
111arch=x64 107 libdir=${prefix}/lib/${arch}/
112libdir=${prefix}/lib/${arch}/ 108 incdir=${prefix}/include/
113incdir=${prefix}/include/ 109
114 110 Name: sdl2
115Name: sdl2 111 Description: Simple DirectMedia Layer
116Description: Simple DirectMedia Layer 112 Version: 2.0.12-msvc
117Version: 2.0.12-msvc 113 Libs: ${libdir}/SDL2.dll -mwindows
118Libs: ${libdir}/SDL2.dll -mwindows 114 Cflags: -I${incdir}
119Cflags: -I${incdir}
120```
121 115
122The *-mwindows* option is particularly important as that specifies the target is a GUI application. Also note that you are linking directly against the Windows DLL — do not use any prebuilt .lib files if available, as those as specific to MSVC. 116The *-mwindows* option is particularly important as that specifies the target is a GUI application. Also note that you are linking directly against the Windows DLL — do not use any prebuilt .lib files if available, as those as specific to MSVC.
123 117