Re: building tinyx with freetype2 problem

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

 



On Tue, 12 Jun 2007, kevin wrote:

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!

What XFree86 version are you trying to build. There have been several fixes in this area since 4.6.0.

Marc.

+----------------------------------+----------------------------------+
|  Marc Aurele La France           |  work:   1-780-492-9310          |
|  Academic Information and        |  fax:    1-780-492-1729          |
|    Communications Technologies   |  email:  tsi@xxxxxxxxxxx         |
|  352 General Services Building   +----------------------------------+
|  University of Alberta           |                                  |
|  Edmonton, Alberta               |    Standard disclaimers apply    |
|  T6G 2H1                         |                                  |
|  CANADA                          |                                  |
+----------------------------------+----------------------------------+
XFree86 developer and VP.  ATI driver and X server internals.
_______________________________________________
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