Xavier Oswald wrote:
> Hi,
> 
> I want to compil my gtk application for directfb.
> I'm actually using this options :
> 
> GTK_LIB = `pkg-config --cflags --libs gtk+-2.0`
> 
> GTK_CFLAGS = -DXTHREADS -I/usr/include/gtk-2.0
> -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -
I/usr/include/cairo
> -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/glib-
2.0
> -I/usr/lib/glib-2.0/include
> 
> Instead of GTK_LIB, I have yet this line:
> 
> GTK_DFB_LIB = `pkg-config --cflags --libs gtk+-directfb-2.0`
> 
> but I think I should change something in my GTK_CFLAGS.
> 
> If someone has an idea or documentation .. ??

if you're going to comiple a GTK app against GTKDFB libraries, then 
you'll have to export the correct LD_LIBRARY_PATH and PKG_CONFIG_PATH 
(as explained in the GTKDFB howto [1]) nbefore compiling.
Then, you should be able to compile a simple GTK app with something 
like

gcc ghello.c -o ghello `pkg-config --cflags <includes list, if needed> 
--libs gtk+-directfb-2.0`

About Makefile configuration, i guess you'll have to set something 
like GTK_LIB = GTK_DFB_LIB

Attilio

[1] http://www.directfb.org/wiki/index.php/Projects:GTK_on_DirectFB




                
Tiscali ADSL 4 Mega Flat 

Naviga senza limiti a 19,95 Euro al mese con 4 Megabps di velocita'. Attiva 
subito: hai 2 MESI di canone adsl GRATIS!

In piu', se sei raggiunto dalla rete Tiscali, telefoni senza pagare il canone 
Telecom. 

Scopri subito come risparmiare! 

http://abbonati.tiscali.it/prodotti/adsl/tc/4flat/
        

_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to