[cairo] compilation error related to cairo libs

Lijun Diao ljdiao at gmail.com
Tue Oct 1 08:22:17 PDT 2013


Hi, all:

It is the second time I am sending the e-mail. I am not sure the first one was sent successfully since I am new register. My questions is:

I am compiling to build an executable and got the error messages as:

“
/opt/ncarg/lib/libncarg_gks.a(cro.o): In function `GetCROClipping':
cro.c:(.text+0x12c3): undefined reference to `cairo_clip_extents'
/opt/ncarg/lib/libncarg_gks.a(cro.o): In function `CROpict_init':
cro.c:(.text+0x13cc): undefined reference to `cairo_clip_extents'
/opt/ncarg/lib/libncarg_gks.a(cro.o): In function `cro_OpenWorkstation':
cro.c:(.text+0x4192): undefined reference to `cairo_ps_surface_set_eps'
/opt/ncarg/lib/libncarg_gks.a(cro.o): In function `cro_Cellarray':
cro.c:(.text+0x4a0a): undefined reference to `cairo_pattern_get_rgba'
collect2: ld returned 1 exit status”

I guess it is related to the cairo libs installed on our machine.  Either I need the development version of cairo, and I may only have the run-time version of cairo. or, maybe I just have an older version of cairo as suggested by th ncarg lib helpdesk. 

I used the ‘locate libcairo’ and got the result:

“
/opt/exelis/idl82/idlde/bin.linux.x86/libcairo-swt.so
/usr/lib/libcairo.so.2
/usr/lib/libcairo.so.2.9.2
/usr/lib64/libcairo.so
/usr/lib64/libcairo.so.2
/usr/lib64/libcairo.so.2.9.2
/var/lib/systemimager/images/oscarimage/usr/lib64/libcairo.so.2
/var/lib/systemimager/images/oscarimage/usr/lib64/libcairo.so.2.9.2”

Can anybody confirm my problem and point to the right cairo libraries?

thanks,

-----------------------------------------------------------------------------
Lijun Diao
ldiao at uh.edu
Research Assistant
Department of Earth & Atmospheric Sciences
University of Houston
4800 Calhoun RD., Bldg. S&R1-312
Houston, TX 77204-5007
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20131001/5a1642d6/attachment.html>


More information about the cairo mailing list