|
发表于 2006-12-25 23:00:54
|
显示全部楼层
目前lcd_read和lcd_write基本没有再用,在gcc下应该也只是警告而已,
从上述你给出的结果看,是因为没能编译dev_lcd_ep7312.c,
或许你要升级一下 gcc 了,我刚测试过,直接 make 没有问题。
如果有错,可按下面更改skyeye_lcd.c(下面的第1行为其中的第65行)。
#ifdef GTK_LCD
case LCD_MOD_GTK:
lcd_dev->lcd_open = gtk_lcd_open;
lcd_dev->lcd_close = gtk_lcd_close;
lcd_dev->lcd_update = gtk_lcd_update;
lcd_dev->lcd_read = (int (*)(struct lcd_device*, void*, size_t))gtk_lcd_read;
lcd_dev->lcd_write = (int (*)(struct lcd_device*, void*, size_t))gtk_lcd_write;
break;
#endif
#ifdef WIN32_LCD
case LCD_MOD_WIN32:
lcd_dev->lcd_open = win32_lcd_open;
lcd_dev->lcd_close = win32_lcd_close;
lcd_dev->lcd_update = win32_lcd_update;
lcd_dev->lcd_read = (int (*)(struct lcd_device*, void*, size_t))win32_lcd_read;
lcd_dev->lcd_write = (int (*)(struct lcd_device*, void*, size_t))win32_lcd_write;
break;
#endif
如果你没有 GTK,把 Makefile 中如下面蓝色的一行注释掉:
ifndef NO_LCD
ifeq ($(OSTYPE),msys)
WIN32_LCD = 1
else
# GTK_LCD = 1
ifeq ($(TERM),cygwin)
WIN32_LCD = 1
endif
endif
endif # !NO_LCD |
|