LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-07-2007, 07:32 PM   #1
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,139

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
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,
 
Old 01-07-2007, 07:46 PM   #2
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,139

Original Poster
Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
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}
 
Old 01-07-2007, 08:08 PM   #3
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
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"
 
Old 01-07-2007, 10:07 PM   #4
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,139

Original Poster
Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
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...
 
Old 01-07-2007, 10:08 PM   #5
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,139

Original Poster
Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
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
 
Old 01-07-2007, 10:38 PM   #6
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,139

Original Poster
Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
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,
 
Old 01-08-2007, 06:51 AM   #7
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
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.
 
Old 01-09-2007, 01:58 PM   #8
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,139

Original Poster
Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
i experimented with cairo versions above 1.2.0 and eventually got thru this dependancy.

thanks,
 
  


Reply

Tags
cairo, font, freetype


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
libXext error when running ./configure gepesz Linux - Software 2 05-26-2011 08:08 AM
cairo in testing gefst Slackware 4 10-08-2006 05:19 PM
cairo-1.0.2 and 1.0.0 - error: CAIRO_FONT_SCALED_BACKEND_DEFAULT undeclared ForYouAndI.com Linux - Software 0 01-15-2006 07:42 PM
Configuration Error when running ./configure for gnucash cddesjar Linux - Software 2 04-28-2005 11:56 PM
kde prefix error when running ./configure hoopyfrood Linux - Software 1 04-25-2004 06:40 PM


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