So far I managed to compile
gtk helloworld under ELDK:
Code:
# using usr/src copied from K3 instead of ELDK's own
# the only exception is for usr/lib/crt1.o usr/lib/crti.o usr/lib/crtn.o not present on K3
arm-linux-gcc -Wall -g hi.c -o hi `pkg-config --cflags gtk+-2.0` -lglib -lgtk-directfb-2.0 -lgdk-directfb-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0
And it runs. With the following output:
Code:
~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.2.0 |~~~~~~~~~~~~~~~~~~~~~~~~~~
(c) 2001-2008 The world wide DirectFB Open Source Community
(c) 2000-2004 Convergence (integrated media) GmbH
----------------------------------------------------------------
(*) DirectFB/Core: Single Application Core. (2011-08-31 03:34)
(!) Direct/Modules: Unable to dlopen `/usr/lib/directfb-1.2-0/systems/libdirectfb_devmem.so'!
--> /usr/lib/directfb-1.2-0/systems/libdirectfb_devmem.so: undefined symbol: system_set_mode
(!) DirectFB/core/vt: Couldn't open neither `/dev/tty0' nor `/dev/vc/0'!
--> No such file or directory
(!) DirectFB/Core: Could not initialize 'system_core' core!
--> Initialization error!
(#) DirectFBError [gdk_display_open: DirectFBCreate]: Initialization error!
Gtk-WARNING **: cannot open display: :0.0
- The same question again: is dl_open failure fatal?
- … and other directfb errors?
- does «cannot open display: :0.0» mean that Gtk wants X?
Thanks in advance for any advice.