Re: Problem with cairo

Jacques Garrigue <[email protected]>
Newsgroups gmane.comp.lang.ocaml.lib.gtk
Message-ID <[email protected]>
From: "Angela Zhu" <[email protected]>

> I want to install lablgtk, and when I was doing "./configure" (for lablgtk),
> I got
> following attached error msg (1).
> 
> So I try to download cairo and comple it, but after "cd cairo-1.4.14",
> when I was doing "./configure" (for cairo), I got following attached msg
> (2).
> 
> And then a funny thing is that I actually should have cairo installed on my
> machine
> using "MacPorts", according to attached commands and msg (3).

Since cairo is already installed (and actually required by gtk2
anyway), there is no need to install it again.
 
> Anyone can help me to see what are is the problem here?
> Many thanks in advance!
> 
> ------------------------------------------
> (1) ./configure for lablgtk
> ------------------------------------------
> checking pkg-config is at least version 0.9.0... yes
> checking for BASE_DEPENDENCIES... configure: error: Package requirements (
> glib-2.0 >= 2.13.5    atk >= 1.9.0    pango >= 1.17.3    cairo >= 1.2.0)
> were not met:
> 
> No package 'cairo' found
> 
> Consider adjusting the PKG_CONFIG_PATH environment variable if you
> installed software in a non-standard prefix.
> 
> Alternatively, you may set the environment variables
> BASE_DEPENDENCIES_CFLAGS
> and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
> See the pkg-config man page for more details.
> ------------------------------------------

There are plenty of explanations in this error message.

First,

$ pkg-config --modversion cairo

should return 1.4.10.

If it doesn't, then you should look for a cairo.pc file in
/opt/local/lib/pkgconfig
If it is there, then this probably just that you must set 
PKG_CONFIG_PATH explicitly to the above directory.
Otherwise, search for cairo.pc, and add the directory.

This should solve your problem.

Jacques
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.