From: Darren Garvey <darren.gar...@youview.com> Cross-compilation for the Raspberry Pi B+ fails with the following errors:
----8<---- ../../../systems/egl/egl_system.c: In function 'InitEGL': ../../../systems/egl/egl_system.c:82:6: error: implicit declaration of function 'bcm_host_init' [-Werror=implicit-function-declaration] bcm_host_init(); ^ ../../../systems/egl/egl_system.c:126:6: error: implicit declaration of function 'graphics_get_display_size' [-Werror=implicit-function-declaration] graphics_get_display_size(0 /* LCD */, &egl->DisplayWidth, &egl->DisplayHeight); ^ ---->8---- These functions are declared in `bcm_host.h`, at least on the Raspberry Pi B+, so it must be included. --- systems/egl/egl_system.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/systems/egl/egl_system.c b/systems/egl/egl_system.c index dfaa305..8223adf 100644 --- a/systems/egl/egl_system.c +++ b/systems/egl/egl_system.c @@ -53,6 +53,8 @@ #include <core/core_system.h> +#include <bcm_host.h> + #define RASPBERRY_PI DFB_CORE_SYSTEM( egl ) -- 1.9.3 _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev