Embedding/NewApi/GtkLinux: Difference between revisions
Jump to navigation
Jump to search
Line 16: | Line 16: | ||
== Building == | == Building == | ||
You build using the provided Makefile | You build using the provided Makefile after executing the autogen.sh and configure scripts | ||
cd mozembed/gtk | cd mozembed/gtk/x11 | ||
bash ./autogen.sh | |||
./configure | |||
make | make | ||
Latest revision as of 06:01, 2 September 2010
Gtk Widget (linux)
This is a Gtk widget using the new API along with a small test application
Prerequisites
- For Fedora 9, you can install the needed libs by running the following command as root:
yum install xulrunner-devel sqlite-devel
- For ubuntu 8.04 you can install the needed xulrunner and gtk libs/headers like this
sudo apt-get install xulrunner-1.9-dev libsqlite3-dev libgtk2.0-dev
- Note: Debian(lenny/squeeze/sid) has package name 'xulrunner-dev'
- instead of 'xulrunner-1.9-dev' (Debian Search)
- TODO: using your own xulrunner build
Building
You build using the provided Makefile after executing the autogen.sh and configure scripts
cd mozembed/gtk/x11 bash ./autogen.sh ./configure make
Running
You can run the test program from the mozembed/gtk folder. You just need to add xulrunner to the library path
export LD_LIBRARY_PATH=LD_LIBRARY_PATH:/usr/lib/xulrunner-devel-1.9/lib ./test