LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-31-2006, 04:50 AM   #1
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Rep: Reputation: 30
installing cairo?


hi
I try to install cairo but I have
configure: error: Cairo requires at least one font backend.
Please install freetype and fontconfig, then try again:
http://freetype.org/ http://fontconfig.org
I already install freetype and fontconfig but it still gives me the same error
Thank You
 
Old 01-31-2006, 05:49 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,909

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
What is the output of:
Code:
pkg-config --modversion fontconfig
If it's nothing then you have to define PKG_CONFIG_PATH. Find the directory where fontconfig.pc and/or freetype2.pc is located and then before ./configure run:
Code:
export PKG_CONFIG_PATH=/path/to/directory:$PKG_CONFIG_PATH
 
Old 01-31-2006, 01:01 PM   #3
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Original Poster
Rep: Reputation: 30
Thanks, I will give it a try.
I thought that when you install something, it will autocatically update your pkg-config
 
Old 01-31-2006, 03:54 PM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,909

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Quote:
I thought that when you install something, it will autocatically update your pkg-config
You're quite right because the .pc files are created when you install software, but if you have not defined PKG_CONFIG_PATH, or if it's pointing to the wrong place, then they get copied in that wrong place and other applications cannot find and use them.
 
Old 01-31-2006, 04:27 PM   #5
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Original Poster
Rep: Reputation: 30
How to make sure when I install something, it will updated pkg-config correctly?
Is this done during the ./configure ?
export PKG_CONFIG_PATH=/path/to/directory:$PKG_CONFIG_PATH, so this will add the path to font config to my PKG_CONFIG PATH ?
Thank You
 
Old 01-31-2006, 04:49 PM   #6
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,909

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Since Slack uses /usr/lib/pkgconfig as the directory where the .pc files are stored you should install those libraries using "./configure --prefix=/usr". This way anything goes under /usr, i.e. the libraries in /usr/lib, header files in /usr/include etc and the new .pc file for the newlly installed library in /usr/lib/pkgconfig, so it can be used for compiling other applications that depend to that lib.
You can take a look here to see what you can do if you have installed libraries in non standard places.
 
Old 01-31-2006, 07:55 PM   #7
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Original Poster
Rep: Reputation: 30
Hi
It seems that I have 2 seperate location for pkg-config
/usr/lib/pkgconfig and /usr/local/lib/pkgconfig
How can I combine these 2 together so during instalation pkgconfig will look on both these path.
Thank You
 
Old 01-31-2006, 09:38 PM   #8
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Original Poster
Rep: Reputation: 30
Thank You , I finally can install this cairo in my machine, but now when I try to install gtk2.8.11, I have the same problem as this eventhough I already export like you said

Last edited by lilili; 01-31-2006 at 09:56 PM.
 
Old 02-01-2006, 01:59 AM   #9
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,909

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
If you have installed all the required libraries for building gtk in /usrllocal/lib then you should use:
Code:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
Mind that the way you defined PKG_CONFIG_PATH (using export from command line) makes the env. variable valid only for the current session. If you logout and login again the definition is gone. You can use the export command in your /etc/profile so you don't have to define it every time you login.
 
Old 02-01-2006, 12:19 PM   #10
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Original Poster
Rep: Reputation: 30
Thanks, I will try that
 
  


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
The problem about "cairo" in installing of "GTK" :( zhuqlfeixia Linux - Hardware 1 01-28-2006 03:12 PM
cairo-1.0.2 and 1.0.0 - error: CAIRO_FONT_SCALED_BACKEND_DEFAULT undeclared ForYouAndI.com Linux - Software 0 01-15-2006 06:42 PM
"--enable-gtk-cairo" in gcc-4.0.2 llmmix Programming 0 11-09-2005 11:38 PM
XaraXtreme vs Cairo: Improve Linux Speed Garoth General 2 10-28-2005 08:48 PM
gtk+2.8 and cairo John Velman Slackware 3 10-19-2005 04:16 PM


All times are GMT -5. The time now is 11:10 AM.

Main Menu
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