-
Notifications
You must be signed in to change notification settings - Fork 844
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
pkg-config doesn't see sdl2 on windows 10 #5481
Comments
Hi there! |
No, not really. |
Could you try? |
Trying to build something using sdl2 on Windows 10, I get, after a lot of other things the error message below, and the workaround above doesn't work for me because there's nothing in my mingw64\lib folder. I can't find a pkg-config on stackage, and by the looks of it, that's a posix thing I don't have on Windows 10.
|
I followed the instructions here on reddit which got sdl2 installed, but then my project was stuck on SDL2_ttf, so I tried |
This is weird because I remember half a year ago trying to find solution to the same issue as described here (didn't find this post then). I remember just downloading SDL2.dll or following reddit post metioned by @Andrew-Clow. |
I am closing this issue given the passage of time and because I recently built something on Windows with a dependency on SDL2 without difficulty: see haskell-game/dear-imgui.hs#198. |
General summary/comments (optional)
If i try to build a project with sdl2 dependency, stack complains about pkg-config.
I can workaround it with
stack exec -- env PKG_CONFIG_PATH="C:\Users\rtentser\AppData\Local\Programs\stack\x86_64-windows\msys2-20200903\mingw64\lib\pkgconfig" stack build
(it brings other issues, but not related, i guess).The problem is with pkg-config: it doesn't see sdl2 package.
Steps to reproduce
stack exec -- pacman -S mingw-w64-x86_64-SDL2
stack exec -- pkg-config --libs --cflags sdl2
.Expected
pkg-config should find sdl2.
Actual
Stack version
Method of installation
Chocolatey.
The text was updated successfully, but these errors were encountered: