Robert Massaioli
Robert Massaioli

Reputation: 13497

Installing Haskell cairo on Windows

I am trying to install cairo on Windows XP and this is the command that I am trying:

cabal install cairo --extra-include-dirs="C:\cygwin\usr\include" --extra-lib-dirs="C:\cygwin\lib" --extra-include-dirs="C:\cygwin\usr\include\cairo"

And the full output that I get can be seen at this pastie but the real error is this:

Registering cairo-0.12.0...
setup.exe: cairo-0.12.0: include-dirs: /usr/include/cairo doesn't exist or
isn't a directory (use --force to override)
cairo-0.12.0: include-dirs: /usr/include/pixman-1 doesn't exist or isn't a
directory (use --force to override)
cairo-0.12.0: include-dirs: /usr/include/freetype2 doesn't exist or isn't a
directory (use --force to override)
cairo-0.12.0: include-dirs: /usr/include/libpng12 doesn't exist or isn't a
directory (use --force to override)
cabal: Error: some packages failed to install:
cairo-0.12.0 failed during the building phase. The exception was:
ExitFailure 1

I know that those directories do not exist but I cannot figure out for the life of me how to get it to look at the right directories. Does anybody know how I can get this install to work? Thanks for any and all help.

Upvotes: 3

Views: 803

Answers (1)

ephemient
ephemient

Reputation: 205034

The default distribution of GHC targets native (well, mingw) executables. These cannot be mixed with Cygwin libraries.

You'll have to use a native (non-Cygwin) installation of Cairo.

Upvotes: 2

Related Questions