problem with GTK application compiled statically on arm 9 platform



Hello,
I am currently working on an application that use gtk 2.12.1 with glib
2.14.3 and DirectFB 1.1.0
I am cross compiling it in static for an ARM9(iMX27) for space
optimization
I have been using the tutorial
http://www.directfb.org/docs/GTK_Embedded/ which is very well done,
I just copy and paste gtktetris on my platform, and the application is
working... So I did the same with my application but unfortunately I get
some errors : 

/***************************************************************************/
     =======================|  DirectFB 1.1.0  |=======================
          (c) 2001-2007  The DirectFB Organization (directfb.org)
          (c) 2000-2004  Convergence (integrated media) GmbH
        ------------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2009-09-10 07:22) 
(*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 7885)...
(*) Direct/Thread: Running 'Keyboard Input' (INPUT, 7888)...
(*) DirectFB/Input: Keyboard 0.9 (directfb.org)
(*) DirectFB/Graphics: Generic Software Rasterizer 0.6 (directfb.org)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
(*) FBDev/Mode: Testing 480x272 RGB16
(*) FBDev/Mode: Preparing switch to 480x272 RGB16
(*) FBDev/Mode: Testing 480x272 RGB16
(*) FBDev/Mode: Preparing switch to 480x272 RGB16
(*) FBDev/Mode: Testing 480x272 RGB16
(*) FBDev/Mode: Preparing switch to 480x272 RGB16
(*) FBDev/Mode: Testing 480x272 RGB16
(*) FBDev/Mode: Preparing switch to 480x272 RGB16
(*) FBDev/Mode: Testing 480x272 RGB16
(*) FBDev/Mode: Preparing switch to 480x272 RGB16
(*) FBDev/Mode: Switched to 480x272 (480x272) at 16 bit RGB16 (wanted
RGB16).
(*) FBDev/Surface: Allocated 480x272 16bit RGB16 buffer at offset 0 and
pitch 960.
(*) FBDev/Mode: (Post)Setting 480x272 RGB16
(*) FBDev/Mode: Testing 480x272 RGB16
(*) FBDev/Mode: Preparing switch to 480x272 RGB16
(*) FBDev/Mode: (Post)Setting 480x272 RGB16
(*) Direct/Thread: Running 'EventBufferFeed' (MESSAGING, 7889)...

(<unknown>:7882): GModule-CRITICAL **: g_module_symbol: assertion
`module != NULL' failed

Gtk-ERROR **: Invalid type: GtkWindow
aborting...
(!) [ 7882:    0.000] --> Caught signal 6 (unknown origin) <--
 (!!!)  *** WARNING [still objects in 'Layer Region Pool'] ***
[object.c:239 in fusion_object_pool_destroy()]
 (!!!)  *** WARNING [still objects in 'Layer Context Pool'] ***
[object.c:239 in fusion_object_pool_destroy()]
 (!!!)  *** WARNING [setting window->stack = NULL] *** [default.c:2882
in wm_close_stack()]
 (!!!)  *** WARNING [still objects in 'Window Pool'] *** [object.c:239
in fusion_object_pool_destroy()]
 (!!!)  *** WARNING [still objects in 'Surface Pool'] *** [object.c:239
in fusion_object_pool_destroy()]
/***************************************************************************/


The application failed of the function "gtk_builder_add_from_file", I
read a lot of stuff and check if The platform could support gmodule, the
answer to the function "g_module_supported" was ok, I had to add some
flags to the compilation :`pkg-config --libs gmodule-2.0`
Actually when I am compiling the application in shared mode, the
application works...


You can see the final compilation line and the warnings :
/***************************************************************************/
g++  -static
-static /home/bouin/ltib/rootfs/usr/lib/directfb-1.1-0/systems/libdirectfb_fbdev.o /home/bouin/ltib/rootfs/usr/lib/directfb-1.1-0/wm/libdirectfbwm_default.o /home/bouin/ltib/rootfs/usr/lib/directfb-1.1-0/inputdrivers/libdirectfb_keyboard.o /home/bouin/ltib/rootfs/usr/lib/directfb-1.1-0/inputdrivers/libdirectfb_tslib.o -L/home/bouin/ltib/rootfs/usr/lib -ldirectfb -lfusion -ldirect -lpthread -lz -lts  -o bin/tftdisplay  src/postesHandlers/bin_tftdisplay-TftDisplayHandlerM.o src/screensHandlers/bin_tftdisplay-TftScreenHandlerM.o src/bin_tftdisplay-TftDisplayApplication.o src/bin_tftdisplay-TftDisplay.o -L/home/bouin/ltib/rootfs/usr/lib -lmdisplay -lmxml -lpthread -lxml2   -L/home/bouin/ltib/rootfs/usr/lib -lmxml -lpthread -lxml2   -L/home/bouin/ltib/rootfs/usr/lib -lgtk-directfb-2.0 -lgdk-directfb-2.0 -ldirectfb -lfusion -ldirect -lpthread -latk-1.0 -lgdk_pixbuf-2.0 -ljpeg -lpng12 -lpangocairo-1.0 -lcairo -lpangoft2-1.0 -lfontconfig -lfreetype -lz -lpango-1.0 -lm -lgobject-2.0 -
 lgmodule-2.0 -ldl -lglib-2.0   -pthread -L/home/bouin/ltib/rootfs/usr/lib -lgthread-2.0 -lrt -lglib-2.0   -lexpat -Wl,--export-dynamic -L/home/bouin/ltib/rootfs/usr/lib -lgmodule-2.0 -ldl -lglib-2.0   
/home/bouin/ltib/rootfs/usr/lib/libts.a(ts_load_module.o): In function
`__ts_load_module':
ts_load_module.c:(.text+0x7c): warning: Using 'dlopen' in statically
linked applications requires at runtime the shared libraries from the
glibc version used for linking
/home/bouin/ltib/rootfs/usr/lib/libglib-2.0.a(gutils.o): In function
`g_get_any_init_do':
/home/bouin/ltib/rpm/BUILD/glib-2.14.3/glib/gutils.c:1620: warning:
Using 'getpwuid' in statically linked applications requires at runtime
the shared libraries from the glibc version used for linking
/home/bouin/ltib/rpm/BUILD/glib-2.14.3/glib/gutils.c:1619: warning:
Using 'setpwent' in statically linked applications requires at runtime
the shared libraries from the glibc version used for linking
/home/bouin/ltib/rpm/BUILD/glib-2.14.3/glib/gutils.c:1621: warning:
Using 'endpwent' in statically linked applications requires at runtime
the shared libraries from the glibc version used for linking
/home/bouin/ltib/rpm/BUILD/glib-2.14.3/glib/gutils.c:1563: warning:
Using 'getpwnam_r' in statically linked applications requires at runtime
the shared libraries from the glibc version used for linking
/home/bouin/ltib/rpm/BUILD/glib-2.14.3/glib/gutils.c:1569: warning:
Using 'getpwuid_r' in statically linked applications requires at runtime
the shared libraries from the glibc version used for linking
/home/bouin/ltib/rootfs/usr/lib/libdirect.a(log.o): In function
`parse_host_addr':
log.c:(.text+0x270): warning: Using 'getaddrinfo' in statically linked
applications requires at runtime the shared libraries from the glibc
version used for linking
/home/bouin/ltib/rootfs/usr/lib/libmdisplay.a(libmdisplay_la-MaterialProxy.o): In function `MaterialProxy::init(char const*, int)':
src/MaterialProxy.cpp:114: warning: Using 'gethostbyname' in statically
linked applications requires at runtime the shared libraries from the
glibc version used for linking
/***************************************************************************/

Thank you for your time and your help,
Sincerely,

Aurelien BOUIN




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]