|
Rockbox mail archiveSubject: WG: win32 compile errorWG: win32 compile error
From: Danijel Ilisin <d.ilisin_at_web.de>
Date: Fri, 20 Sep 2002 22:44:04 +0200 Also the win32 Makefile is not up to date - someone please fix that. I added the unix-Makefile entries to win32.mak, but this part gives a problem: $(TOOLSDIR)/convbdf -c -o $(OBJDIR)/sysfont.c $< The convbdf tool generates a sysfont.c with a font structure named "font_clR6x8" (not "sysfont") which gives you an error in font.c. By manually setting the structure-name to "sysfont" it now compiles and works fine on my recorder. So this is what I did: - fixed font.h (the stuff below) - fixed firmware\win32.mak, added: SYSTEM_FONT = fonts/alt6x10.bdf TOOLSDIR = ../tools ifeq (RECORDER,$(findstring RECORDER, $(CFLAGS))) OBJS += $(OBJDIR)/sysfont.o endif $(OBJDIR)/sysfont.o: fonts/clR6x8.bdf $(TOOLSDIR)/convbdf -c -o $(OBJDIR)/sysfont.c $< $(CC) $(CFLAGS) -c $(OBJDIR)/sysfont.c -o $_at_ - fixed generated sysfont.c (I guess convbdf has to be fixed): old: MWCFONT font_clR6x8 = { new: MWCFONT sysfont = { That's it. If you could fix that stuff in CVS so compile works fine again :) -Danijel -----Ursprüngliche Nachricht----- Von: owner-rockbox_at_cool.haxx.se [mailto:owner-rockbox_at_cool.haxx.se] Im Auftrag von Danijel Ilisin Gesendet: Freitag, 20. September 2002 22:34 An: rockbox_at_cool.haxx.se Betreff: WG: win32 compile error I fixed that. Font.h was missing: typedef unsigned short MWIMAGEBITS; /* bitmap image unit size*/ /* builtin C-based proportional/fixed font structure */ /* based on The Microwindows Project http://microwindows.org */ typedef struct { char * name; /* font name*/ int maxwidth; /* max width in pixels*/ int height; /* height in pixels*/ int ascent; /* ascent (baseline) height*/ int firstchar; /* first character in bitmap*/ int size; /* font size in glyphs*/ MWIMAGEBITS * bits; /* 16-bit right-padded bitmap data*/ unsigned long * offset; /* offsets into bitmap data*/ unsigned char * width; /* character widths or NULL if fixed*/ int defaultchar; /* default char (not glyph index)*/ long bits_size; /* # words of MWIMAGEBITS bits*/ /* unused by runtime system, read in by convbdf*/ char * facename; /* facename of font*/ char * copyright; /* copyright info for loadable fonts*/ int pixel_size; int descent; int fbbw, fbbh, fbbx, fbby; } MWCFONT, *PMWCFONT; -- was this a bug? -Danijel -----Ursprüngliche Nachricht----- Von: Danijel Ilisin [mailto:d.ilisin_at_wtnet.de] Gesendet: Freitag, 20. September 2002 22:28 An: 'rockbox_at_cool.haxx.se' Betreff: win32 compile error Latest CVS gives me this: I wonder - where is MWIMAGEBITS defined? Can't find a definition for that. -Danijel sh-elf-gcc -W -Wall -O -m1 -nostdlib -Wstrict-prototypes -Iinclude -I. -Icommon -Idrivers -DARCHOS_RECORDER=1 -DLCD_PROPFONTS -fomit-frame-pointer -fschedule-in sns -c ./sysfont.c -o sysfont.o sysfont.c:19: parse error before "_clR6x8_bits" sysfont.c:19: warning: type defaults to `int' in declaration of `_clR6x8_bits' sysfont.c:4010: warning: data definition has no type or storage class sysfont.c:4241: parse error before "font_clR6x8" sysfont.c:4241: warning: type defaults to `int' in declaration of `font_clR6x8' sysfont.c:4242: warning: initialization makes integer from pointer without a cas t sysfont.c:4243: warning: excess elements in scalar initializer sysfont.c:4243: warning: (near initialization for `font_clR6x8') sysfont.c:4244: warning: excess elements in scalar initializer sysfont.c:4244: warning: (near initialization for `font_clR6x8') sysfont.c:4245: warning: excess elements in scalar initializer sysfont.c:4245: warning: (near initialization for `font_clR6x8') sysfont.c:4246: warning: excess elements in scalar initializer sysfont.c:4246: warning: (near initialization for `font_clR6x8') sysfont.c:4247: warning: excess elements in scalar initializer sysfont.c:4247: warning: (near initialization for `font_clR6x8') sysfont.c:4248: warning: excess elements in scalar initializer sysfont.c:4248: warning: (near initialization for `font_clR6x8') sysfont.c:4249: warning: excess elements in scalar initializer sysfont.c:4249: warning: (near initialization for `font_clR6x8') sysfont.c:4250: warning: excess elements in scalar initializer sysfont.c:4250: warning: (near initialization for `font_clR6x8') sysfont.c:4251: warning: excess elements in scalar initializer sysfont.c:4251: warning: (near initialization for `font_clR6x8') sysfont.c:4252: `MWIMAGEBITS' undeclared here (not in a function) sysfont.c:4252: warning: excess elements in scalar initializer sysfont.c:4252: warning: (near initialization for `font_clR6x8') sysfont.c:4253: warning: data definition has no type or storage class make: *** [sysfont.o] Error 1 Received on 2002-09-20 Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |