LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-25-2004, 02:36 PM   #1
causticmtl
Member
 
Registered: May 2003
Distribution: Slackware 10.0
Posts: 41

Rep: Reputation: 15
Can't install fontconfig-2.2.92


Hey all,

I've been working on getting abiword-2.0.5 running under Slackware9.0 on Fluxbox and I've been trying to install of the packages it needs to install properly. gucharmap installed fine but I am at loss when it comes to installing fontconfig-2.2.92. The configure file doesn't raise any red flags, it's only when I type "make" that it fails:

make all-recursive
make[1]: Entering directory `/usr/local/src/fontconfig-2.2.92'
Making all in fontconfig
make[2]: Entering directory `/usr/local/src/fontconfig-2.2.92/fontconfig'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/src/fontconfig-2.2.92/fontconfig'
Making all in fc-lang
make[2]: Entering directory `/usr/local/src/fontconfig-2.2.92/fc-lang'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -I.. -I/usr/include/freetype2 -g -O2 -MT fc-lang.o -MD -MP -MF ".deps/fc-lang.Tpo" \
-c -o fc-lang.o `test -f 'fc-lang.c' || echo './'`fc-lang.c; \
then mv -f ".deps/fc-lang.Tpo" ".deps/fc-lang.Po"; \
else rm -f ".deps/fc-lang.Tpo"; exit 1; \
fi
make[2]: Leaving directory `/usr/local/src/fontconfig-2.2.92/fc-lang'
make[1]: Leaving directory `/usr/local/src/fontconfig-2.2.92'

I spotted the "if gcc -DHAVE" line makes reference to "/usr/include/freetype2". My freetype2 directory is in the /usr/X11R6/include directory, so I added it to my $PKG_CONFIG_PATH but still not luck. In passing I have freetype2-2.1.7 installed.

Any ideas where I'm going wrong?


Thanks in advance.
 
Old 03-25-2004, 02:52 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
there is nothing wrong. there are no errors there at all.
 
Old 03-25-2004, 03:35 PM   #3
causticmtl
Member
 
Registered: May 2003
Distribution: Slackware 10.0
Posts: 41

Original Poster
Rep: Reputation: 15
Argh!

How can I output the text generated by make to a text file?
 
Old 03-25-2004, 03:58 PM   #4
causticmtl
Member
 
Registered: May 2003
Distribution: Slackware 10.0
Posts: 41

Original Poster
Rep: Reputation: 15
This is really weird.

Doing make > log doesn't seem to properly save what I see on the screen to the file log.
 
Old 03-25-2004, 04:36 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
no, because errors will be placed in the standard error stream (stderr, 2), not the standard output (stdout, 1).

make > logfile 2>&1

would probably be a lot easier just to copy and paste it though
 
Old 03-25-2004, 05:02 PM   #6
causticmtl
Member
 
Registered: May 2003
Distribution: Slackware 10.0
Posts: 41

Original Poster
Rep: Reputation: 15
Ok, here it goes:

make all-recursive
make[1]: Entering directory `/usr/local/src/fontconfig-2.2.92'
Making all in fontconfig
make[2]: Entering directory `/usr/local/src/fontconfig-2.2.92/fontconfig'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/src/fontconfig-2.2.92/fontconfig'
Making all in fc-lang
make[2]: Entering directory `/usr/local/src/fontconfig-2.2.92/fc-lang'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -I.. -I/usr/include/freetype2 -g -O2 -MT fc-lang.o -MD -MP -MF ".deps/fc-lang.Tpo" \
-c -o fc-lang.o `test -f 'fc-lang.c' || echo './'`fc-lang.c; \
then mv -f ".deps/fc-lang.Tpo" ".deps/fc-lang.Po"; \
else rm -f ".deps/fc-lang.Tpo"; exit 1; \
fi
In file included from ../src/fcint.h:39,
from fc-lang.c:25:
../fontconfig/fcfreetype.h:27:31: freetype/freetype.h: No such file or directory
In file included from ../src/fcint.h:39,
from fc-lang.c:25:
../fontconfig/fcfreetype.h:32: parse error before "FcFreeTypeCharIndex"
../fontconfig/fcfreetype.h:32: parse error before "face"
../fontconfig/fcfreetype.h:32: warning: data definition has no type or storage class
../fontconfig/fcfreetype.h:35: parse error before "face"
../fontconfig/fcfreetype.h:38: parse error before "face"
../fontconfig/fcfreetype.h:41: parse error before "FT_Face"
../fontconfig/fcfreetype.h:44: parse error before "f"
In file included from fc-lang.c:25:
../src/fcint.h:547: parse error before "encoding"
make[2]: *** [fc-lang.o] Error 1
make[2]: Leaving directory `/usr/local/src/fontconfig-2.2.92/fc-lang'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/fontconfig-2.2.92'
make: *** [all] Error 2

I haven't gotten around to checking out how to give aterm copy/paste functionality yet. So I had to crate the file and then load it up in jedit.

Thanks
 
Old 03-25-2004, 05:09 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well it says it can't find the freetype headers, do you have freetype installed?
 
Old 03-25-2004, 05:12 PM   #8
causticmtl
Member
 
Registered: May 2003
Distribution: Slackware 10.0
Posts: 41

Original Poster
Rep: Reputation: 15
Yes, freetype2-2.1.7.
 
Old 03-25-2004, 05:19 PM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
hmm.. that's odd as the configure script does include an include to the freetype2 directory too... does /usr/include/freetype2/freetype/freetype.h definietly exist? that's the file it's looking for.
 
Old 03-25-2004, 05:24 PM   #10
causticmtl
Member
 
Registered: May 2003
Distribution: Slackware 10.0
Posts: 41

Original Poster
Rep: Reputation: 15
No, it doesn't exist there. For some reason, I have it installed under /usr/X11R6/include/freetype2/.

I tried to export PKG_CONFIG_PATH=/usr/X11R6/include/freetype2/ and it still doesn't work.
 
Old 03-31-2004, 04:21 AM   #11
yknott
LQ Newbie
 
Registered: Jan 2004
Posts: 4

Rep: Reputation: 0
same here

i too am having problems installing fontconfig

here is the output from the make

<pre>
make all-recursive
make[1]: Entering directory `/home/krugerk/downloads/fontconfig-2.2.0'
Making all in fontconfig
make[2]: Entering directory `/home/krugerk/downloads/fontconfig-2.2.0/fontconfig'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/krugerk/downloads/fontconfig-2.2.0/fontconfig'
Making all in fc-lang
make[2]: Entering directory `/home/krugerk/downloads/fontconfig-2.2.0/fc-lang'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -I/usr/local/include/freetype2 -I/usr/local/include -g -O2 -c fc-lang.c
In file included from ../fontconfig/fcfreetype.h:27,
from ../src/fcint.h:39,
from fc-lang.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[2]: *** [fc-lang.o] Error 1
make[2]: Leaving directory `/home/krugerk/downloads/fontconfig-2.2.0/fc-lang'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/krugerk/downloads/fontconfig-2.2.0'
make: *** [all-recursive-am] Error 2
</pre>


how about just adding the lines

#include "ft2build.h" // added
#include FT_FREETYPE_H

before the line

#include "fcint.h"

for each of the .c files?
 
Old 03-31-2004, 01:57 PM   #12
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 768

Rep: Reputation: 64
since I installed the latest Xfree86 packages, I have been having font problems, and it has led me to recompile freetype2 among other things. It may not be relevant to you, but I thought I would mention this.
My original freetype package came from Linuxpackages.net, ant it installed freetype in /usr, not /usr/local.
If you compiled the progam yourself, it will default to /usr/local unless you specify otherwise.
I'm not saying this is your problem, but it may be relevant.

Also, from freetype-2.1.7/docs/UPGRADE.UNX

" By default, the configure script will install the library in
"/usr/local". However, many Unix distributions now install the
library in "/usr", since FreeType is becoming a critical system
component.

If FreeType is already installed on your system, type

freetype-config --prefix

on the command line. This should return the installation path
(e.g., "/usr" or "/usr/local"). To avoid problems of parallel
FreeType versions, use this path for the --prefix option of the
configure script.

Otherwise, simply use "/usr" (or whatever you think is adequate for
your installation)."

and

"Certain recent Linux distributions will install _several_ versions
of FreeType on your system. For example, on a fresh Mandrake 8.1
system, you can find the following files:

/usr/lib/libfreetype.so which links to
/usr/lib/libfreetype.6.1.0.so

and

/usr/X11R6/lib/libfreetype.so which links to
/usr/X11R6/lib/libfreetype.6.0.so

Note that these files correspond to two distinct versions of the
library! It seems that this surprising issue is due to the install
scripts of recent XFree86 servers (from 4.1.0) which install their
own (dated) version of the library in "/usr/X11R6/lib".

In certain _rare_ cases you may experience minor problems if you
install this release of the library in "/usr" only, namely, that
certain applications will not benefit from the bug fixes and
rendering improvements you would expect.

There are two good ways to deal with this situation:

- Install the library _twice_, in "/usr" and in "/usr/X11R6" (you
have to do that each time you install a new FreeType release
though).

- Change the link in /usr/X11R6/lib/libfreetype.so to point to

/usr/lib/libfreetype.so,

and get rid of

/usr/X11R6/lib/libfreetype.6.0.so

The FreeType Team is not responsible for this problem, so please
contact either the XFree86 development team or your Linux
distributor to help clear this issue in case the information given
here doesn't help."

sorry this post is so long
tobyl

Last edited by tobyl; 03-31-2004 at 01:59 PM.
 
Old 06-18-2004, 03:31 AM   #13
DarShak
LQ Newbie
 
Registered: Jun 2004
Location: Geneva, Switzerland
Posts: 1

Rep: Reputation: 0
For yknott, if it's not too late!

<<<< quoting yknott:
In file included from ../fontconfig/fcfreetype.h:27,
from ../src/fcint.h:39,
from fc-lang.c:25:
>>>>

In your file "../fontconfig/fcfreetype.h", you should see this line:
#include <freetype/freetype.h>

Replace it with:
#include <ft2build.h>
#include FT_FREETYPE_H

It should compile now!
 
Old 08-16-2004, 09:26 AM   #14
JohnKFT
Member
 
Registered: Aug 2003
Location: NW Scotland
Distribution: Slackware 10
Posts: 169

Rep: Reputation: 30
DarShak,

Thank you for accidentally solving a most vexing problem for me. I have suddenly been unable to compile and run some programs because of the same sort of error about 'ft2build.h has not been included yet' - katoob and inkscape both calling it from some pango file. I changed the lines in the pango file and hey presto it all works. May I ask one more question of you please? Why should this be so? I cannot remember what I did except that I upgraded freetype2 and all I can think of is that maybe I had to upgrade pango as well and do not remember. I downgraded freetype thinking that was the problem but it made no difference.

I found your post by searching for freetype - serendipity rules OK.
 
  


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
Help trying to install fontconfig-2.2.90 EOHooligan Linux - Software 3 01-02-2005 05:55 PM
fontconfig install problem pasalacqua128 Linux - Software 1 11-28-2004 03:58 PM
Another problem........fontconfig-2.2.2 / fontconfig-2.2.94 xonner Linux - Software 2 04-28-2004 10:13 PM
fontconfig-2.2.93 install problem HighTechMan Linux - Software 0 04-19-2004 03:42 PM
fontconfig install problem hejduk Linux - Software 1 03-22-2003 03:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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