75
edits
No edit summary |
No edit summary |
||
| Line 105: | Line 105: | ||
* [https://bugzilla.mozilla.org/show_bug.cgi?id=357946 bugzilla patch] | * [https://bugzilla.mozilla.org/show_bug.cgi?id=357946 bugzilla patch] | ||
== | == GTK-DFB Package Installation == | ||
=== Using script === | |||
Note: This has been tested on Fedora Core 8. | |||
* Download and unpack install_gtk.zip [http://wiki.mozilla.org/images/5/57/Install_gtk.zip] | * Download and unpack install_gtk.zip [http://wiki.mozilla.org/images/5/57/Install_gtk.zip] | ||
| Line 118: | Line 118: | ||
== | === Manual Installation === | ||
We are going to install under /usr/local/dfb to avoid confusion when X and DFB apps are running simultaneously. | We are going to install under /usr/local/dfb to avoid confusion when X and DFB apps are running simultaneously. | ||
| Line 144: | Line 143: | ||
* export CPPFLAGS=-I/usr/local/dfb/include | * export CPPFLAGS=-I/usr/local/dfb/include | ||
* export LDFLAGS=-L/usr/local/dfb/lib | * export LDFLAGS=-L/usr/local/dfb/lib | ||
==== jpeg ==== | ==== jpeg ==== | ||
| Line 317: | Line 314: | ||
* '''Installation: ''' | * '''Installation: ''' | ||
** tar jxvf gtk+-2.12.9.tar.bz2 | ** tar jxvf gtk+-2.12.9.tar.bz2 | ||
** gtk+-2.12.9 | ** cd gtk+-2.12.9 | ||
** ./configure --prefix=/usr/local/dfb --with-gdktarget=directfb --without-x | ** ./configure --prefix=/usr/local/dfb --with-gdktarget=directfb --without-x | ||
** make | ** make | ||
| Line 346: | Line 343: | ||
** make install | ** make install | ||
=== | === Test === | ||
* Setup pkg-config and library paths | * Existing examples | ||
** export LD_LIBRARY_PATH=/usr/local/dfb/lib | ** Try running test applications under gtk+-2.12.9/tests directory | ||
** export PKG_CONFIG_PATH=/usr/local/dfb/lib/pkgconfig | * New Examples | ||
* Write a “Hello world” GTK application: hell_world.c and compile it | ** Setup pkg-config and library paths | ||
** gcc `pkg-config --cflags --libs gtk+-2.0` hello_world.c –o hello_world | *** export LD_LIBRARY_PATH=/usr/local/dfb/lib | ||
* Run hello_world | *** export PKG_CONFIG_PATH=/usr/local/dfb/lib/pkgconfig | ||
** A DirectFB window with hello_world widget inside should pop-up | ** Write a “Hello world” GTK application: hell_world.c and compile it | ||
*** gcc `pkg-config --cflags --libs gtk+-2.0` hello_world.c –o hello_world | |||
** Run hello_world | |||
*** A DirectFB window with hello_world widget inside should pop-up | |||
== Building and testing Firefox- | == Building and testing Firefox-DFB == | ||
=== Getting mozilla-dfb sources from hg === | === Getting mozilla-dfb sources from hg === | ||
edits