> export LD_LIBRARY_PATH=/home/attilio/dfb_2.7.0-1/usr/lib/
> export PKG_CONFIG_PATH=/home/attilio/dfb_2.7.0-1/usr/lib/pkgconfig
> gcc ghello.c -o ghello `pkg-config --cflags --libs gtk+-directfb-2.0`
>
> (if the output of pkg-config is expanded the gcc command would become
>
> gcc ghello.c -o ghello -D_REENTRANT -D_GNU_SOURCE -I/usr/include/gtk-2.0
> -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
> -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/directfb
> -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/libpng12
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -L/usr/X11R6/lib
> -lgtk-directfb-2.0 -lgdk-directfb-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm
> -ldirectfb -lpangocairo-1.0 -lfusion -ldirect -lpthread -lpango-1.0
> -lfreetype -lz -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
> -lfontconfig -lpixman -lXrender -lX11 -lpng12
>
> )
>
> i always get the following error
>
> /usr/bin/ld: cannot find -lgtk-directfb-2.0
> collect2: ld returned 1 exit status
>
/home/attilio/dfb_2.7.0-1/usr/lib
First your missing a -L/home/attilio/dfb_2.7.0-1/usr/lib
Not sure why its actually in the pc file
gtk+-2.0.pc
Libs: -L${libdir} -lgtk-${target}-2.0 for example its all of them.
Probably if your trying to move precompiled libraries around the pc
files in pkgconfig are not right you need to change the prefix by hand
in each pc file.
> Davide has provided in the 2.7.1 tarball, also a precompiled gtk.so (the
> debian-installer gtk frontend) that, when run, exits with the following
> error
>
> attilaptop:/home/attilio/cdebconf/cdebconf/src/gtk_test# export
> LD_LIBRARY_PATH=/home/attilio/dfb_2.7.0-1/usr/lib/
> attilaptop:/home/attilio/cdebconf/cdebconf/src/gtk_test# export
> DEBIAN_DEBUG=5
> attilaptop:/home/attilio/cdebconf/cdebconf/src/gtk_test# export
> DEBIAN_FRONTEND=gtk
> attilaptop:/home/attilio/cdebconf/cdebconf/src/gtk_test# ../debconf
> ./test.config
>
> ---------------------- DirectFB v0.9.23 ---------------------
> (c) 2000-2002 convergence integrated media GmbH
> (c) 2002-2004 convergence GmbH
> -----------------------------------------------------------
>
> (*) DirectFB/Core: Single Application Core. (2005-07-06 20:25)
> (!) Direct/Modules: Unable to dlopen
> `/usr/lib/directfb-0.9.23/systems/libdirectfb_fbdev.so'!
> --> /usr/lib/directfb-0.9.23/systems/libdirectfb_fbdev.so:
> undefined symbol: dfb_config
> (!) DirectFB/core/system: No system found!
> (#) DirectFBError [gdk_display_open: DirectFBCreate]: No (suitable)
> implementation found!
>
> (debconf:4221): Gtk-WARNING **: cannot open display:
>
>
>
This error means no Directfb backend was found you can set it by
setting the env var
export DFBARGS=system=sdl
For example thats how I do it. currently gtk is not passing args
through to directfb.
Mike
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev