LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-06-2005, 05:46 PM   #1
jupiter3437
Member
 
Registered: May 2005
Distribution: fc3
Posts: 64

Rep: Reputation: 15
compile Xft


When i want make the Xft-2.1.2 this error appears
make all-am
make[1]: Entering directory `/root/xft-2.1.2'
if /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -I/usr/include/freetype2 -I/usr/local/include -I/usr/X11R6/include -g -O2 -MT xftcolor.lo -MD -MP -MF ".deps/xftcolor.Tpo" \
-c -o xftcolor.lo `test -f 'xftcolor.c' || echo './'`xftcolor.c; \
then mv ".deps/xftcolor.Tpo" ".deps/xftcolor.Plo"; \
else rm -f ".deps/xftcolor.Tpo"; exit 1; \
fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -I/usr/include/freetype2 -I/usr/local/include -I/usr/X11R6/include -g -O2 -MT xftcolor.lo -MD -MP -MF .deps/xftcolor.Tpo -c xftcolor.c -fPIC -o .libs/xftcolor.o
In file included from Xft.h:41,
from xftint.h:39,
from xftcolor.c:25:
/usr/include/freetype2/freetype/freetype.h:33:21: fterrid.h: No such file or directory
/usr/include/freetype2/freetype/freetype.h:34:22: ftnameid.h: No such file or directory
In file included from xftint.h:39,
from xftcolor.c:25:
Xft.h:58: error: syntax error before "_XftFTlibrary"
Xft.h:58: warning: data definition has no type or storage class
Xft.h:92: error: syntax error before "FT_UInt"
Xft.h:92: warning: no semicolon at end of struct or union
Xft.h:95: error: syntax error before '}' token
Xft.h:95: warning: data definition has no type or storage class
Xft.h:99: error: syntax error before "FT_UInt"
Xft.h:99: warning: no semicolon at end of struct or union
Xft.h:102: error: syntax error before '}' token
Xft.h:102: warning: data definition has no type or storage class
Xft.h:196: error: syntax error before '*' token
Xft.h:262: error: syntax error before '*' token
Xft.h:268: error: syntax error before '*' token
Xft.h:301: error: syntax error before '*' token
Xft.h:360: error: syntax error before "XftLockFace"
Xft.h:360: warning: data definition has no type or storage class
Xft.h:399: error: syntax error before '*' token
Xft.h:405: error: syntax error before '*' token
Xft.h:414: error: syntax error before "FT_UInt"
Xft.h:424: error: syntax error before "XftCharIndex"
Xft.h:426: warning: data definition has no type or storage class
Xft.h:467: error: syntax error before '*' token
Xft.h:478: error: syntax error before '*' token
Xft.h:499: error: syntax error before '*' token
In file included from xftint.h:41,
from xftcolor.c:25:
/usr/local/include/fontconfig/fcfreetype.h:33: error: syntax error before "FcFreeTypeCharIndex"
/usr/local/include/fontconfig/fcfreetype.h:33: error: syntax error before "face"
/usr/local/include/fontconfig/fcfreetype.h:36: error: syntax error before "face"
/usr/local/include/fontconfig/fcfreetype.h:39: error: syntax error before "face"
/usr/local/include/fontconfig/fcfreetype.h:42: error: syntax error before "FT_Face"
/usr/local/include/fontconfig/fcfreetype.h:45: error: syntax error before "f"
In file included from xftcolor.c:25:
xftint.h:67: error: syntax error before "FT_UInt"
xftint.h:67: warning: no semicolon at end of struct or union
xftint.h:68: warning: data definition has no type or storage class
xftint.h:84: error: syntax error before "FT_F26Dot6"
xftint.h:84: warning: no semicolon at end of struct or union
xftint.h:85: warning: data definition has no type or storage class
xftint.h:86: error: syntax error before "matrix"
xftint.h:86: warning: data definition has no type or storage class
xftint.h:89: error: syntax error before "face"
xftint.h:89: warning: data definition has no type or storage class
xftint.h:90: warning: data definition has no type or storage class
xftint.h:102: error: syntax error before "XftFtFile"
xftint.h:102: warning: no semicolon at end of struct or union
xftint.h:106: warning: data definition has no type or storage class
xftint.h:109: error: syntax error before "matrix"
xftint.h:109: warning: data definition has no type or storage class
xftint.h:111: error: syntax error before "load_flags"
xftint.h:111: warning: data definition has no type or storage class
xftint.h:119: error: syntax error before '}' token
xftint.h:129: error: field `info' has incomplete type
xftint.h:141: error: syntax error before "XftUcsHash"
xftint.h:141: warning: no semicolon at end of struct or union
xftint.h:155: error: syntax error before '}' token
xftint.h:155: warning: data definition has no type or storage class
xftint.h:312: error: syntax error before '*' token
xftint.h:319: error: syntax error before '*' token
xftint.h:325: error: syntax error before '*' token
xftint.h:370: error: syntax error before '*' token
make[1]: *** [xftcolor.lo] Error 1
make[1]: Leaving directory `/root/xft-2.1.2'
make: *** [all] Error 2
********************************************************************
pleaze help me...thanks
 
Old 05-07-2005, 05:25 PM   #2
jupiter3437
Member
 
Registered: May 2005
Distribution: fc3
Posts: 64

Original Poster
Rep: Reputation: 15
plaeze answer to my question...this is very important for me
 
Old 05-08-2005, 04:53 AM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
This is clearly not a Success Story. Moved to Linux - General.

Welcome to LQ
 
Old 05-08-2005, 12:20 PM   #4
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Quote:
In file included from Xft.h:41,
from xftint.h:39,
from xftcolor.c:25:
/usr/include/freetype2/freetype/freetype.h:33:21: fterrid.h: No such file or directory
/usr/include/freetype2/freetype/freetype.h:34:22: ftnameid.h: No such file or directory
That's the root cause of your problem. There are at least two files required to compile the program that are missing. Judging by their name, they are probably freetype library header files. I don't know whether they're freetype or freetype2, but I would guess freetype.

So, you need to figure out what software provides those files (I would suggest a Google search), and then find out how to install them. A common problem might be not installing "-devel" packages if you're using a distro with package management. Otherwise, the software may be included in a non-standard place which would require tweaking the arguments to the configure script or possibly even changing the CFLAGS environment variable.

Unfortunately, that's about all the help I can give.
 
Old 05-08-2005, 05:07 PM   #5
jupiter3437
Member
 
Registered: May 2005
Distribution: fc3
Posts: 64

Original Poster
Rep: Reputation: 15
I solve this problem but another error appers
make all-am
make[1]: Entering directory `/root/xft-2.1.2'
if /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/lo
cal/include -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/i
nclude -I/usr/X11R6/include -g -O2 -MT xftcolor.lo -MD -MP -MF ".deps/xftcolor
.Tpo" \
-c -o xftcolor.lo `test -f 'xftcolor.c' || echo './'`xftcolor.c; \
then mv ".deps/xftcolor.Tpo" ".deps/xftcolor.Plo"; \
else rm -f ".deps/xftcolor.Tpo"; exit 1; \
fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include -I/usr/X11R6/include -g -O2 -MT xftcolor.lo -MD -MP -MF .deps/xftcolor.Tpo -c xftcolor.c -fPIC -o .libs/xftcolor.o
In file included from Xft.h:41,
from xftint.h:39,
from xftcolor.c:25:
/usr/local/include/freetype2/freetype/freetype.h:20:2: #error "`ft2build.h' hasn't been included yet!"
/usr/local/include/freetype2/freetype/freetype.h:21:2: #error "Please always use macros to include FreeType header files."
/usr/local/include/freetype2/freetype/freetype.h:22:2: #error "Example:"
/usr/local/include/freetype2/freetype/freetype.h:23:2: #error " #include <ft2build.h>"
/usr/local/include/freetype2/freetype/freetype.h:24:2: #error " #include FT_FREETYPE_H"
make[1]: *** [xftcolor.lo] Error 1
make[1]: Leaving directory `/root/xft-2.1.2'
make: *** [all] Error 2
 
Old 05-08-2005, 05:36 PM   #6
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
This is a problem with the way the software that uses freetype2 was written; not with your system or freetype2 itself.

To fix this, you need to edit some files. In the output you provided:
Quote:
In file included from Xft.h:41,
from xftint.h:39,
from xftcolor.c:25:
/usr/local/include/freetype2/freetype/freetype.h:20:2: #error "`ft2build.h' hasn't been included yet!"
/usr/local/include/freetype2/freetype/freetype.h:21:2: #error "Please always use macros to include FreeType header files."
/usr/local/include/freetype2/freetype/freetype.h:22:2: #error "Example:"
/usr/local/include/freetype2/freetype/freetype.h:23:2: #error " #include <ft2build.h>"
/usr/local/include/freetype2/freetype/freetype.h:24:2: #error " #include FT_FREETYPE_H"
You need to open xftcolor.c and change line 25. Specifically, line 25 should look like this:
Code:
 #include <freetype.h>
or
Code:
#include <freetype/freetype.h>
You need to change it by adding the lines in red and commenting out the original line. For instance:
Code:
 #include <ft2build.h>
 #include FT_FREETYPE_H
/* #include <freetype.h> */
This should address the problem for that file only. There may be other files that require this change. You'll find out when you try compiling again. All the errors will look similar.

Again, this isn't something wrong that you did. You can blame others for this. Either you can gripe at the Xft library maintainers for not updating their source code to handle freetype2's new header scheme, or you can gripe at the freetype2 guys for breaking backwards compatibility... Actually, you could gripe at both if you really wanted to.
 
Old 05-09-2005, 03:01 AM   #7
jupiter3437
Member
 
Registered: May 2005
Distribution: fc3
Posts: 64

Original Poster
Rep: Reputation: 15
in the line 25,there was not #include <freetype.h>
but there was #include <xftint.h>...and i added those instructions them but my problem not solve yet..pleaze help me more....
 
Old 05-09-2005, 09:20 AM   #8
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
I looked at the files I have for Xft (I have a previous version), and the reference to freetype.h is actually in Xft.h. I'm not exactly sure why gcc does not report where the error came from all the way back to the source.

Regardless, what you need to do is this:
1. Remove the edits you made to xftcolor.c - put the file back to how it looked originally
2. Look through all the files in Xft for a "#include <freetype.h>" or "#include <freetype/freetype.h>". Do this with whatever method you're comfortable with: opening files by hand, using grep, or whatever else.
3. Make the replacements as I mentioned before:
Add
Code:
#include <ft2build.h>
#include FT_FREETYPE_H
/* #finclude <freetype.h> */
4. Try to recompile
 
Old 05-12-2005, 06:29 PM   #9
jupiter3437
Member
 
Registered: May 2005
Distribution: fc3
Posts: 64

Original Poster
Rep: Reputation: 15
I changed that file and xft was complied without error, but when i want install gtk this error appears:
configure: error: Xft Pango backend is required for x11 target
what can i do????????????????
 
Old 05-13-2005, 03:03 PM   #10
jupiter3437
Member
 
Registered: May 2005
Distribution: fc3
Posts: 64

Original Poster
Rep: Reputation: 15
Dark_Helmet....pleaze help me
 
Old 05-13-2005, 04:01 PM   #11
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
you didn't include xft support when you built pango ( which it does automatically if you do it correctly, it's all in the directions that come with pango).

remove the pango you built earlier, untar a new one and cd into it.
do your ./configure --xxxxxxx
at the end of configure, it presents a summary of which backends are to be built, MAKE SURE xft is listed. if it is not, you will need to edit your PKG_CONFIG_PATH to point to wherever you installed xft, for example is you installed xft in /usr/X11R6:

export PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig:$PKG_CONFIG_PATH

then reconfigure pango and build it.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xft fonts. Alderian Linux - General 1 12-27-2005 01:33 AM
Mozilla and xft Warg Linux - Software 10 02-25-2005 07:09 PM
xft - dumb question cs-cam Linux - Newbie 2 01-27-2005 06:15 AM
xft.pc and/or fontconfig.pc rose_bud4201 Linux - Software 1 04-09-2003 02:19 AM
XFT support? EddieX Linux - General 4 01-01-2003 04:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:57 AM.

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