[cairo] Building on RedHat with non standard libary locations

Bill Spitzak spitzak at gmail.com
Fri Dec 10 09:58:04 PST 2010


Despite indications that "./configure --prefix=x" will work to put  
everything in x, you must also set PKG_CONFIG_PATH to x/lib/pkgconfig  
and LD_LIBRARY_PATH to x/lib. Then do make install.

This is the #1 obstacle for programmers who want to work on Cairo on  
Linux. Apparently though there is some obscure reason why configure  
and the makefile cannot do this automatically, although I sure don't  
see it (--prefix changes where it reads the .h files, it makes no  
sense and is in fact dangerous for it to not change where it looks for  
the libraries to match!).

I also tried some other instructions that avoid the make install, but  
I was never able to get that to work.

One advantage is that the pkgconfig program works to produce the  
cflags and ldflags needed to make a program call your version of  
Cairo. Though seriously we should wonder why "-lcairo" by itself does  
not work...

On Dec 10, 2010, at 9:35 AM, suzuki toshiya wrote:

> Hi,
>
> How about setting PKG_CONFIG_PATH to include /opt/ldapadm/lib/ 
> pkgconfig,
> if pc files of pixman (and other required libraries) is stored in  
> there?
>
> Regards,
> mpsuzuki
>
> philip at vogon.net wrote:
>> I am trying to build on a RH system, to which I do not have root  
>> access.
>>
>> Pixman is not installed, so I downloaded this and installed it.
>> The installation is based in a directory named /opt/ldapadm/
>>
>> So the pixman libraries are in /opt/ldapadmin/lib
>>
>> When I try to configure cairo, I don’t see any way (at least not from
>> config --help) to tell configure to look in /opt/ldapadm/lib for its
>> libraries.
>>
>> I get the following (of course):
>>
>> checking for pkg-config... /usr/bin/pkg-config
>> checking pkg-config is at least version 0.9.0... yes
>> checking for pixman... no
>> configure: error: pixman >= 0.10.0 is required
>> (http://cairographics.org/releases/)
>>
>> Any suggestions on how to get configure to add a non standard  
>> library path
>> to its searches?
>>
>> Philip
>>
>>
>> --
>> cairo mailing list
>> cairo at cairographics.org
>> http://lists.cairographics.org/mailman/listinfo/cairo
>
> --
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo



More information about the cairo mailing list