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: nanogui-unsubscr...@linuxhacker.org : For additional commands, e-mail: nanogui-h...@linuxhacker.org --------------------------------------------------------------------- To unsubscribe, e-mail: nanogui-unsubscr...@linuxhacker.org For additional commands, e-mail: nanogui-h...@linuxhacker.org