clbr / fifth

Fifth is a Linux-exclusive browser that carries the best features from Opera, as well as a few unique features that are likely to please Linux power users. It's based on a custom Webkit port to FLTK and comes licensed under the GPLv3.
GNU General Public License v3.0
106 stars 7 forks source link

webkit.h not found #7

Closed boenki closed 9 years ago

boenki commented 9 years ago

Hello,

on my install webkit.h cannot be found during configure and build.

The file is in /usr/include/webkitfltk/

It's easy to patch:

diff -aur fifth-0.2-orig/configure.ac fifth-0.2-patched/configure.ac
--- fifth-0.2-orig/configure.ac 2014-12-18 10:43:47.000000000 +0100
+++ fifth-0.2-patched/configure.ac      2014-12-21 09:31:17.766678132 +0100
@@ -79,7 +79,7 @@

 # Check for webkitfltk version
 AC_MSG_CHECKING([webkitfltk version is ok])
-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <webkit.h>]],
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <webkitfltk/webkit.h>]],
        [[
        #if WK_FLTK_MAJOR != 0 || WK_FLTK_MINOR < 2
        #error unsupported webkitfltk version
diff -aur fifth-0.2-orig/src/main.h fifth-0.2-patched/src/main.h
--- fifth-0.2-orig/src/main.h   2014-12-18 10:43:47.000000000 +0100
+++ fifth-0.2-patched/src/main.h        2014-12-21 09:32:01.396679583 +0100
@@ -33,7 +33,7 @@
 #include <FL/fl_draw.H>
 #include <FL/Fl_Shared_Image.H>
 #include <FL/Fl_Menu_Bar.H>
-#include <webkit.h>
+#include <webkitfltk/webkit.h>
 #include <iconv.h>

 #include "autoconfig.h"
clbr commented 9 years ago

The include dir is passed by webkitfltk's pkg-config file. Is it installed correctly (webkitfltk.pc should be in /usr/lib/pkgconfig)?

boenki commented 9 years ago

Sorry, my fault. I set PREFIX=usr in webkitfltk because I was irritated about the double slashes between DESTIDIR and PREFIX. This wrong prefix was written to webkitfltk.pc and so fifth didn't find it. Now it works.

This also solves the "bug" I opened in webkitfltk.

Steffen

clbr commented 9 years ago

OK, closing both.