nanogui: some error occur when compile snapshop version microwindows


Previous by date: 9 Feb 2010 09:50:43 -0000 Re: some error occur when compile snapshop version microwindows, Greg Haerr
Next by date: 9 Feb 2010 09:50:43 -0000 Problem with BMP, Matej Gutman
Previous in thread: 9 Feb 2010 09:50:43 -0000 Re: some error occur when compile snapshop version microwindows, Greg Haerr
Next in thread: 9 Feb 2010 09:50:43 -0000 Re: some error occur when compile snapshop version microwindows, Greg Haerr

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
####@####.####

Previous by date: 9 Feb 2010 09:50:43 -0000 Re: some error occur when compile snapshop version microwindows, Greg Haerr
Next by date: 9 Feb 2010 09:50:43 -0000 Problem with BMP, Matej Gutman
Previous in thread: 9 Feb 2010 09:50:43 -0000 Re: some error occur when compile snapshop version microwindows, Greg Haerr
Next in thread: 9 Feb 2010 09:50:43 -0000 Re: some error occur when compile snapshop version microwindows, Greg Haerr


Powered by ezmlm-browse 0.20.