LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 12-21-2012, 10:56 AM   #1
Bloehdian
LQ Newbie
 
Registered: Dec 2012
Posts: 8

Rep: Reputation: Disabled
Error when building cairo on linux


Hello folks,

I am trying to install Cairo 1.12.8 (locally) on a Red Hat Enterprise Linux 5.4.

Configure works fine with the following settings:

Code:
export PKG_CONFIG_PATH=$PRJ/gtk+/pixman-0.22.0//lib/pkgconfig
export CPPFLAGS="-I$PRJ/gtk+/freetype/include"
export LDFLAGS="-L$PRJ/gtk+/freetype/lib"

./configure --prefix=$PRJ/gtk+/cairo-1.12.8
(with $PRJ containing the path to my project-diretory residing under my home directory; freetpye is of version 2.4.10).

But when it comes to make, I get the following error messages:

Code:
cairo-ft-font.c:64:10: error: #include expects "FILENAME" or <FILENAME>
cairo-ft-font.c: In function '_render_glyph_outline':
cairo-ft-font.c:1377: error: implicit declaration of function 'FT_Library_SetLcdFilter'
cairo-ft-font.c:1377: warning: nested extern declaration of 'FT_Library_SetLcdFilter'
make[3]: *** [cairo-ft-font.lo] Error 1
make[3]: Leaving directory `$PRJ/cpn/gtk+/cairo-1.12.8/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `$PRJ/cpn/gtk+/cairo-1.12.8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `$PRJ/cpn/gtk+/cairo-1.12.8'
make: *** [all] Error 2
(substituted $PRJ for the path spec in the "Leaving directory"-lines by hand)

Any ideas?

Cheers

Last edited by Bloehdian; 12-21-2012 at 10:57 AM.
 
Old 12-24-2012, 04:10 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,138

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
What is line 64 of $PRJ/cpn/gtk+/cairo-1.12.8/src/cairo-ft-font.c?
 
Old 12-26-2012, 01:48 PM   #3
Bloehdian
LQ Newbie
 
Registered: Dec 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi smallpond,

I attached the file.

But, to make life easier for You I made excerpts of the lines for which make throws errors:

lines 63-65:

Code:
63: #if HAVE_FT_LIBRARY_SETLCDFILTER
64: #include FT_LCD_FILTER_H
65: #endif
It seems to me (not being a c-programming expert ;-)) that FT_LCD_FILTER_H is not set and therefor the #include-directive fails (in contrast to other, similar #include-directives using constants to load header-files).

lines 1376-1378:

Code:
1376: #if HAVE_FT_LIBRARY_SETLCDFILTER
1377:	FT_Library_SetLcdFilter (library, lcd_filter);
1378: #endif
Can You help me with this?

Cheers


Bloehdian
Attached Files
File Type: txt cairo-ft-font.c.txt (98.4 KB, 26 views)
 
Old 12-26-2012, 06:18 PM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,138

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Try updating libXft
 
Old 12-27-2012, 08:21 AM   #5
Bloehdian
LQ Newbie
 
Registered: Dec 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi smallpond,

thx, I will try this out as soon as I have access to the equipment in the office again (which will be beginning of next year, after my holidays ;-)))

Cheers


Bloehdian
 
Old 01-11-2013, 10:26 AM   #6
Bloehdian
LQ Newbie
 
Registered: Dec 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi,

meanwhile I tried to install libxft. I tried to link it with the current version (2.10.2) of fontconfig using the following assignments:

Code:
export LDFLAGS="-L$PRJ/gtk+/fontconfig/lib"
export CPPFLAGS="-I$PRJ/gtk+/fontconfig/include/fontconfig"
(with $PRJ containing the path to my project-diretory residing under my home directory)

Nevertheless I get the following error messages after issueing the command line ./configure --prefix="$PRJ/gtk+/libxft":

Code:
Package xorg-macros was not found in the pkg-config search path.
Perhaps you should add the directory containing `xorg-macros.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xorg-macros' found
checking for XRENDER... yes
checking for FREETYPE... yes
checking for FONTCONFIG... configure: error: Package requirements (fontconfig >= 2.5.92) were not met:

Requested 'fontconfig >= 2.5.92' but version of Fontconfig is 2.4.1

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
and FONTCONFIG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
I guess that the first error message (concerning the xorg-macros package) aims specifically at the corresponding m4-file (xorg-macros.m4). I found a copy of this file installed on the machine at hand, but I do not know how to tell configure where to find it (the file xorg-macros.pc does not exist on the machine). Any suggestions?

From my point of view the settings for LDFLAGS and CPPFLAGS are correct, but configure does not know about the version pointed to by the environment. Is it possible that there is a connection between the "missing" macros file and the problem with the fontconfig version? Or am I missing out something else?

Cheers


Bloehdian
 
  


Reply



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 while installing Cairo raj_msce Linux - Software 3 11-12-2010 01:19 AM
cairo installation error jaepi Linux - Software 6 06-08-2008 01:28 AM
Error build pango with cairo support tuanphan Linux - Software 1 02-13-2007 04:54 PM
error when running ./configure for cairo schneidz Linux - Software 7 01-09-2007 12:58 PM
cairo-1.0.2 and 1.0.0 - error: CAIRO_FONT_SCALED_BACKEND_DEFAULT undeclared ForYouAndI.com Linux - Software 0 01-15-2006 06:42 PM

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

All times are GMT -5. The time now is 11:00 PM.

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
Open Source Consulting | Domain Registration