hey ,
while i was following this tutorial .
it seems its not allowing me to add a new font .
is this because the trunk is precompiled ?
midibox_ng_v1 username$ make
rm -f project.hex
Creating object file for app.c
Creating object file for mbng_sysex.c
Creating object file for mbng_patch.c
Creating object file for mbng_event.c
Creating object file for mbng_din.c
Creating object file for mbng_dout.c
Creating object file for mbng_dio.c
Creating object file for mbng_rgbled.c
Creating object file for mbng_enc.c
Creating object file for mbng_ain.c
Creating object file for mbng_ainser.c
Creating object file for mbng_kb.c
Creating object file for mbng_matrix.c
Creating object file for mbng_cv.c
Creating object file for mbng_mf.c
Creating object file for mbng_lcd.c
src/mbng_lcd.c: In function ‘MBNG_LCD_FontInit’:
src/mbng_lcd.c:193:31: error: ‘GLCD_FONT_JBIG’ undeclared (first use in this function)
src/mbng_lcd.c:193:31: note: each undeclared identifier is reported only once for each function it appears in
make: *** [project_build/src/mbng_lcd.o] Error 1
---- > the declaration is made according to the tutorial :
s32 MBNG_LCD_FontInit(char font_name)
{
switch( font_name ) {
case ‘n’: glcd_font = (u8 *)GLCD_FONT_NORMAL; break;
case ‘i’: glcd_font = (u8 *)GLCD_FONT_NORMAL_INV; break;
case ‘b’: glcd_font = (u8 *)GLCD_FONT_BIG; break;
case ‘s’: glcd_font = (u8 *)GLCD_FONT_SMALL; break;
case ‘t’: glcd_font = (u8 *)GLCD_FONT_TINY; break;
case ‘k’: glcd_font = (u8 *)GLCD_FONT_KNOB_ICONS; break;
case ‘h’: glcd_font = (u8 *)GLCD_FONT_METER_ICONS_H; break;
case ‘v’: glcd_font = (u8 *)GLCD_FONT_METER_ICONS_V; break;
case ‘j’: glcd_font = (u8 *)GLCD_FONT_JBIG; break; // <------ HERE !
default:
return -1; // unsupported font
}
----> the other files have been changed and added as well
Could someone please point me in the right direction .
What am i missing ? do i have to precompile everything to make this work ?
thanks a lot for time and effort in advance.
[glcd_font.mk](< base_url >/applications/core/interface/file/attachment.php?id=15907&key=d9a00a97bc78a97f5f57a43f92de3672)[glcd_font.h](< base_url >/applications/core/interface/file/attachment.php?id=15908&key=a6aec0134555e3a52fd3061772af282f)[glcd_font_jbig.c](< base_url >/applications/core/interface/file/attachment.php?id=15909&key=ada73a84243287386bdb063316c01a20)[glcd_font_jbig.xpm](< base_url >/applications/core/interface/file/attachment.php?id=15910&key=1e55c22c5c8b2d4585e49684ab977b25)