LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-08-2005, 11:15 AM   #1
Johnburrell
Member
 
Registered: May 2004
Distribution: FC3
Posts: 87

Rep: Reputation: 27
gtk+


I am trying to compile a package that needs gtk+

when I do ./configure for gtk+ it says I do not have pango installed. But there is a pango directory in /usr/lib. How do I test which version of pango I have. I have tried
pck-config pango-1.8 --modversion
but no success.

I also tried setting PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib
but it does not help.

I am running FC3.

Any suggestions please?
 
Old 03-08-2005, 11:31 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
it's pkg-config not pck-config. Personally i'd advise against compiling gtl+ from source unless you have a good reason for not using a standard package for it.
 
Old 03-08-2005, 11:56 AM   #3
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
pkg-config --modversion pango
is all you need. If that doesn't come up then it's possible you don't have the devel package installed (i.e. if you installed from RPM last time).
 
Old 03-09-2005, 03:52 AM   #4
Johnburrell
Member
 
Registered: May 2004
Distribution: FC3
Posts: 87

Original Poster
Rep: Reputation: 27
Thanks. And thanks for the English lesson. Perhaps you should also talk about I'm and you'll and while you're at it you could include would, should, could, may and can and a whole host of other things that we often get wrong!
 
Old 03-09-2005, 06:51 AM   #5
Johnburrell
Member
 
Registered: May 2004
Distribution: FC3
Posts: 87

Original Poster
Rep: Reputation: 27
I am persisting in trying to compile gtk+ because the package I am trying to load demands gtk+ >=2.0.6 and I have not found a complied version on the web to download.

I have got the configure script to work down to the point of searching for libjpeg. It says that libjpeg is not loaded. It is and is located in /usr/lib so I don't understand that at the moment. May be it's a version problem again.

So I do ./configure --prefix=/usr --without-libjpeg to see what happens next.

I get the message

'configure: error: Xft Pango backend is required for x11 target'

Now I am completely stumped. What on earth does that mean and is it fixable?
 
Old 03-09-2005, 07:03 AM   #6
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
you are running a rpm distro and trying to compile.....

make sure jpeg-devel is installed and where did you get pango from? source? rpm? if you installed it from source, you did it incorrectly. gtk will refuse to use a pango built without xft support.

go back to the pango step, do ./configure etc..., and MAKE SURE xft is listed in the summary of backends to be built at the end of configure. if it is not, then you do not have the required Xorg packages installed and /usr/X11R6/lib/pkgconfig in your PKG_CONFIG_PATH
 
Old 03-09-2005, 07:24 AM   #7
Johnburrell
Member
 
Registered: May 2004
Distribution: FC3
Posts: 87

Original Poster
Rep: Reputation: 27
yes I am running an FC3 distro from rpms. Is this an inherently bad idea?

I loaded libjpeg-devel and now configure picks up the libjpeg library from /usr/lib - thanks for that.

There is no pkgconfig file in /usr/X11R6/lib

Is this the problem and, if so, where do I get it from?
 
Old 03-09-2005, 12:29 PM   #8
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
If you really really want to compile all this stuff, you'll have to install freetype, fontconfig, pango, glib, atk and gtk from source. There must be rpm's with all this stuff in somewhere. Why not try www.pbone.net and see what's available?
 
Old 03-09-2005, 05:14 PM   #9
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
Quote:
Originally posted by Johnburrell
yes I am running an FC3 distro from rpms. Is this an inherently bad idea?

I loaded libjpeg-devel and now configure picks up the libjpeg library from /usr/lib - thanks for that.

There is no pkgconfig file in /usr/X11R6/lib

Is this the problem and, if so, where do I get it from?
the xft.pc file you are looking for is in the Xorg-x11-devel package ( may be slightly differently named). after you install that, check /usr/X11R6/lib/pkgconfig and make sure xft.pc is in there, then in a console type:

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

and re-run configure for pango.

Last edited by __J; 03-09-2005 at 05:15 PM.
 
Old 03-10-2005, 04:35 AM   #10
Johnburrell
Member
 
Registered: May 2004
Distribution: FC3
Posts: 87

Original Poster
Rep: Reputation: 27
Thanks for your help . I now realise that the problems I was having were due to the fact that I had upgraded xorg-x11-libs. This created dependency problems which seemed to stop the ./configure scripts from working correctly. I went back and reloaded the xorg-x11 software to make it all consistent. Now everything works fine. We learn by our mistakes -eh - hopefully!
 
  


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
Freerock uninstall stole GTK looking for up-to-date pango, atk, gtk, glib and xft tgz Oholiab Slackware 8 09-18-2005 12:57 PM
GTK source install doesn't give gtk-config Feebles Linux - Software 4 06-15-2005 01:51 PM
cant find gtk-config file or gtk-devel to install happychappy Linux - Software 2 02-16-2005 01:46 AM
GTK error when starting gtk-chtheme Dswissmiss Linux - Software 1 10-02-2004 12:53 AM
compiling gaim/ gtk error (two versions of gtk) webazoid Linux - Software 0 07-06-2004 07:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:45 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration