diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-01 21:39:19 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-01 21:39:19 +0300 |
commit | 22369664a28e05cd3d06964dc0e783e768c82dc1 (patch) | |
tree | a8545110305e3117a4893340592f337819e4d568 | |
parent | 94cce13ab76ca040c7f103e61051ee977ef9086c (diff) |
Cleanup
-rw-r--r-- | README.md | 30 |
1 files changed, 12 insertions, 18 deletions
@@ -23,15 +23,11 @@ Prebuilt binaries for Windows, macOS and Linux can be found in [Releases][rel]. | |||
23 | 23 | ||
24 | On macOS you can install and upgrade via Homebrew: | 24 | On macOS you can install and upgrade via Homebrew: |
25 | 25 | ||
26 | ``` | 26 | brew install --cask lagrange |
27 | brew install --cask lagrange | ||
28 | ``` | ||
29 | 27 | ||
30 | On openSUSE Tumbleweed: | 28 | On openSUSE Tumbleweed: |
31 | 29 | ||
32 | ``` | 30 | sudo zypper install lagrange |
33 | sudo 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 | ||
107 | You 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: | 103 | You 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/ |
110 | prefix=/c/SDK/SDL2-2.0.12/ | 106 | arch=x64 |
111 | arch=x64 | 107 | libdir=${prefix}/lib/${arch}/ |
112 | libdir=${prefix}/lib/${arch}/ | 108 | incdir=${prefix}/include/ |
113 | incdir=${prefix}/include/ | 109 | |
114 | 110 | Name: sdl2 | |
115 | Name: sdl2 | 111 | Description: Simple DirectMedia Layer |
116 | Description: Simple DirectMedia Layer | 112 | Version: 2.0.12-msvc |
117 | Version: 2.0.12-msvc | 113 | Libs: ${libdir}/SDL2.dll -mwindows |
118 | Libs: ${libdir}/SDL2.dll -mwindows | 114 | Cflags: -I${incdir} |
119 | Cflags: -I${incdir} | ||
120 | ``` | ||
121 | 115 | ||
122 | The *-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. | 116 | The *-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 | ||