LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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
 
LinkBack Search this Thread
Old 02-22-2005, 05:32 PM   #1
nutnut
Member
 
Registered: Feb 2005
Location: UK
Distribution: Gentoo
Posts: 86

Rep: Reputation: 15
Pango ./configure error(s)...


Hi,

Right, I've managed to make GLIB and ATK and I'm now onto Pango - another error!

For this one, I've no even remote clue on how to solve it so any guidance would be appreciated ...

checking for X... no
configure: WARNING: X development libraries not found
checking for pkg-config... /usr/bin/pkg-config
checking for fontconfig >= 1.0.1... Package fontconfig was not found in the pkg-config search path.
Perhaps you should add the directory containing `fontconfig.pc'
to the PKG_CONFIG_PATH environment variable
No package 'fontconfig' found
configure: WARNING: No fontconfig found, skipping tests for FreeType and Xft
configure: error: *** Didn't find any of FreeType, X11, or Win32.
*** Must have at least one backend to build Pango.

Thanks,
James.
 
Old 02-22-2005, 06:18 PM   #2
darksmiley
Member
 
Registered: Jan 2004
Location: London, England
Distribution: Usually Linux Mint, Debian, Ubuntu or CentOS
Posts: 233

Rep: Reputation: 30
hiya

well, the problem seems to be that pango needs X and pkg-config, but cant find them.

X seems to be the most important so we'll look at that first! Have you got X installed? You can get it in package form from your distro's website (you will need XFree86 or xorg). If its already installed, the libraries should be in /usr/X11/lib (or similar). If you know where X is, point the configure script to it in a prefix:

./configure --prefix=/LOCATION_OF_X


the font config thing should be easier (but isnt as crucial). Just install the font config package (or compile it) and make sure that the fontconfig.pc file is in that directory it was looking in (read the error messages). If you want to add anything to the PKG_CONFIG_PATH variable (you can check its current contents with 'echo $PKG_CONFIG_PATH') then use the export command:

export PKG_CONFIG_PATH=/NEW_DIRECTORY:$PKG_CONFIG_PATH

where new_directory is the directory you want to add.



basically, both these problems should be solved through installing fontconfig and X packages, but if this doesnt work or you have done this already you will need to get into the more complicated stuff above!!
 
Old 02-23-2005, 10:52 AM   #3
nutnut
Member
 
Registered: Feb 2005
Location: UK
Distribution: Gentoo
Posts: 86

Original Poster
Rep: Reputation: 15
...

Hi,

Ok, I decided to check out the X issue so I navigated to my /usr dir. I ran ls and it told me:

[root@localhost usr]# ls
bin etc include lib local sbin src X11R6
dict games kerberos libexec man share tmp

Now, I can see X11R6 in there - is that what I'm looking for?

EDIT:
A went into the directories a little deeper. I navigated into X11R6 and then into lib. I ran ls and got a list of various files and the directory X11. I cd'd into X11 and ran ls - this is what it gave me:

[root@localhost lib]# cd X11
[root@localhost X11]# ls
app-defaults etc locale rstart xdm xkb
bindings fonts Options system.mwmrc XErrorDB XKeysymDB
Cards fs proxymngr twm XF86Config xserver
doc lbxproxy rgb.txt x11perfcomp xinit xsm

Dunno if that's any help?

Thanks,
James

Last edited by nutnut; 02-23-2005 at 10:56 AM.
 
Old 02-24-2005, 10:57 AM   #4
nutnut
Member
 
Registered: Feb 2005
Location: UK
Distribution: Gentoo
Posts: 86

Original Poster
Rep: Reputation: 15
...

Anyone ?
 
Old 02-24-2005, 11:54 AM   #5
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,511

Rep: Reputation: 58
For your system should be a package called something like XFree86-devel or xorg-devel available. This is what you need.
 
Old 02-24-2005, 12:46 PM   #6
nutnut
Member
 
Registered: Feb 2005
Location: UK
Distribution: Gentoo
Posts: 86

Original Poster
Rep: Reputation: 15
...

Hi,

Wow, thanks, I've got passed that stage now. It appears to be configuring fine, however when running make I get the following error fairly early in the procedure:]

pangofc-fontmap.c: In function `pango_fc_convert_weight_to_fc':
pangofc-fontmap.c:538: `FC_WEIGHT_NORMAL' undeclared (first use in this function)
pangofc-fontmap.c:538: (Each undeclared identifier is reported only once
pangofc-fontmap.c:538: for each function it appears in.)
make[4]: *** [pangofc-fontmap.lo] Error 1
make[4]: Leaving directory `/home/james/pango-1.8.0/pango'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/james/pango-1.8.0/pango'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/james/pango-1.8.0/pango'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/james/pango-1.8.0'
make: *** [all] Error 2
[root@localhost pango-1.8.0]#

Any ideas?

Thanks,
James
 
Old 02-24-2005, 01:22 PM   #7
nutnut
Member
 
Registered: Feb 2005
Location: UK
Distribution: Gentoo
Posts: 86

Original Poster
Rep: Reputation: 15
...

Hi,

Well, I decided to emacs the ol' fontconfig.h and discovered FC_WEIGHT_NORMAL wasn't defined in there. I defined it and set it to the same value as FC_WEIGHT_NORMAL, then tryed making again - worked perfectly.

Thanks,
James
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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
pango configure problem with glib from source loco_g Linux - Software 1 01-06-2005 10:11 AM
Error while compiling pango 1.2.5 VertX Linux - Software 1 08-26-2004 03:13 PM
error installing pango shams Linux - Software 5 04-22-2004 09:22 PM
Configure error in Pango-1.0.5 suriyamohan Linux - General 0 04-12-2003 01:24 AM


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