LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 10-14-2008, 09:34 AM   #1
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Rep: Reputation: 293Reputation: 293Reputation: 293
libcairo.la not found make errors in several sources


A few sources I've built seem to be looking for

usr/lib/pkgconfig/src/libcairo.la

as a subdirectory of the source folder rather than

/usr/lib/pkgconfig/src/libcairo.la

or

/usr/lib/libcairo.la

where it actually exists. My libcairo is a custom built one with glitz enabled but I can't see why other sources are looking and not finding it in say /usr/lib/

Anyone got some clues how to fix this? I can't see any .pc associated with it, nor anything else that might give a clue.
 
Old 10-14-2008, 09:45 AM   #2
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,617

Rep: Reputation: 136Reputation: 136
Usually configure script searches for header files, not lib files (?)
How do you get these cairo errors ?
 
Old 10-14-2008, 11:28 AM   #3
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Original Poster
Rep: Reputation: 293Reputation: 293Reputation: 293
During the 'make' of Abiword from svn and cairo-dock

Code:
../doltlibtool --tag=CXX --mode=link g++  -g -O2 -Wall -Wextra -Wsign-compare
 -Wpointer-arith -Wchar-subscripts -Wwrite-strings -Wmissing-noreturn -Wunused 
-Wpointer-arith -Wshadow   -o libabiword-2.7.la -rpath /usr/local/lib -pthread 
..//usr/lib/pkgconfig/src/libcairo.la -Wl,--export-dynamic -lfribidi -lgthread-2.0 
-lrt -lwv -lgsf-1 -lpng -lm -lgnomeprintui-2-2 -lgnomeprint-2-2 -lgnomecanvas-2 
-lxml2 -lart_lgpl_2 -lenchant -lgucharmap -lpangoxft-1.0 -lpangoft2-1.0 -lXft 
-lXrender -lfontconfig -lfreetype -lz -lX11 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 
-lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl 
-lglib-2.0   --no-undefined -avoid-version -export-dynamic libabiword_2_7_la-
abi_ver.lo libabiword_2_7_la-libabiword.lo ../goffice-bits/libgoffice.la  
plugins/libplugins.la text/fmt/xp/libxp.la text/ptbl/xp/libxp.la wp/ap/gtk
/libgtk.la wp/ap/xp/libxp.la wp/impexp/gtk/libgtk.la wp/impexp/xp/libxp.la af/xap
/gtk/libgtk.la af/xap/xp/libxp.la af/gr/gtk/libgtk.la af/gr/xp/libxp.la af/util
/unix/libunix.la af/util/xp/libxp.la af/ev/gtk/libgtk.la af/ev/xp/libxp.la text/fmt
/gtk/libgtk.la 
libtool: link: cannot find the library `..//usr/lib/pkgconfig/src/libcairo.la' or 
unhandled argument `..//usr/lib/pkgconfig/src/libcairo.la'
make[3]: *** [libabiword-2.7.la] Error 1
make[3]: Leaving directory `/home/dive/downloads/abi/abiword/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/dive/downloads/abi/abiword/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dive/downloads/abi/abiword'
make: *** [all] Error 2

Last edited by dive; 10-14-2008 at 11:29 AM.
 
Old 10-14-2008, 11:48 AM   #4
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Original Poster
Rep: Reputation: 293Reputation: 293Reputation: 293
Ok it seems to be that my custom compile of cairo did not install the proper .pc files:

/usr/lib/pkgconfig/cairo-ft.pc
/usr/lib/pkgconfig/cairo-pdf.pc
/usr/lib/pkgconfig/cairo-png.pc
/usr/lib/pkgconfig/cairo-ps.pc
/usr/lib/pkgconfig/cairo-svg.pc
/usr/lib/pkgconfig/cairo-xlib-xrender.pc
/usr/lib/pkgconfig/cairo-xlib.pc
/usr/lib/pkgconfig/cairo.pc

At least the last one is missing. Not sure how to create those though. I always assumed that the install would create or run the commands to create them.
 
Old 10-14-2008, 01:09 PM   #5
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,617

Rep: Reputation: 136Reputation: 136
Well, here is the content of the /usr/lib/pkgconfig/cairo.pc on my Slackware 12.1 system:

Code:
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: cairo
Description: Multi-platform 2D graphics library
Version: 1.4.14

Requires.private: freetype2 >= 8.0.2 fontconfig libpng12 xrender >= 0.6 x11 
Libs: -L${libdir} -lcairo
Libs.private: -lz -lz -lm
Cflags: -I${includedir}/cairo
 
Old 10-14-2008, 05:57 PM   #6
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Original Poster
Rep: Reputation: 293Reputation: 293Reputation: 293
Yeah I've gone back to stock 1.4.14 now - the glitz backend is too buggy to use in cairo-dock anyway, which is the only reason I need a glitz enabled cairo.
 
Old 10-14-2008, 07:24 PM   #7
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Quote:
Originally Posted by dive View Post
Yeah I've gone back to stock 1.4.14 now - the glitz backend is too buggy to use in cairo-dock anyway, which is the only reason I need a glitz enabled cairo.
You can still run cairo-dock without a glitz enabled cairo. It just needs glitz on the system. not a cairo enabled glitz.

But yea, it is buggy, cairo-glitz that is.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Libcairo HELP Sovetryne Linux - Newbie 8 06-29-2008 08:05 AM
etc/apt/sources.list errors when trying to edit tparker Linux - Desktop 2 11-10-2006 06:45 AM
libcairo.so.2 ? dave`2005 Linux - Newbie 3 03-14-2006 04:16 PM
Problems/Errors with Sources.List shodekiagari Debian 2 05-01-2004 04:00 AM
make errors - lslang not found dhbiker Slackware 3 02-21-2004 02:55 PM


All times are GMT -5. The time now is 09:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration