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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-23-2005, 12:40 AM
|
#1
|
Member
Registered: Sep 2004
Distribution: SuSE 10
Posts: 32
Rep:
|
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?
|
|
|
01-23-2005, 01:10 AM
|
#2
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
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)
|
|
|
01-23-2005, 10:54 AM
|
#3
|
Member
Registered: Sep 2004
Distribution: SuSE 10
Posts: 32
Original Poster
Rep:
|
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 11:23 AM.
|
|
|
01-23-2005, 02:49 PM
|
#4
|
Member
Registered: Sep 2004
Distribution: SuSE 10
Posts: 32
Original Poster
Rep:
|
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?
|
|
|
01-23-2005, 08:00 PM
|
#5
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
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.
|
|
|
01-23-2005, 08:18 PM
|
#6
|
Member
Registered: Sep 2004
Distribution: SuSE 10
Posts: 32
Original Poster
Rep:
|
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....
|
|
|
01-23-2005, 09:22 PM
|
#7
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 12:46 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|