LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Compiling X.Org Error (https://www.linuxquestions.org/questions/linux-software-2/compiling-x-org-error-233594/)

AFI_Flame 09-21-2004 08:43 PM

Compiling X.Org Error
 
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


CroMagnon 09-21-2004 10:08 PM

Make sure you have libfreetype6 installed (development version, if slackware splits those up like debian does).

AFI_Flame 09-21-2004 11:51 PM

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.

yanger 10-10-2004 06:04 PM

Eh, can you explain where you got libfreetype6 from?

AFI_Flame 10-10-2004 07:08 PM

google my friend

http://www.freetype.org/

mkools 10-27-2004 05:32 PM

Quote:

Originally posted by AFI_Flame
google my friend

http://www.freetype.org/

I solved this one after a long search
upgrade to the latest dev-version of fontconfig
I got it by CVS.

whansard 06-03-2005 03:33 AM

Quote:

Originally posted by AFI_Flame
Ok I installed freetype and now I'm getting another error.

[CODE]

Edit: I found the problem... there's supposed to be a symlink to freetype2/freetype called freetype in /usr/local/include.


This just saved me some time.

titopoquito 07-01-2005 03:11 PM

EDIT: Sorry, wrong threat.



All times are GMT -5. The time now is 07:50 AM.