求助skyeye编译错误-skyeye_lcd.c
我编译,按照说的,又安装了那个gltkib gtk+1.2.10两个软件包,是源代码编译安装的。
但是编译过程中还是一堆错误主要好像是gtk相关的错误。
No package 'gtk+-2.0' found
libsim.a(skyeye_lcd.o)(.text+0x96): In function `expose_event':
/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:148: undefined reference to `gdk_draw_indexed_image'
libsim.a(skyeye_lcd.o)(.text+0xea):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:215: undefined reference to `gdk_draw_rgb_32_image'
libsim.a(skyeye_lcd.o)(.text+0x12b):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:148: undefined reference to `gdk_draw_indexed_image'
libsim.a(skyeye_lcd.o)(.text+0x2cf):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:190: undefined reference to `gdk_draw_rgb_image'
libsim.a(skyeye_lcd.o)(.text+0x307):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:190: undefined reference to `gdk_draw_rgb_image'
libsim.a(skyeye_lcd.o)(.text+0x48e): In function `redraw':
/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:312: undefined reference to `gtk_widget_draw'
libsim.a(skyeye_lcd.o)(.text+0x615): In function `lcd_enable':
/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:420: undefined reference to `gtk_window_new'
libsim.a(skyeye_lcd.o)(.text+0x653):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:425: undefined reference to `gtk_window_set_title'
libsim.a(skyeye_lcd.o)(.text+0x66a):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:427: undefined reference to `gtk_widget_set_usize'
libsim.a(skyeye_lcd.o)(.text+0x67a):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:429: undefined reference to `gtk_widget_set_events'
libsim.a(skyeye_lcd.o)(.text+0x67f):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:431: undefined reference to `gtk_event_box_new'
libsim.a(skyeye_lcd.o)(.text+0x68f):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:432: undefined reference to `gtk_container_get_type'
libsim.a(skyeye_lcd.o)(.text+0x69e):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:432: undefined reference to `gtk_type_check_object_cast'
libsim.a(skyeye_lcd.o)(.text+0x6a7):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:432: undefined reference to `gtk_container_add'
libsim.a(skyeye_lcd.o)(.text+0x6d2):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:433: undefined reference to `gtk_type_check_object_cast'
libsim.a(skyeye_lcd.o)(.text+0x6db):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:433: undefined reference to `gtk_widget_set_events'
libsim.a(skyeye_lcd.o)(.text+0x70b):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:440: undefined reference to `gtk_type_check_object_cast'
libsim.a(skyeye_lcd.o)(.text+0x714):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:440: undefined reference to `gtk_signal_connect'
libsim.a(skyeye_lcd.o)(.text+0x747):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:442: undefined reference to `gtk_type_check_object_cast'
libsim.a(skyeye_lcd.o)(.text+0x750):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:442: undefined reference to `gtk_signal_connect'
libsim.a(skyeye_lcd.o)(.text+0x780):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:444: undefined reference to `gtk_type_check_object_cast'
libsim.a(skyeye_lcd.o)(.text+0x789):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:444: undefined reference to `gtk_signal_connect'
libsim.a(skyeye_lcd.o)(.text+0x798):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:447: undefined reference to `gtk_widget_show'
libsim.a(skyeye_lcd.o)(.text+0x7a5):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:449: undefined reference to `gtk_widget_realize'
libsim.a(skyeye_lcd.o)(.text+0x7b1):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:450: undefined reference to `gdk_cursor_new'
libsim.a(skyeye_lcd.o)(.text+0x7c2):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:450: undefined reference to `gdk_window_set_cursor'
libsim.a(skyeye_lcd.o)(.text+0x7c7):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:453: undefined reference to `gtk_drawing_area_new'
libsim.a(skyeye_lcd.o)(.text+0x7d7):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:454: undefined reference to `gtk_container_get_type'
libsim.a(skyeye_lcd.o)(.text+0x7e5):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:454: undefined reference to `gtk_type_check_object_cast'
libsim.a(skyeye_lcd.o)(.text+0x7ee):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:454: undefined reference to `gtk_container_add'
libsim.a(skyeye_lcd.o)(.text+0x81e):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:456: undefined reference to `gtk_type_check_object_cast'
libsim.a(skyeye_lcd.o)(.text+0x827):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:456: undefined reference to `gtk_signal_connect'
libsim.a(skyeye_lcd.o)(.text+0x835):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:458: undefined reference to `gtk_widget_show'
libsim.a(skyeye_lcd.o)(.text+0x842):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:460: undefined reference to `gtk_widget_show_all'
libsim.a(skyeye_lcd.o)(.text+0x851):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:462: undefined reference to `gdk_window_get_colormap'
libsim.a(skyeye_lcd.o)(.text+0x8bd):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:494: undefined reference to `gtk_timeout_add'
libsim.a(skyeye_lcd.o)(.text+0x8e0):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:368: undefined reference to `gtk_init'
libsim.a(skyeye_lcd.o)(.text+0x8e5):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:369: undefined reference to `gdk_rgb_init'
libsim.a(skyeye_lcd.o)(.text+0x955):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:482: undefined reference to `gdk_rgb_cmap_new'
libsim.a(skyeye_lcd.o)(.text+0x9fc): In function `lcd_disable':
/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:529: undefined reference to `gdk_rgb_cmap_free'
libsim.a(skyeye_lcd.o)(.text+0xa15):/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:524: undefined reference to `gtk_widget_destroy'
libsim.a(skyeye_lcd.o)(.text+0x4c9): In function `lcd_cycle':
/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm/skyeye_lcd.c:325: undefined reference to `gtk_main_iteration_do'
collect2: ld returned 1 exit status
make: *** 错误 1
make: Leaving directory `/root/ProgramFiles/skyeye-0.9.2/skyeye/sim/arm'
make: *** 错误 2
make: Leaving directory `/root/ProgramFiles/skyeye-0.9.2/skyeye/sim'
make: *** 错误 2
我去查看过已经包含的头文件,那几个函数已经包含在里面。。可是就是报错“undefined”。。。 需要'gtk+-2.0' 的包。你如果真的不需要LCD的模拟,skyeye_lcd.c中有个宏定义控制是否需要LCD。把它设为0就可以了.
页:
[1]