
Hi, I cannot subscribe to libraries maillist. So I forward this here.
I cannot install gtk2hs-cairo by cabal using cairo 1.9.6 compiled
myself. Cabal always said that the cairo library/devel files were
missing.
---------- Forwarded message ----------
From: Axel Simon
I've tried a little, the error was not thrown out in gtk2hssetup.hs. And even I faked a version (1.8.10), it did not work.
On Tue, Jun 8, 2010 at 3:47 PM, Axel Simon
wrote: Hi,
On Jun 8, 2010, at 9:21, Magicloud Magiclouds wrote:
Yes, seems like so. Here is the output:
# /usr/bin/pkg-config --modversion cairo-pdf 1.9.6 # /usr/bin/pkg-config --modversion cairo-ps 1.9.6 # /usr/bin/pkg-config --modversion cairo-svg 1.9.6 # /usr/bin/pkg-config --modversion cairo 1.9.6
Oh dear.
Since cabal manages once to get the correct version and fails later on, I assume it's the magic Duncan added to out Gtk2HsSetup.hs file that requests the package version again. If you look for
--FIXME: Cabal should tell us the selected pkg-config package versions in the -- LocalBuildInfo or equivalent. -- In the mean time, ask pkg-config again.
in the cabal file and try to add some debugging output then maybe you can find out more.
I suspect that either the LocalBuildInfo or the PackageDescription value is not the most up-to-date one but some default value that lack some path or some such.
cheers, Axel
On Tue, Jun 8, 2010 at 2:56 PM, Axel Simon
wrote: Hi,
On Jun 8, 2010, at 8:54, Magicloud Magiclouds wrote:
/usr/bin/pkg-config --modversion cairo setup: Missing dependency on a foreign library: * Missing C library: cairo This problem can usually be solved by installing the system package that provides this library (you may need the "-dev" version). If the library is already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where it is.
well, what's the output of
/usr/bin/pkg-config --modversion cairo
? Maybe cabal fails to parse the version for some reason.
Axel
-- 竹密岂妨流水过 山高哪阻野云飞
-- 竹密岂妨流水过 山高哪阻野云飞
-- 竹密岂妨流水过 山高哪阻野云飞