building tinyx with freetype2 problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I built freetype2 in /usr/local/. Here's the file structure. 
kevinzhu@magus:/usr/local/include# ls
ft2build.h  jerror.h    jpeglib.h  libpng12  pngconf.h   x264.h
x264_gtk_enum.h
freetype2  jconfig.h   jmorecfg.h  libpng     png.h     soundtouch
x264_gtk.h

and the library is in /usr/loca/lib/

I define Freetype2Dir /usr/local in my host.def file. When compiling the
source code, an error occurred.

/* part of host.def */

#define HasFreetype2     YES
#define Freetype2Dir      /usr/local

The error is as follows.
gcc -m32 -c -O2 -fno-strength-reduce -fno-strict-aliasing  -ansi -Wall
-Wpointer-arith -Wundef  -I. -I../../exports/include -I/usr/local/include
-I/usr/local/include/freetype2 -I../../extras/fontconfig/src
-I../../exports/include    -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L
-D_POSIX_SOURCE -D_XOPEN_SOURCE
-D_BSD_SOURCE -D_SVID_SOURCE                           -D_GNU_SOURCE
-DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS  -D_REENTRANT -DXUSE_MTSAFE_API
-DFC_DEFAULT_FONTS='""' -DHAVE_EXPAT -DXFREE86_FT2     -fPIC fcfreetype.c
fcfreetype.c:31:10: #include expects "FILENAME" or <FILENAME>
fcfreetype.c: In function `FcFreeTypeQuery':
fcfreetype.c:542: warning: implicit declaration of function
`FT_MODULE_CLASS'
fcfreetype.c:542: error: dereferencing pointer to incomplete type
fcfreetype.c:542: error: invalid type argument of `->'
fcfreetype.c:542: error: dereferencing pointer to incomplete type

Could anyone help me? Thanks in advance!

Regards,
Kevin

_______________________________________________
XFree86 mailing list
XFree86@xxxxxxxxxxx
http://XFree86.Org/mailman/listinfo/xfree86

[Index of Archives]     [X Forum]     [Xorg]     [XFree86 Newbie]     [IETF Announce]     [Security]     [Font Config]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux Kernel]

  Powered by Linux