Linux - SoftwareThis 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
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'm trying to compile X.Org 6.8.1 on my Slackware 10.0 and I got this error in the log file.
Code:
In file included from ../../extras/fontconfig/src/fcint.h:38,
from fcatomic.c:49:
../../extras/fontconfig/fontconfig/fcfreetype.h:26:22: ft2build.h: No such file or directory
../../extras/fontconfig/fontconfig/fcfreetype.h:27:10: #include expects "FILENAME" or <FILENAME>
In file included from ../../extras/fontconfig/src/fcint.h:38,
from fcatomic.c:49:
../../extras/fontconfig/fontconfig/fcfreetype.h:30: error: parse error before "FcFreeTypeCharIndex"
../../extras/fontconfig/fontconfig/fcfreetype.h:30: error: parse error before "face"
../../extras/fontconfig/fontconfig/fcfreetype.h:30: warning: type defaults to `int' in declaration of `FcFreeTypeCharIndex'
../../extras/fontconfig/fontconfig/fcfreetype.h:30: error: ISO C forbids data definition with no type or storage class
../../extras/fontconfig/fontconfig/fcfreetype.h:33: error: parse error before "face"
../../extras/fontconfig/fontconfig/fcfreetype.h:36: error: parse error before "face"
../../extras/fontconfig/fontconfig/fcfreetype.h:39: error: parse error before "FT_Face"
../../extras/fontconfig/fontconfig/fcfreetype.h:42: warning: type defaults to `int' in declaration of `FT_Face'
../../extras/fontconfig/fontconfig/fcfreetype.h:42: error: parse error before "f"
In file included from fcatomic.c:49:
../../extras/fontconfig/src/fcint.h:496: error: parse error before "encoding"
fcatomic.c: In function `FcAtomicLock':
fcatomic.c:101: warning: unused variable `fd'
fcatomic.c:102: warning: unused variable `f'
make[4]: *** [fcatomic.o] Error 1
make[4]: Leaving directory `/home/daniel/build/lib/fontconfig'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/daniel/build/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/daniel/build'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/home/daniel/build'
make: *** [World] Error 2
Ok I installed freetype and now I'm getting another error.
Code:
In file included from ../../extras/fontconfig/fontconfig/fcfreetype.h:26,
from ../../extras/fontconfig/src/fcint.h:38,
from fcatomic.c:49:
/usr/local/include/ft2build.h:56:38: freetype/config/ftheader.h: No such file or directory
In file included from ../../extras/fontconfig/src/fcint.h:38,
from fcatomic.c:49:
../../extras/fontconfig/fontconfig/fcfreetype.h:27:10: #include expects "FILENAME" or <FILENAME>
In file included from ../../extras/fontconfig/src/fcint.h:38,
from fcatomic.c:49:
../../extras/fontconfig/fontconfig/fcfreetype.h:30: error: parse error before "FcFreeTypeCharIndex"
../../extras/fontconfig/fontconfig/fcfreetype.h:30: error: parse error before "face"
../../extras/fontconfig/fontconfig/fcfreetype.h:30: warning: type defaults to `int' in declaration of `FcFreeTypeCharIndex'
../../extras/fontconfig/fontconfig/fcfreetype.h:30: error: ISO C forbids data definition with no type or storage class
../../extras/fontconfig/fontconfig/fcfreetype.h:33: error: parse error before "face"
../../extras/fontconfig/fontconfig/fcfreetype.h:36: error: parse error before "face"
../../extras/fontconfig/fontconfig/fcfreetype.h:39: error: parse error before "FT_Face"
../../extras/fontconfig/fontconfig/fcfreetype.h:42: warning: type defaults to `int' in declaration of `FT_Face'
../../extras/fontconfig/fontconfig/fcfreetype.h:42: error: parse error before "f"
In file included from fcatomic.c:49:
../../extras/fontconfig/src/fcint.h:496: error: parse error before "encoding"
fcatomic.c: In function `FcAtomicLock':
fcatomic.c:101: warning: unused variable `fd'
fcatomic.c:102: warning: unused variable `f'
make[4]: *** [fcatomic.o] Error 1
make[4]: Leaving directory `/home/daniel/build/lib/fontconfig'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/daniel/build/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/daniel/build'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/home/daniel/build'
make: *** [World] Error 2
This time it found the ft2build.h file but not the ftheader.h file. I think it's looking in the wrong folder for it because I have it in /usr/local/include/freetype2/freetype/config.
Edit: I found the problem... there's supposed to be a symlink to freetype2/freetype called freetype in /usr/local/include.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.