LinuxQuestions.org
Visit Jeremy's Blog.
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 09-26-2004, 07:27 AM   #1
donbellioni
Member
 
Registered: Mar 2004
Location: UK
Distribution: Slackware 10
Posts: 137

Rep: Reputation: 15
Pango error configuring gtk+2


Im trying to install gtk+-2.4.9 onto my lfs box, however during configure i get the error:

Code:
checking compiler support for MMX... yes
checking for freetype-config... /usr/bin/freetype-config
checking For sufficiently new FreeType (at least 2.0.1)... yes
configure: error: Pango 1.2.0 and Xft backend is required for x11 target
This is being brought up in the configure script when it tests the following condition:

Code:
$PKG_CONFIG --exists 'pangoxft >= 1.2.0'
Im not quite sure how the --exists option works, but typing "$PKG_CONFIG --modversion pangoxft" gives:

Code:
Package pangoxft was not found in the pkg-config search path.
Perhaps you should add the directory containing `pangoxft.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pangoxft' found
A "locate pangoxft.pc" gives no results, so it seems that im missing pangoxft. Is this a separate package from pango or must pango be specially configured for pangoxft to be installed?

Typing "pkg-config --modversion pangox" gives "1.4.1", and "pkg-config --modversion pangoft2" also gives "1.4.1".

Have i missed pangoxft at pango install time?

Thanks.
 
Old 09-26-2004, 07:56 AM   #2
donbellioni
Member
 
Registered: Mar 2004
Location: UK
Distribution: Slackware 10
Posts: 137

Original Poster
Rep: Reputation: 15
I think i may have to install xft as "locate xft" only returns "/usr/X11R6/bin/xft-config and
/usr/X11R6/lib/pkgconfig/xft.pc".

However im having troubles here too. Configure completes with no errors, but make fails:

Code:
/usr/include/freetype2/freetype/freetype.h:20:2: #error "`ft2build.h' hasn't been included yet!"
/usr/include/freetype2/freetype/freetype.h:21:2: #error "Please always use macros to include FreeType header files."
/usr/include/freetype2/freetype/freetype.h:22:2: #error "Example:"
/usr/include/freetype2/freetype/freetype.h:23:2: #error "  #include <ft2build.h>"
/usr/include/freetype2/freetype/freetype.h:24:2: #error "  #include FT_FREETYPE_H"
make[1]: *** [xftcolor.lo] Error 1
make[1]: Leaving directory `/usr/src/dlg-src/xft-2.1.2'
make: *** [all] Error 2
 
Old 10-08-2004, 08:11 PM   #3
jmwatson-lq
LQ Newbie
 
Registered: Oct 2004
Posts: 5

Rep: Reputation: 0
I have the same problem. Pango did not put the pangoxft.pc in the correct spot. I copied the pc to where the other pango.pc s are but that only got me further down the error list when I ran gtk configure.

The problem is: How do you get Pango to generate the pangoxft library? I searched far and wide and was not able to see anything about this in the Pango distro.

I emailed otaylor@redhat.com (the Pango dude) to see what is up. Iwill let you know.
 
Old 10-11-2004, 12:44 AM   #4
jmwatson-lq
LQ Newbie
 
Registered: Oct 2004
Posts: 5

Rep: Reputation: 0
Here is an email from Owen Taylor, the Pango developer.

> Trying to install latest GTK 2.4.9. Installed Pango 1.4.1. Checks OK. GTK says it can't find pangoxft.so when doing its config. Don't see it anywhere on the system. How do I get Pango to build it? Have Xfree86 4.4 running fine.
>
> Any ideas?
>
> Noticed the someone else with the same problem here:
> http://www.linuxquestions.org/questi...p?s=&forumid=2

Unfortunately, I usually don't have the time to answer personal
requests for help getting GTK+ compiled.

The best forum for asking such questions is the often the
GTK+ mailing lists:

http://www.gtk.org/mailinglists.html

Regards,
Owen Taylor

(Hints: check Pango compile logs, make sure that you only have
one copy of Pango installed)
 
Old 10-14-2004, 08:52 PM   #5
celejar
Member
 
Registered: Oct 2003
Location: New York
Distribution: Debian Sid
Posts: 185

Rep: Reputation: 30
I'm getting similar problems building GTK+ v2.4.11. I also have pango 1.4.1 installed, and configure (for GTK+) breaks at the same place as donbellioni's, but I only have Xfree86 v4.1.0.1, and I think I saw somethingabout >= v4.3 required for xft. I settled for building GTK+ v1.2.10 which for some apps is sufficient.
 
Old 10-15-2004, 01:05 AM   #6
jmwatson-lq
LQ Newbie
 
Registered: Oct 2004
Posts: 5

Rep: Reputation: 0
I am making progress. I have a successful config. It now recognizes Xft as a backend. I am having trouble with the build now.

I think it comes down to eliminating old versions fontconfig, freetype and the other packages listed as dependencies.

Use find to hunt down old lib files. I think when I finish deleting old libs and then hunt down the old h files I will be ok.
 
Old 10-15-2004, 04:02 PM   #7
celejar
Member
 
Registered: Oct 2003
Location: New York
Distribution: Debian Sid
Posts: 185

Rep: Reputation: 30
continued GTK+, pango Xft trouble

I saw on the GTK+ lists that many others have been having similar problems. When I moved
pangoxft.pc to where the other .pc files are, instead of 'Xft backend is required', configure now fails
with 'Xft version 2 is required'. I tried downloading the standalone Xft package from freedesktop,
but I got weird make errors. The pango INSTALL says that Xft 2 is required, and that it's included
with X 4.3; I only have 4.1.0.1.
 
Old 10-29-2004, 07:48 PM   #8
jmwatson-lq
LQ Newbie
 
Registered: Oct 2004
Posts: 5

Rep: Reputation: 0
Finally got a successful build. Have Xfree86 4.4. I deleted all the old freetype stuff in the lib and include directories, both usr and usr/local. I even went to the X11 directories and deleted the freetype stuff there just so I could be sure I was using the correct freetype version. I also included the freetype2 directory in my C_INCLUDE_PATH to be sure the build would use the latest h files.
 
Old 11-09-2004, 01:36 PM   #9
ferreirafm
LQ Newbie
 
Registered: Jul 2004
Posts: 7

Rep: Reputation: 0
GTK2.4.13 saga

The problem remains the same for the GTK2.4.13 release.
...
checking For sufficiently new FreeType (at least 2.0.1)... yes
configure: error: Pango 1.2.0 and Xft backend is required for x11 target
...

jmwatson-lq,
Could you please possibly be more specific in your explanation??
Thanks in advance,
Fred
 
Old 11-09-2004, 01:53 PM   #10
95se
Member
 
Registered: Apr 2002
Location: Windsor, ON, CA
Distribution: Ubuntu
Posts: 740

Rep: Reputation: 32
I just installed freetype, fontconfig, Xft, pango, glib, atk, and gtk+ on my gf's laptop. It was annoying as hell! I had to remove every single last trace of old libraries from her system. Pango was the worst though. Make sure you have Xft installed BEFORE you install pango, otherwise it won't the xft part I think. Just remove ALL of the old libraries for freetype, and Xft, and pango, glib, gmodule, gobject, etc... Then reinstall freetype, Xft, then GLib, then Pango. Also, when building, look at what library it is linking to, make sure it is where your pango should be, not some next one. I also remember I had to edit the includes in some parts where it was including freetype. The new version uses some Macro to do all the including .
 
Old 11-16-2004, 06:51 PM   #11
jmwatson-lq
LQ Newbie
 
Registered: Oct 2004
Posts: 5

Rep: Reputation: 0
ferreirafm, I don't know what else to add. The comments I posted explain what I did. I can summarize as follows:

1. Get all the correct versions of software per the Gtk dependancies list.
2. Remove all the old versions of the software you are about to install.
3. Make sure when you config Pango that you get a message at the end that it is set to go for Xft front end. (Assumming this is what your target is.) Look at the config logs if you are not getting this message. I remember having to delete a library or two to get the correct config.


I remember having to use the find command to find all the old versions of libraries and h fiiles. And, as I mentioned above, to get a good compile I had to put the path of my new freetype directory into my C_INCLUDE_PATH envrionment variable.

I did this over a period of a couple weeks, on and off. It was quite a war. I am new to the Linux environment so it took me longer than it otherwise should have. The only closing advice I have is to inspect your config and build logs and keep tracking down each problem.
 
  


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
error in the creation of `etc/pango/pango.modules` okeyla Linux - Newbie 3 07-02-2011 08:06 PM
Freerock uninstall stole GTK looking for up-to-date pango, atk, gtk, glib and xft tgz Oholiab Slackware 8 09-18-2005 11:57 AM
Update GTK+ error on Pango GT_Onizuka Linux - Software 6 07-13-2005 11:18 PM
GTK: pango and atk error while "make" acrao80 Ubuntu 1 05-21-2005 12:59 PM
Trying to install gtk: pango 1.4.0 error kidicarus Linux - Software 3 06-30-2004 10:31 AM


All times are GMT -5. The time now is 09:39 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