Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
expipiplus1 opened this issue Nov 2, 2020 · 2 comments
Open

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

expipiplus1 opened this issue Nov 2, 2020 · 2 comments

Comments

@expipiplus1
Copy link
Contributor

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!

@madjestic
Copy link

Windows magic?

@adpextwindong
Copy link

adpextwindong commented Feb 22, 2022

I get the same issue. For future reference:

SDL\Raw\Enum_hsc_make.exe failed (exit code -1073741819)

In my case placing SDL2.dll in the same folder as my ghc binary fixed things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants