Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2004:
[Freeciv-Dev] Re: (PR#7191) problem compiling gui-sdl with freetype
Home

[Freeciv-Dev] Re: (PR#7191) problem compiling gui-sdl with freetype

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jshort@xxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#7191) problem compiling gui-sdl with freetype
From: "Raimar Falke" <i-freeciv-lists@xxxxxxxxxxxxx>
Date: Sun, 4 Jan 2004 16:03:21 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=7191 >

On Sat, Jan 03, 2004 at 04:04:23PM -0800, Jason Short wrote:
> 
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=7191 >
> 
> gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I./.. -I./../include 
> -I../../common -I../../common/aicore -I../../intl -I./../agents 
> -I/usr/include/SDL -D_REENTRANT -I/usr/include/freetype2    -g -O -Wall 
> -Werror -Wcast-align -Wmissing-prototypes -Wmissing-declarations -c 
> SDL_ttf.c
> In file included from SDL_ttf.c:42:
> /usr/include/freetype2/freetype/freetype.h:20:2: #error "`ft2build.h' 
> hasn't been included yet!"
> /usr/include/freetype2/freetype/freetype.h:21:2: #error "Please always 
> use macros to include FreeType header files."
> /usr/include/freetype2/freetype/freetype.h:22:2: #error "Example:"
> /usr/include/freetype2/freetype/freetype.h:23:2: #error "  #include 
> <ft2build.h>"
> /usr/include/freetype2/freetype/freetype.h:24:2: #error "  #include 
> FT_FREETYPE_H"

I have touched this topic recently. Freetype really uses defines for
includes. I haven't seen this elsewhere.

I can't reproduce the error with freetype 2.1.4 here but the patch
should help.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "I do feel kind of sorry for Microsoft. Their attornies and marketing
  force must have tons of ulcers trying to figure out how to beat (not
  just co-exist with) a product that has no clearly defined (read
  suable) human owner, and that changes on an hourly basis like the
  sea changes the layout of the sand on a beach. Severely tough to
  fight something like that."
    -- David D.W. Downey at linux-kernel

Index: client/gui-sdl/SDL_ttf.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-sdl/SDL_ttf.c,v
retrieving revision 1.3
diff -u -u -r1.3 SDL_ttf.c
--- client/gui-sdl/SDL_ttf.c    2003/08/28 16:02:03     1.3
+++ client/gui-sdl/SDL_ttf.c    2004/01/05 00:00:44
@@ -39,10 +39,10 @@
 #define FREEA(p) free(p)
 #endif
 
-#include <freetype/freetype.h>
-#include <freetype/ftoutln.h>
-#include <freetype/ttnameid.h>
-#include <freetype/internal/ftobjs.h>
+#include <ft2build.h>
+#include FT_FREETYPE_H
+#include FT_OUTLINE_H
+#include FT_INTERNAL_OBJECTS_H
 
 #include "SDL.h"
 #include "SDL_endian.h"

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Re: (PR#7191) problem compiling gui-sdl with freetype, Raimar Falke <=