PDA

View Full Version : webkit.h



WarMonkey
March 24th, 2008, 07:35 AM
I installed webkit with

svn checkout http://svn.webkit.org/repository/webkit/trunk WebKit

So, why can't I compile programs containing

#include <webkit/webkit.h>

with g++?

sq377
March 24th, 2008, 08:45 AM
the svn command you gave will only grab the latest webkit source code and put it in your working directory. It doesn't install it for you. There are a few development libraries in the apt repositories, i'd recommend using those.

libqtwebkit-dev - Web content engine library for Qt - Development files
libqtwebkit0d - Web content engine library for Qt
libqtwebkit1d - Web content engine library for Qt
libqtwebkit1d-dbg - Web content engine library for Qt - Debugging symbols
libwebkitgtk-dev - Web content engine library for Gtk+ - Development files
libwebkitgtk1d - Web content engine library for Gtk+
libwebkitgtk1d-dbg - Web content engine library for Gtk+ - Debugging symbols

Awalton
March 25th, 2008, 06:54 AM
Post the whole string you used to attempt to compile your application.

Most likely the case is, you forgot to link to WebKit.
(e.g. with WebKitGtk on Hardy: g++ file.cpp test `pkg-config --libs --cflags WebKitGtk`; pkg-config is just the easy way around having to remember where the libraries are and what flags you need to use, etc.)