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

kłopot z kompilacją.



hejka,

od ponad godziny męczę się z kompilacją libgd1g. mój debian to potato,
źródło jest wzięte z woody'ego (bo potrzebuję nowszą wersję tej biblioteki).
c znam pobieżnie i brakuje mi już pomysłów co może być przyczyną poniższych
komunikatów:

gcc -I. -I.. -I/usr/include/freetype -I/usr/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include -D_REENTRANT -O2 -fPIC -pipe -DHAVE_LIBPNG -DHAVE_LIBTTF -DHAVE_XPM -DHAVE_LIBJPEG -DHAVE_JPEG   -c -o gdttf.o ../gdttf.c
../gdttf.c:64: parse error before `TT_Engine'
../gdttf.c:64: warning: no semicolon at end of struct or union
../gdttf.c:65: warning: data definition has no type or storage class
../gdttf.c:66: parse error before `properties'
../gdttf.c:66: warning: data definition has no type or storage class
../gdttf.c:67: parse error before `instance'
../gdttf.c:67: warning: data definition has no type or storage class
../gdttf.c:68: parse error before `char_map_Unicode'
../gdttf.c:68: warning: data definition has no type or storage class
../gdttf.c:70: parse error before `matrix'
../gdttf.c:70: warning: data definition has no type or storage class
../gdttf.c:71: parse error before `imetrics'
../gdttf.c:71: warning: data definition has no type or storage class
../gdttf.c:73: parse error before `}'
../gdttf.c:73: warning: data definition has no type or storage class
../gdttf.c:79: parse error before `TT_Engine'
../gdttf.c:79: warning: no semicolon at end of struct or union
../gdttf.c:80: warning: data definition has no type or storage class
../gdttf.c:85: parse error before `TT_Glyph'

(i tak dalej jeszcze kilkadziesiąt linijek)

z powyższego wywnioskowałem iż błąd kryje się gdzieś we fragmencie:

/* Line separation as a factor of font height.
        No space between if LINESPACE = 1.00
        Line separation will be rounded up to next pixel row */
#define LINESPACE 1.05

#ifndef TRUE
#define FALSE 0
#define TRUE !FALSE
#endif

#define MAX(a,b) ((a)>(b)?(a):(b))
#define MIN(a,b) ((a)<(b)?(a):(b))

typedef struct {
        char                            *fontname;      /* key */
        double                          ptsize;         /* key */
        double                          angle;          /* key */
        double                          sin_a, cos_a;
        TT_Engine                       *engine;        /* 64 linijka */
        TT_Face                         face;
        TT_Face_Properties              properties;
        TT_Instance                     instance;
        TT_CharMap                      char_map_Unicode, char_map_Big5, char_map_Sjis, char_map_Roman;
        int                             have_char_map_Unicode, have_char_map_Big5, have_char_map_Sjis, have_char_map_Roman;
        TT_Matrix                       matrix;
        TT_Instance_Metrics             imetrics;
        gdCache_head_t                  *glyphCache;
} font_t;

tylko że jak dla mnie, wszystko wygląda poprawnie.

będę wdzięczny jeśli komuś będzie się chciało skompilować tę bibliotekę
na potato (potrzebne -dev do ttf, xlibs i jeszcze czegoś) i wystawić ją
na jakimś ftp. oczywiście, korekta do źródeł również mile widziana.

m.m.
-- 
 use gnus not guns!



Reply to: