[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
some error occur when compile snapshop version microwindows
From: loody ####@####.#### Date: 8 Feb 2010 13:25:43 -0000 Message-Id: <3a665c761002080525rbb77ac4v52702a28c4eb94e6@mail.gmail.com> Dear all: I download the snapshop version of micro window and cross compile. I have the following error message : (I purposely add CURDIR, MW_DIR_SRC and CONFIG in the Makefile.rules for debugging) Compiling engine/font_fnt.c ... CURDIR /media/sdb1/software/nano-window/microwin/src/mwin MW_DIR_SRC /media/sdb1/software/nano-window/microwin/src CONFIG /media/sdb1/software/nano-window/microwin/src/config mipsel-linux-gcc -c -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FREETYPE_2_SUPPORT=1 -DFREETYPE_FONT_DIR=\""fonts/truetype"\" -DHAVETEXTMODE=1 -DTHREADSAFE=1 -DFBVGA=1 -DERASEMOVE=1 -DUPDATEREGIONS=1 -DDEBUG=1 -DLINUX=1 -DUNIX=1 -O -msoft-float -Wall -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-prototypes -ggdb -O0 -I. -I/media/sdb1/software/nano-window/microwin/src/include -I/usr/include -I/usr/include/freetype2 -o /media/sdb1/software/nano-window/microwin/src/obj/engine/font_fnt.o /media/sdb1/software/nano-window/microwin/src/engine/font_fnt.c /media/sdb1/software/nano-window/microwin/src/engine/font_fnt.c: In function 'fnt_load_font': /media/sdb1/software/nano-window/microwin/src/engine/font_fnt.c:253: error: 'FNT_FONT_DIR' undeclared (first use in this function) /media/sdb1/software/nano-window/microwin/src/engine/font_fnt.c:253: error: (Each undeclared identifier is reported only once /media/sdb1/software/nano-window/microwin/src/engine/font_fnt.c:253: error: for each function it appears in.) /media/sdb1/software/nano-window/microwin/src/engine/font_fnt.c:253: error: expected ')' before string constant make[1]: *** [/media/sdb1/software/nano-window/microwin/src/obj/engine/font_fnt.o] Error 1 make[1]: Leaving directory `/media/sdb1/software/nano-window/microwin/src/mwin' make: *** [subdir-/media/sdb1/software/nano-window/microwin/src/mwin] Error 2 and my config is attached at this letter. and the FNT_FONT_DIR is defined as below: HAVE_FNT_SUPPORT = Y HAVE_FNTGZ_SUPPORT = Y FNT_FONT_DIR = "fonts/bdf" But why I still get the error that font_fnt.c cannot find the FNT_FONT_DIR? ( config is alread include in mwin/Makefile as below: ifndef MW_DIR_SRC MW_DIR_SRC := $(CURDIR)/.. endif MW_DIR_RELATIVE := mwin/ include $(MW_DIR_SRC)/Path.rules include $(CONFIG) ) If I miss something or get some setting fail, please let me know. appreciate your help, miloody [Content type application/octet-stream not shown. Download] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] some error occur when compile snapshop version microwindows
From: "Greg Haerr" ####@####.#### Date: 9 Feb 2010 03:14:22 -0000 Message-Id: <016501caa935$ac2f43e0$6464a8c0@winXP> All this is pretty strange. First, the engine/font_fnt.c is compiled when in engine/ not mwin/, so I'm not sure why this is compiling in the mwin dir. Also, the -DFNT_FONT_DIR=... is added in src/Makefile.rules, look for it. Perhaps this portion was screwed up when you modified src/Makefile.rules for debugging. The problem is definitely that the gcc line is NOT providing a -DFNT_FONT_DIR= from the config file, even though the same portion is creating the -DFREETYPE_FONT_DIR= for instance. If all else fails, check your version of make. I'm running GNU make v3.81. The problem looks to be in the modified Makefile.rules or running the make in mwin, instead of src. Regards, Greg : I download the snapshop version of micro window and cross compile. : I have the following error message : : (I purposely add CURDIR, MW_DIR_SRC and CONFIG in the Makefile.rules : for debugging) : : Compiling engine/font_fnt.c ... : CURDIR /media/sdb1/software/nano-window/microwin/src/mwin : MW_DIR_SRC /media/sdb1/software/nano-window/microwin/src : CONFIG /media/sdb1/software/nano-window/microwin/src/config : mipsel-linux-gcc -c -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 : -DHAVE_FREETYPE_2_SUPPORT=1 -DFREETYPE_FONT_DIR=\""fonts/truetype"\" : -DHAVETEXTMODE=1 -DTHREADSAFE=1 -DFBVGA=1 -DERASEMOVE=1 : -DUPDATEREGIONS=1 -DDEBUG=1 -DLINUX=1 -DUNIX=1 -O -msoft-float -Wall : -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast : -Wmissing-prototypes -ggdb -O0 -I. : -I/media/sdb1/software/nano-window/microwin/src/include -I/usr/include : -I/usr/include/freetype2 -o : /media/sdb1/software/nano-window/microwin/src/obj/engine/font_fnt.o : /media/sdb1/software/nano-window/microwin/src/engine/font_fnt.c : /media/sdb1/software/nano-window/microwin/src/engine/font_fnt.c: In : function 'fnt_load_font': : /media/sdb1/software/nano-window/microwin/src/engine/font_fnt.c:253: : error: 'FNT_FONT_DIR' undeclared (first use in this function) : /media/sdb1/software/nano-window/microwin/src/engine/font_fnt.c:253: : error: (Each undeclared identifier is reported only once : /media/sdb1/software/nano-window/microwin/src/engine/font_fnt.c:253: : error: for each function it appears in.) : /media/sdb1/software/nano-window/microwin/src/engine/font_fnt.c:253: : error: expected ')' before string constant : make[1]: *** [/media/sdb1/software/nano-window/microwin/src/obj/engine/font_fnt.o] : Error 1 : make[1]: Leaving directory `/media/sdb1/software/nano-window/microwin/src/mwin' : make: *** [subdir-/media/sdb1/software/nano-window/microwin/src/mwin] Error 2 : : and my config is attached at this letter. : and the FNT_FONT_DIR is defined as below: : : HAVE_FNT_SUPPORT = Y : HAVE_FNTGZ_SUPPORT = Y : FNT_FONT_DIR = "fonts/bdf" : : But why I still get the error that font_fnt.c cannot find the FNT_FONT_DIR? : ( config is alread include in mwin/Makefile as below: : : ifndef MW_DIR_SRC : MW_DIR_SRC := $(CURDIR)/.. : endif : MW_DIR_RELATIVE := mwin/ : include $(MW_DIR_SRC)/Path.rules : include $(CONFIG) : ) : : If I miss something or get some setting fail, please let me know. : appreciate your help, : miloody : -------------------------------------------------------------------------------- : : --------------------------------------------------------------------- : To unsubscribe, e-mail: ####@####.#### : For additional commands, e-mail: ####@####.#### | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] some error occur when compile snapshop version
microwindows
From: loody ####@####.#### Date: 9 Feb 2010 09:50:43 -0000 Message-Id: <3a665c761002090150n5f9c60a3vc70a756316085834@mail.gmail.com> Hi: 2010/2/9 Greg Haerr ####@####.#### > All this is pretty strange. First, the engine/font_fnt.c is compiled > when in engine/ not mwin/, so I'm not sure why this is compiling > in the mwin dir. From mwin/Makefile, it include Objects.rules in engine. MW_CORE_OBJS := include $(MW_DIR_SRC)/engine/Objects.rules include $(MW_DIR_SRC)/fonts/Objects.rules include $(MW_DIR_SRC)/drivers/Objects.rules And I guess that is the reason why font_fnt.c is compiled when in mwin not in engine. > > Also, the -DFNT_FONT_DIR=... is added in src/Makefile.rules, > look for it. Perhaps this portion was screwed up when you > modified src/Makefile.rules for debugging. I have retar the snapshop source and get the same result. > > The problem is definitely that the gcc line is NOT providing > a -DFNT_FONT_DIR= from the config file, even though the > same portion is creating the -DFREETYPE_FONT_DIR= > for instance. > > If all else fails, check your version of make. I'm running > GNU make v3.81. The problem looks to be in the modified > Makefile.rules or running the make in mwin, instead of src. Does that come from we include engine/Object.rulse in mwin? in engine/Object.rules ifeq ($(HAVE_FNT_SUPPORT), Y) MW_CORE_OBJS += $(MW_DIR_OBJ)/engine/font_fnt.o endif For not stocking in the previous problem, I add -DFNT_FONT_DIR by hand while compiling font_fnt.c. but I have another problem. I get the error as the end of letter. it seems I open the option that calling vga functions by i386 standard asm call. How to turn it off, since I cannot see it in xconfigure? My system is an embedded system with mips and I am quite sure the "outw" is not suitable for me. appreciate your help, miloody make[2]: Entering directory `/media/sdb1/software/nano-window/microwin.old/src/mwin/winlib' make[2]: Leaving directory `/media/sdb1/software/nano-window/microwin.old/src/mwin/winlib' Compiling drivers/vgaplan4.c ... CURDIR /media/sdb1/software/nano-window/microwin.old/src/mwin MW_DIR_SRC /media/sdb1/software/nano-window/microwin.old/src CONFIG /media/sdb1/software/nano-window/microwin.old/src/config FNT_FONT_DIR=fonts/bdf mipsel-linux-gcc -c -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FREETYPE_2_SUPPORT=1 -DFREETYPE_FONT_DIR=\""fonts/truetype"\" -DHAVETEXTMODE=1 -DTHREADSAFE=1 -DFBVGA=1 -DERASEMOVE=1 -DUPDATEREGIONS=1 -DDEBUG=1 -DLINUX=1 -DUNIX=1 -O -msoft-float -Wall -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-prototypes -ggdb -O0 -I. -I/media/sdb1/software/nano-window/microwin.old/src/include -I/usr/include -I/usr/include/freetype2 -o /media/sdb1/software/nano-window/microwin.old/src/obj/drivers/vgaplan4.o /media/sdb1/software/nano-window/microwin.old/src/drivers/vgaplan4.c /media/sdb1/software/nano-window/microwin.old/src/drivers/vgaplan4.c: In function 'ega_readpixel': /media/sdb1/software/nano-window/microwin.old/src/drivers/vgaplan4.c:128: warning: pointer targets in assignment differ in signedness /media/sdb1/software/nano-window/microwin.old/src/drivers/vgaplan4.c: In function 'ega_drawhorzline': /media/sdb1/software/nano-window/microwin.old/src/drivers/vgaplan4.c:164: warning: pointer targets in assignment differ in signedness /media/sdb1/software/nano-window/microwin.old/src/drivers/vgaplan4.c:177: warning: pointer targets in assignment differ in signedness /media/sdb1/software/nano-window/microwin.old/src/drivers/vgaplan4.c: In function 'ega_drawvertline': /media/sdb1/software/nano-window/microwin.old/src/drivers/vgaplan4.c:217: warning: pointer targets in assignment differ in signedness /media/sdb1/software/nano-window/microwin.old/src/drivers/vgaplan4.c:218: warning: pointer targets in assignment differ in signedness /tmp/cc3mgEIn.s: Assembler messages: /tmp/cc3mgEIn.s:241: Error: unrecognized opcode `outw hi,$2' /tmp/cc3mgEIn.s:1253: Error: unrecognized opcode `outb hi,$2' make[1]: *** [/media/sdb1/software/nano-window/microwin.old/src/obj/drivers/vgaplan4.o] Error 1 make[1]: Leaving directory `/media/sdb1/software/nano-window/microwin.old/src/mwin' make: *** [subdir-/media/sdb1/software/nano-window/microwin.old/src/mwin] Error 2 ####@####.#### | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] some error occur when compile snapshop version microwindows
From: "Greg Haerr" ####@####.#### Date: 9 Feb 2010 20:14:24 -0000 Message-Id: <214201caa9c4$8748f4b0$0300a8c0@RDP> > it seems I open the option that calling vga functions by i386 standard asm > call. > How to turn it off, since I cannot see it in xconfigure? I keep forgetting to fix this, but xconfigure hasn't been updated or tested for too long. I don't recommend its use. Instead, hand-editting of the config file is preferred. This could be the reason for your first problem. Start with the distribution copy of config. The problem you have is that VGA or FBVGA=Y, which should be set to N. This attempts to compile the real mode vga screen driver for microwindows, which requires outw() to access. For modern systems, we use the fb linear drivers, for which there are 4,8,16,24 and 32 bit variants, automatically handled by drivers/scr_fb.c. Regards, Greg My system is an embedded system with mips and I am quite sure the "outw" is not suitable for me. appreciate your help, miloody make[2]: Entering directory `/media/sdb1/software/nano-window/microwin.old/src/mwin/winlib' make[2]: Leaving directory `/media/sdb1/software/nano-window/microwin.old/src/mwin/winlib' Compiling drivers/vgaplan4.c ... CURDIR /media/sdb1/software/nano-window/microwin.old/src/mwin MW_DIR_SRC /media/sdb1/software/nano-window/microwin.old/src CONFIG /media/sdb1/software/nano-window/microwin.old/src/config FNT_FONT_DIR=fonts/bdf mipsel-linux-gcc -c -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FREETYPE_2_SUPPORT=1 -DFREETYPE_FONT_DIR=\""fonts/truetype"\" -DHAVETEXTMODE=1 -DTHREADSAFE=1 -DFBVGA=1 -DERASEMOVE=1 -DUPDATEREGIONS=1 -DDEBUG=1 -DLINUX=1 -DUNIX=1 -O -msoft-float -Wall -Wstrict-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-prototypes -ggdb -O0 -I. -I/media/sdb1/software/nano-window/microwin.old/src/include -I/usr/include -I/usr/include/freetype2 -o /media/sdb1/software/nano-window/microwin.old/src/obj/drivers/vgaplan4.o /media/sdb1/software/nano-window/microwin.old/src/drivers/vgaplan4.c /media/sdb1/software/nano-window/microwin.old/src/drivers/vgaplan4.c: In function 'ega_readpixel': /media/sdb1/software/nano-window/microwin.old/src/drivers/vgaplan4.c:128: warning: pointer targets in assignment differ in signedness /media/sdb1/software/nano-window/microwin.old/src/drivers/vgaplan4.c: In function 'ega_drawhorzline': /media/sdb1/software/nano-window/microwin.old/src/drivers/vgaplan4.c:164: warning: pointer targets in assignment differ in signedness /media/sdb1/software/nano-window/microwin.old/src/drivers/vgaplan4.c:177: warning: pointer targets in assignment differ in signedness /media/sdb1/software/nano-window/microwin.old/src/drivers/vgaplan4.c: In function 'ega_drawvertline': /media/sdb1/software/nano-window/microwin.old/src/drivers/vgaplan4.c:217: warning: pointer targets in assignment differ in signedness /media/sdb1/software/nano-window/microwin.old/src/drivers/vgaplan4.c:218: warning: pointer targets in assignment differ in signedness /tmp/cc3mgEIn.s: Assembler messages: /tmp/cc3mgEIn.s:241: Error: unrecognized opcode `outw hi,$2' /tmp/cc3mgEIn.s:1253: Error: unrecognized opcode `outb hi,$2' make[1]: *** [/media/sdb1/software/nano-window/microwin.old/src/obj/drivers/vgaplan4.o] Error 1 make[1]: Leaving directory `/media/sdb1/software/nano-window/microwin.old/src/mwin' make: *** [subdir-/media/sdb1/software/nano-window/microwin.old/src/mwin] Error 2 ####@####.#### --------------------------------------------------------------------- To unsubscribe, e-mail: ####@####.#### For additional commands, e-mail: ####@####.#### | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |