Hi,
I am building openmoko as described at:
http://wiki.openmoko.org/wiki/Host-b...Xoo_and_Xephyr
I svn-ed latest trunk.
I am at openmoko-panel-battery step and I am getting these errors:
make all-recursive
make[1]: Entering directory `/usr/local/pkg/openoko/src/target/OM-2007.2/panel-plugins/openmoko-panel-battery'
Making all in src
make[2]: Entering directory `/usr/local/pkg/openoko/src/target/OM-2007.2/panel-plugins/openmoko-panel-battery/src'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DPKGDATADIR=\"/usr/local/share/openmoko-panel-battery\" -DGETTEXT_PACKAGE=\"matchbox-panel\" -Wall -std=c99 -pedantic -D_REENTRANT -I/usr/local/include/libmokopanelui2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -g -O2 -D_REENTRANT -I/usr/local/include/libmokopanelui2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -MT openmoko-panel-battery.lo -MD -MP -MF .deps/openmoko-panel-battery.Tpo -c -o openmoko-panel-battery.lo openmoko-panel-battery.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DPKGDATADIR=\"/usr/local/share/openmoko-panel-battery\" -DGETTEXT_PACKAGE=\"matchbox-panel\" -Wall -std=c99 -pedantic -D_REENTRANT -I/usr/local/include/libmokopanelui2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -g -O2 -D_REENTRANT -I/usr/local/include/libmokopanelui2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -MT openmoko-panel-battery.lo -MD -MP -MF .deps/openmoko-panel-battery.Tpo -c openmoko-panel-battery.c -fPIC -DPIC -o .libs/openmoko-panel-battery.o
openmoko-panel-battery.c:30:17: error: apm.h: No such file or directory
openmoko-panel-battery.c: In function ‘battery_applet_init_dbus’:
openmoko-panel-battery.c:102: warning: format not a string literal and no format arguments
openmoko-panel-battery.c:111: warning: passing argument 2 of ‘dbus_connection_add_filter’ from incompatible pointer type
openmoko-panel-battery.c: At top level:
openmoko-panel-battery.c:115: error: expected declaration specifiers or ‘...’ before ‘apm_info’
openmoko-panel-battery.c: In function ‘battery_applet_notification’:
openmoko-panel-battery.c:126: error: ‘info’ undeclared (first use in this function)
openmoko-panel-battery.c:126: error: (Each undeclared identifier is reported only once
openmoko-panel-battery.c:126: error: for each function it appears in.)
openmoko-panel-battery.c:128: error: ‘BATTERY_STATUS_CHARGING’ undeclared (first use in this function)
openmoko-panel-battery.c:131: error: ‘BATTERY_STATUS_ABSENT’ undeclared (first use in this function)
openmoko-panel-battery.c: In function ‘timeout’:
openmoko-panel-battery.c:204: error: ‘apm_info’ undeclared (first use in this function)
openmoko-panel-battery.c:204: error: expected ‘;’ before ‘info’
openmoko-panel-battery.c:206: error: ‘info’ undeclared (first use in this function)
openmoko-panel-battery.c:207: warning: implicit declaration of function ‘apm_read’
openmoko-panel-battery.c:211: error: ‘BATTERY_STATUS_ABSENT’ undeclared (first use in this function)
openmoko-panel-battery.c:212: error: ‘BATTERY_STATUS_CHARGING’ undeclared (first use in this function)
openmoko-panel-battery.c:237: error: too many arguments to function ‘battery_applet_notification’
openmoko-panel-battery.c: In function ‘on_clicked_cb’:
openmoko-panel-battery.c:246: error: ‘apm_info’ undeclared (first use in this function)
openmoko-panel-battery.c:246: error: expected ‘;’ before ‘info’
openmoko-panel-battery.c:248: error: ‘info’ undeclared (first use in this function)
openmoko-panel-battery.c:251: error: too many arguments to function ‘battery_applet_notification’
make[2]: *** [openmoko-panel-battery.lo] Error 1
I've modified Makefile and src/Makefile adding at CFLAGS
-I/usr/src/linux-headers-2.6.28-14-generic/include/config -I/usr/src/linux-headers-2.6.28-14-generic/include
because locate apm.h yields
/usr/src/linux-headers-2.6.28-11/arch/x86/include/asm/mach-default/apm.h
/usr/src/linux-headers-2.6.28-11/include/sound/soc-dapm.h
/usr/src/linux-headers-2.6.28-11-generic/include/config/apm.h
/usr/src/linux-headers-2.6.28-14/arch/x86/include/asm/mach-default/apm.h
/usr/src/linux-headers-2.6.28-14/include/sound/soc-dapm.h
/usr/src/linux-headers-2.6.28-14-generic/include/config/apm.h
Now make returns .
openmoko-panel-battery.c: In function ‘battery_applet_init_dbus’:
openmoko-panel-battery.c:102: warning: format not a string literal and no format arguments
openmoko-panel-battery.c:111: warning: passing argument 2 of ‘dbus_connection_add_filter’ from incompatible pointer type
openmoko-panel-battery.c: At top level:
openmoko-panel-battery.c:115: error: expected declaration specifiers or ‘...’ before ‘apm_info’
openmoko-panel-battery.c: In function ‘battery_applet_notification’:
openmoko-panel-battery.c:126: error: ‘info’ undeclared (first use in this function)
openmoko-panel-battery.c:126: error: (Each undeclared identifier is reported only once
openmoko-panel-battery.c:126: error: for each function it appears in.)
openmoko-panel-battery.c:128: error: ‘BATTERY_STATUS_CHARGING’ undeclared (first use in this function)
openmoko-panel-battery.c:131: error: ‘BATTERY_STATUS_ABSENT’ undeclared (first use in this function)
openmoko-panel-battery.c: In function ‘timeout’:
openmoko-panel-battery.c:204: error: ‘apm_info’ undeclared (first use in this function)
openmoko-panel-battery.c:204: error: expected ‘;’ before ‘info’
openmoko-panel-battery.c:206: error: ‘info’ undeclared (first use in this function)
openmoko-panel-battery.c:207: warning: implicit declaration of function ‘apm_read’
openmoko-panel-battery.c:211: error: ‘BATTERY_STATUS_ABSENT’ undeclared (first use in this function)
openmoko-panel-battery.c:212: error: ‘BATTERY_STATUS_CHARGING’ undeclared (first use in this function)
openmoko-panel-battery.c:237: error: too many arguments to function ‘battery_applet_notification’
openmoko-panel-battery.c: In function ‘on_clicked_cb’:
openmoko-panel-battery.c:246: error: ‘apm_info’ undeclared (first use in this function)
openmoko-panel-battery.c:246: error: expected ‘;’ before ‘info’
openmoko-panel-battery.c:248: error: ‘info’ undeclared (first use in this function)
openmoko-panel-battery.c:251: error: too many arguments to function ‘battery_applet_notification’
make[2]: *** [openmoko-panel-battery.lo] Error 1