LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-22-2005, 11:40 PM   #1
l00zer
Member
 
Registered: Sep 2004
Distribution: SuSE 10
Posts: 32

Rep: Reputation: 15
gtk+-2.6.0 + weird errors


Ive been trying to compile GTK 2.6 for the last two hours Needs one package after the other!! So many dependencies! gah! But finally, it just keeps giving me
configure: error: Xft pango backend is required for x11 target

when I configured the pango thing it said

configuration:
backends: X

i ran xft-config --prefix and it said /usr/X11R6
am I missing something here?
 
Old 01-23-2005, 12:10 AM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
you didn't build pango with Xft support ( or freetype either if it only showed you X as a backend).
so......

before you configure pango, make sure you have the following:

xft.pc in /usr/X11R6/lib/pkgconfig

PKG_CONFIG_PATH contains the directory /usr/X11R6/lib/pkgconfig ( you can set it with the command:

export PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig:$PKG_CONFIG_PATH)

when the configure of pango is complete, MAKE SURE it list xft as a backend or you will not be able to compile gtk-2.6.

don't forget to build freetype > 2.0.9 and fontconfig first. and read the README (pango's readme tells you everything you need-might want to check that first next time)
 
Old 01-23-2005, 09:54 AM   #3
l00zer
Member
 
Registered: Sep 2004
Distribution: SuSE 10
Posts: 32

Original Poster
Rep: Reputation: 15
Red face

aha! It usually helps to read the instructions! But just out of curiosity, i don't understand what setting that path will do. There is no /usr/X11R6/lib/pkgconfig directory anyways. agh this is too complicated >.<

I already have fontconfig installed!! IT was done by RPM, but it keeps saying pkg fontconfig not found.

Last edited by l00zer; 01-23-2005 at 10:23 AM.
 
Old 01-23-2005, 01:49 PM   #4
l00zer
Member
 
Registered: Sep 2004
Distribution: SuSE 10
Posts: 32

Original Poster
Rep: Reputation: 15
AGH!!!

Everything that uses glib, gtk, is now not working! How do i remove the stuff i compiled from source? I've tried reinstalling the rpm but that doesnt seem to work. As of five seconds ago, everything gives a segmentation fault. I think i need to delete everything with pango* in it and then retry the rpm. Is that safe?
or how do I get fontconfig to show up while compiling Pango?
 
Old 01-23-2005, 07:00 PM   #5
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
What distro are you running ( need to know as far as package management is concerned).

since your runnin a rpm distro, the reason you don't have a /usr/X11R6/lib/pkgconfig directory is because you don't have the -devel package installed for X. You cannot compile against a library if you do not have the header files and pkg-config files.

As far as removing what you have compiled, go back to the source directories and as root do:

make uninstall

to remove them from your system then reinstall your original rpm's.
 
Old 01-23-2005, 07:18 PM   #6
l00zer
Member
 
Registered: Sep 2004
Distribution: SuSE 10
Posts: 32

Original Poster
Rep: Reputation: 15
ah. Thanks. Im running suse 9, and I do have the X -devel package installed. I guess since it was installed by rpm it was ina different place? I saw the config file locate the X headers but..... o well. For future refrence, its not possible to install things 1/2 by rpm and 1/2 by source? So if you installed Pango by RPM, the GTK source configurer wouldnt see it?



Thanks again....
 
Old 01-23-2005, 08:22 PM   #7
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
remember that most (all?) rpm distro's split thier packages into seperate pieces. for example:

pango-1.8.0-i486.rpm is just the libraries themselves - what you need to run programs that depend on pango

pango-1.8.0-devel-i486.rpm is the files needed to compile against pango-1.8.0, but are not needed to use pango itself.

So to compile against an rpm package, you must have the corresponding -devel package for that particular library.

to understand why configure fails you need to know what it is looking for. In your example, for glib, gtk, atk, and pango ( as well as pretty much all the other gnome-2.x libraries) configure looks for pkg-config files like gtk-2.0.pc (which usually resides in /usr/lib/pkgconfig), or glib-2.0.pc, or in the case of Xft, xft.pc(which is located in /usr/X11R6/lib/pkgconfig ). You will only have the pkg-config files if you install the -devel packages for these libraries ( or for the case of xft.pc, you need the X11-devel package).

So, in short, you can mix rpm's and source as long as you have all the rpm packages needed to link and develop against the library/application.

If your installing by source, its a good idea to use something like checkinstall (or another rpm builder) or build the rpm manually then install it instead of "make install". When it comes time to upgrade later, it will make life much easier for you.
 
  


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
Weird errors with MA111 on FC 2 ssimontis Linux - Wireless Networking 3 09-18-2004 09:24 AM
Weird thing happening with GTK apps lancelott *BSD 0 06-22-2004 03:27 PM
weird router/gtk-gnutella issues jhermsmeyer Linux - Networking 4 05-23-2004 09:23 AM
Weird Apache errors itskiLLjoy Linux - Software 3 05-21-2004 11:01 AM
Weird IO errors link1305 Linux - Newbie 1 11-14-2003 06:56 PM


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

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