Hi,
On Fri, 2009-05-22 at 17:10 -0700, azilatlong wrote:
> My gcc linking command:
> gcc -o bin/target <all .o files> -static -Wl --rpath
> /opt/lib/directfb-1.2-0/wm/libdirectfbwm_default.o
> /opt/lib/directfb-1.2-0/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_png.o
> -lpng -lz -lm
> /opt/lib/directfb-1.2-0/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_gif.o
> /opt/lib/directfb-1.2-0/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_gif.o
> /opt/lib/directfb-1.2-0/inputdrivers/libdirectfb_linux_input.o
> /opt/lib/directfb-1.2-0/gfxdrivers/libdirectfb_i810.o
> /opt/lib/directfb-1.2-0/systems/libdirectfb_fbdev.o -L/opt/lib
> -lgtk-directfb-2.0 -lgdk-directfb-2.0 -latk-1.0 -lgdk_pixbuf-2.0
> -lpangocairo-1.0 -lcairo -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0
> -lgmodule-2.0 -lglib-2.0 -liconv -lfontconfig -lfreetype -lexpat
> -ldirectfb -lpng12 -lz -lm -lpixman-1 -lfusion -ldirect -lpthread -ldl
>
> This compiled! Boyah! But didn't run....
> The code that's causing a problem:
> GdkPixbuf * p;
> gui_main_bg_name = "pixmaps/gui_main.gif";
> if ((p = gdk_pixbuf_new_from_file (gui_main_bg_name, NULL)) == NULL)
> {
> gchar ch[64];
> sprintf (ch, "pixbuf new from file %s", gui_main_bg_name);
> gui_main_exit (__func__, ch);
> }
>
> The "gdk_pixbuf_new_from_file" is returned as NULL...
You linked in the DirectFB GIF image provider, but your code is using
the gdk-pixbuf GIF loader which you did not compile into your static
binary.
Sven
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users