diff options
-rw-r--r-- | README.md | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -11,7 +11,7 @@ What is needed: - Cabal for Windows - GHC for Windows - MingGW-W64 -- SDL2 development for MinGW +- SDL2 and SDL2_Image development for MinGW - pkg-config-lite for Windows - Wine on a Linux host (used Debian 11) - Patience and luck! @@ -46,21 +46,22 @@ Currently I'm using: - SDL2 2.26.3 - SDL2_Image 2.6.3 -**Important**: you need to copy SDL2.dll and SDL2_image.dll to your `system32` directory in WINE, usually: +**Important**: you need to copy SDL2.dll and SDL2_image.dll to your `system32` directory in Wine, usually: ``` ~/.wine/drive_c/windows/system32/ ``` -This is needed to compile sdl2 and sdl2-image. When you have your binary, you need to distribute those two DLLs with your .EXE. +This is needed to compile sdl2 and sdl2-image. When you have your binary, you need to distribute those two DLLs with your `exe`. ## Updating packages Run `bin/cabal-wine update` and Cabal should download the latest package list from hackage. -## Building your peoject +## Building your project -Get into workdir/your-project and run: - -`../../bin/cabal-wine build --builddir build` +Get into `workdir/your-project` and run: +``` +../../bin/cabal-wine build --builddir build +``` And it should work! @@ -68,7 +69,7 @@ And it should work! **Extra logging** -Pass `-v` option when running `cabal-wine` for exta information. +Pass `-v` option when running `cabal-wine` for extra output (useful with pkg-config issues). **Failed to compile SDL2_Image** |