SlackwareThis Forum is for the discussion of Slackware Linux.
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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."
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.