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 |
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-07-2007, 06:32 PM
|
#1
|
|
Senior Member
Registered: May 2005
Location: boston, usa
Distribution: fc-12/ fc-11-live-usb/ aix
Posts: 2,664
|
error when running ./configure for cairo
hi, i am using rh9 and i get this error when running ./configure for cairo-1.2.6. i downloaded and installed the tarballs for freetype and fontconfig as well as libpng (with ./configure --prefix=/usr). but i eventually did --disable-png to get further in the config process.
Code:
[schneidz@hyper cairo-1.2.6]$ ./configure --prefix=/usr --disable-win32 --disable-png --disable-freetype
...
the following features:
PNG functions: no (disabled, use --enable-png to enable)
and the following debug options:
gcov support: no
test surfaces: no
pdf testing: no (requires poppler-glib >= 0.4.1)
svg testing:
using CFLAGS:
-I/usr/X11R6/include -Wall -Wsign-compare -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wmissing-format-attribute -Wno-unused-parameter -fno-strict-aliasing
configure: error: Cairo requires at least one font backend.
Please install freetype and fontconfig, then try again:
http://freetype.org/ http://fontconfig.org/
can someone explain how to get cairo installed ?
thanks,
|
|
|
|
01-07-2007, 06:46 PM
|
#2
|
|
Senior Member
Registered: May 2005
Location: boston, usa
Distribution: fc-12/ fc-11-live-usb/ aix
Posts: 2,664
Original Poster
|
fyi, here are the pkg-config info for the installed dependancies:
Code:
[schneidz@hyper cairo-1.2.6]$ cat /usr/lib/pkgconfig/libpng12.pc /usr/lib/pkgconfig/freetype2.pc /usr/lib/pkgconfig/fontconfig.pc
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include/libpng12
Name: libpng
Description: Loads and saves PNG files
Version: 1.2.15
Libs: -L${libdir} -lpng12
Cflags: -I${includedir}
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: FreeType 2
Description: A free, high-quality, and portable font engine.
Version: 9.10.3
Requires:
Libs: -L${libdir} -lfreetype -lz
Cflags: -I${includedir}/freetype2 -I${includedir}
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: Fontconfig
Description: Font configuration and customization library
Version: 2.4.2
Libs: -L${libdir} -lfontconfig
Libs.private: -lexpat
Cflags: -I${includedir}
|
|
|
|
01-07-2007, 07:08 PM
|
#3
|
|
Moderator
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.4 OpenSuSE 12.2
Posts: 9,896
|
Quote:
using CFLAGS:
-I/usr/X11R6/include -Wall -Wsign-compare -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wmissing-format-attribute -Wno-unused-parameter -fno-strict-aliasing
configure: error: Cairo requires at least one font backend.
Please install freetype and fontconfig, then try again:
http://freetype.org/ http://fontconfig.org/
|
It seems that the path to include dirs for freetype and fontconfig is not in the CFLAGS used. Check if .configure accept somethink like --with-extra-lib or --with-extra-inc to specify additional includedirs. Or you can add them to the shell variables CFLAGS, before doing ./configure, e.g.
Code:
export $CFLAGS="-I/usr/lib $CFLAGS"
|
|
|
|
01-07-2007, 09:07 PM
|
#4
|
|
Senior Member
Registered: May 2005
Location: boston, usa
Distribution: fc-12/ fc-11-live-usb/ aix
Posts: 2,664
Original Poster
|
thank you colucix, i tried what you said but i still dont know what it is looking for:
(i also tried --x-includes=/usr/include/ and --x-includes=/usr/include/freetype2/freetype)
Code:
[schneidz@hyper cairo-1.2.6]$ ./configure --prefix=/usr --disable-png --x-includes=/usr/include/freetype2/ --x-libraries=/usr/lib
...
the following font backends:
FreeType: no (requires fontconfig
Win32: no (requires a Win32 platform)
ATSUI: no (disabled, use --enable-atsui to enable)
the following features:
PNG functions: no (disabled, use --enable-png to enable)
and the following debug options:
gcov support: no
test surfaces: no
pdf testing: no (requires poppler-glib >= 0.4.1)
svg testing:
using CFLAGS:
-I/usr/include/freetype2/ -Wall -Wsign-compare -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wmissing-format-attribute -Wno-unused-parameter -fno-strict-aliasing
configure: error: Cairo requires at least one font backend.
Please install freetype and fontconfig, then try again:
http://freetype.org/ http://fontconfig.org/
do you have any further suggestions...
|
|
|
|
01-07-2007, 09:08 PM
|
#5
|
|
Senior Member
Registered: May 2005
Location: boston, usa
Distribution: fc-12/ fc-11-live-usb/ aix
Posts: 2,664
Original Poster
|
fyi, here are the contents of the pertinant includes:
Code:
schneidz@hyper cairo-1.2.6]$ ll -R /usr/include/freetype*
/usr/include/freetype:
total 208
-rw-r--r-- 1 root root 44044 Jan 7 19:55 freetype.h
-rw-r--r-- 1 root root 5551 Jan 7 19:55 fterrid.h
-rw-r--r-- 1 root root 30284 Jan 7 19:55 ftnameid.h
-rw-r--r-- 1 root root 1710 Jan 7 19:55 ftxcmap.h
-rw-r--r-- 1 root root 1576 Jan 7 19:55 ftxerr18.h
-rw-r--r-- 1 root root 1614 Jan 7 19:55 ftxgasp.h
-rw-r--r-- 1 root root 6322 Jan 7 19:55 ftxgdef.h
-rw-r--r-- 1 root root 25892 Jan 7 19:55 ftxgpos.h
-rw-r--r-- 1 root root 20595 Jan 7 19:55 ftxgsub.h
-rw-r--r-- 1 root root 6199 Jan 7 19:55 ftxkern.h
-rw-r--r-- 1 root root 8600 Jan 7 19:55 ftxopen.h
-rw-r--r-- 1 root root 2161 Jan 7 19:55 ftxpost.h
-rw-r--r-- 1 root root 23446 Jan 7 19:55 ftxsbit.h
-rw-r--r-- 1 root root 3462 Jan 7 19:55 ftxwidth.h
/usr/include/freetype1:
total 4
drwxr-xr-x 2 root root 4096 Jan 7 18:53 freetype
/usr/include/freetype1/freetype:
total 212
-rw-r--r-- 1 root root 44056 Apr 19 2004 freetype.h
-rw-r--r-- 1 root root 5551 Apr 19 2004 fterrid.h
-rw-r--r-- 1 root root 32593 Apr 19 2004 ftnameid.h
-rw-r--r-- 1 root root 1710 Apr 19 2004 ftxcmap.h
-rw-r--r-- 1 root root 1576 Apr 19 2004 ftxerr18.h
-rw-r--r-- 1 root root 1614 Apr 19 2004 ftxgasp.h
-rw-r--r-- 1 root root 6322 Apr 19 2004 ftxgdef.h
-rw-r--r-- 1 root root 29832 Apr 19 2004 ftxgpos.h
-rw-r--r-- 1 root root 21147 Apr 19 2004 ftxgsub.h
-rw-r--r-- 1 root root 6199 Apr 19 2004 ftxkern.h
-rw-r--r-- 1 root root 8656 Apr 19 2004 ftxopen.h
-rw-r--r-- 1 root root 2161 Apr 19 2004 ftxpost.h
-rw-r--r-- 1 root root 23446 Apr 19 2004 ftxsbit.h
-rw-r--r-- 1 root root 3462 Apr 19 2004 ftxwidth.h
/usr/include/freetype2:
total 4
drwxr-xr-x 3 root root 4096 Jan 7 19:02 freetype
/usr/include/freetype2/freetype:
total 912
drwxr-xr-x 2 root root 4096 Jan 7 19:02 config
-rw-r--r-- 1 root root 205731 Jan 7 19:02 freetype.h
-rw-r--r-- 1 root root 4621 Jan 7 19:02 ftbbox.h
-rw-r--r-- 1 root root 6245 Jan 7 19:02 ftbdf.h
-rw-r--r-- 1 root root 12599 Jan 7 19:02 ftbitmap.h
-rw-r--r-- 1 root root 51405 Jan 7 19:02 ftcache.h
-rw-r--r-- 1 root root 6796 Jan 7 19:02 ftchapters.h
-rw-r--r-- 1 root root 11579 Jan 7 19:02 fterrdef.h
-rw-r--r-- 1 root root 9456 Jan 7 19:02 fterrors.h
-rw-r--r-- 1 root root 36303 Jan 7 19:02 ftglyph.h
-rw-r--r-- 1 root root 12596 Jan 7 19:02 ftgxval.h
-rw-r--r-- 1 root root 4288 Jan 7 19:02 ftgzip.h
-rw-r--r-- 1 root root 77787 Jan 7 19:02 ftimage.h
-rw-r--r-- 1 root root 10735 Jan 7 19:02 ftincrem.h
-rw-r--r-- 1 root root 16530 Jan 7 19:02 ftlist.h
-rw-r--r-- 1 root root 4256 Jan 7 19:02 ftlzw.h
-rw-r--r-- 1 root root 13983 Jan 7 19:02 ftmac.h
-rw-r--r-- 1 root root 22712 Jan 7 19:02 ftmm.h
-rw-r--r-- 1 root root 21043 Jan 7 19:02 ftmodapi.h
-rw-r--r-- 1 root root 7430 Jan 7 19:02 ftmoderr.h
-rw-r--r-- 1 root root 6995 Jan 7 19:02 ftotval.h
-rw-r--r-- 1 root root 31557 Jan 7 19:02 ftoutln.h
-rw-r--r-- 1 root root 6268 Jan 7 19:02 ftpfr.h
-rw-r--r-- 1 root root 11007 Jan 7 19:02 ftrender.h
-rw-r--r-- 1 root root 9561 Jan 7 19:02 ftsizes.h
-rw-r--r-- 1 root root 10017 Jan 7 19:02 ftsnames.h
-rw-r--r-- 1 root root 19535 Jan 7 19:02 ftstroke.h
-rw-r--r-- 1 root root 3245 Jan 7 19:02 ftsynth.h
-rw-r--r-- 1 root root 5606 Apr 19 2004 ftsysio.h
-rw-r--r-- 1 root root 6320 Apr 19 2004 ftsysmem.h
-rw-r--r-- 1 root root 10140 Jan 7 19:02 ftsystem.h
-rw-r--r-- 1 root root 8443 Jan 7 19:02 fttrigon.h
-rw-r--r-- 1 root root 34542 Jan 7 19:02 fttypes.h
-rw-r--r-- 1 root root 9731 Jan 7 19:02 ftwinfnt.h
-rw-r--r-- 1 root root 3081 Jan 7 19:02 ftxf86.h
-rw-r--r-- 1 root root 16298 Jan 7 19:02 t1tables.h
-rw-r--r-- 1 root root 54399 Jan 7 19:02 ttnameid.h
-rw-r--r-- 1 root root 38196 Jan 7 19:02 tttables.h
-rw-r--r-- 1 root root 4578 Jan 7 19:02 tttags.h
-rw-r--r-- 1 root root 2229 Jan 7 19:02 ttunpat.h
/usr/include/freetype2/freetype/config:
total 88
-rw-r--r-- 1 root root 11923 Jan 7 19:02 ftconfig.h
-rw-r--r-- 1 root root 22652 Jan 7 19:02 ftheader.h
-rw-r--r-- 1 root root 679 Jan 7 19:02 ftmodule.h
-rw-r--r-- 1 root root 37348 Jan 7 19:02 ftoption.h
-rw-r--r-- 1 root root 7905 Jan 7 19:02 ftstdlib.h
|
|
|
|
01-07-2007, 09:38 PM
|
#6
|
|
Senior Member
Registered: May 2005
Location: boston, usa
Distribution: fc-12/ fc-11-live-usb/ aix
Posts: 2,664
Original Poster
|
also i read this in the ./configure output:
Code:
checking for cairo's FreeType font backend...
checking for FONTCONFIG... checking whether cairo's FreeType font backend could be enabled... no (requires fontconfig
where is it looking for fontconfig?
this is the first time i got a failed dependancy from something i compiled something from tarball so i dont know how to resolve the dependancy.
thanks,
|
|
|
|
01-08-2007, 05:51 AM
|
#7
|
|
Moderator
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.4 OpenSuSE 12.2
Posts: 9,896
|
Quote:
the following font backends:
FreeType: no (requires fontconfig
Win32: no (requires a Win32 platform)
ATSUI: no (disabled, use --enable-atsui to enable)
|
It seems it does not recognize the installed Freetype. I can't figure out the reason for this, but you can try to re-install.
|
|
|
|
01-09-2007, 12:58 PM
|
#8
|
|
Senior Member
Registered: May 2005
Location: boston, usa
Distribution: fc-12/ fc-11-live-usb/ aix
Posts: 2,664
Original Poster
|
i experimented with cairo versions above 1.2.0 and eventually got thru this dependancy.
thanks,
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:51 PM.
|
|
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
|
|