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

Windows: pkg-config reports missing x11 #52

Closed
Mikolaj opened this issue Sep 4, 2014 · 2 comments
Closed

Windows: pkg-config reports missing x11 #52

Mikolaj opened this issue Sep 4, 2014 · 2 comments

Comments

@Mikolaj
Copy link

Mikolaj commented Sep 4, 2014

When compiling the following on Vista or on Wine (details for Wine at http://www.haskell.org/haskellwiki/GHC_under_Wine#Code_that_uses_gtk2hs)

cabal install LambdaHack-0.4.99.0

cabal reports

setup-Cabal-1.18.1.3-i386-windows-ghc-7.8.3.exe: The pkg-config package x11 is required but it could not be found

The following workaround works on both Vista and Wine (in the latter case, the binary, obtained after a few more workarounds, is confirmed to run correctly; for Vista, I've lost patience).

cp ~/.wine/drive_c/users/mikolaj/gtk/lib/pkgconfig/fontconfig.pc ~/.wine/drive_c/users/mikolaj/gtk/lib/pkgconfig/x11.pc

I'm only guessing it's a gtk2hs bug, and not GHC's nor cabal's.

@Mikolaj Mikolaj changed the title Windows: pkg-config reports missin x11 Windows: pkg-config reports missing x11 Sep 4, 2014
@hamishmack
Copy link
Contributor

Do you know which of the gtk2hs packages it was installing at the time? Gtk2hs runs pkg-config to get the C flags and linker flags to use (it looks up the packages that are in the pkgconfig-depends in the cabal file). I suspect it is looking for the flags for gtk+-3.0 and that there might be a dependancy (perhaps indirectly) in gtk+-3.0.pc on x11.pc.

What happens if you just run...

pkg-config --cflags gtk+-3.0

@Mikolaj
Copy link
Author

Mikolaj commented Oct 13, 2014

Ugh, it's actually all my fault. I have

pkgconfig-depends: gtk+-2.0, x11

in my .cabal file, copied from somewhere on the net. Gtk2hs alone installs fine, just tried.
Sorry for the noise and thank you. Closing.

@Mikolaj Mikolaj closed this as completed Oct 13, 2014
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

2 participants