Skip to content

Why do the hsc generators require SDL2.dll? #222

Open
@expipiplus1

Description

@expipiplus1

I bumped into this with several versions of GHC using Cabal and Stack in my CI.

Enum_hsc_make.exe failed while builing SDL2 on Windows because it can't find a DLL.

...
Starting     sdl2-2.5.3.0 (lib)
Building     sdl2-2.5.3.0 (lib)

Failed to build sdl2-2.5.3.0.
Build log (
cabal.exe: Failed to build sdl2-2.5.3.0. See the build log above for details.
C:\Users\runneradmin\AppData\Roaming\cabal\logs\ghc-8.10.1\sdl2-2.5.3.0-d521d69f91f87fa520a492e550c7b38e1d878d56.log

):
Preprocessing library for sdl2-2.5.3.0..
running dist\build\SDL\Raw\Enum_hsc_make.exe failed (exit code -1073741515)
rsp file was: "dist\\build\\SDL\\Raw\\hsc4E94.rsp"
output file:"dist\\build\\SDL\\Raw\\Enum.hs"
command was: dist\build\SDL\Raw\Enum_hsc_make.exe  >dist\build\SDL\Raw\Enum.hs
error: 

-1073741515 is STATUS_DLL_NOT_FOUND and this was caused because SDL2.dll wasn't in PATH.

Solving this wasn't a big deal, but it is quite surprising that SDL2.dll is required at build time!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions