Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#5624 closed defect (fixed)

QT-Webkit 4.4.1 not detected by mythbrowser

Reported by: eric.bosch@… Owned by: Janne Grunau
Priority: minor Milestone: unknown
Component: mythbrowser Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

This may be a simple matter of configuration, but can somebody help out? I'm running on both a Gentoo 2008 and the latest Ubuntu distribution. Gentoo has QT4.4.1 and QT-Webkit 4.4.1 along with all other components of QT4.4.1 installed, rebuilt all of mythtv and mythbrowser. First of all, after I go into set up the mythbrowser and add a bookmark, the frontend locks up, and becomes unresponsive, however using no cpu. I have to kill mythfrontend to recover, but it does add the bookmark. If I try to open the bookmark, it tells me that QT Webkit > 4.4.0 is required, yet it is already installed. Any clues? Nothing shows in logs or console. Same issue on Ubuntu machine, but QT4.4.0 and QT-Webkit 4.4.0 are installed.

Attachments (1)

gentoo_qt4_include_path.diff (467 bytes) - added by Janne Grunau 16 years ago.

Download all attachments as: .zip

Change History (11)

comment:1 Changed 16 years ago by paulh

Broke by [18144].

One problem on Gentoo is configure is looking in the wrong place for the QtWebKit?/QWebView header.

Changing line 2678 in configure to

check_header qt4/QtWebKit/QWebView

allows configure to find the header but it still isn't being enabled for some reason.

comment:2 Changed 16 years ago by paulh

Actually configure is still failing to find the header properly as these errors from config.err show:-

check_header qt4/QtWebKit/QWebView
check_cpp
BEGIN /tmp/ffmpeg-conf-4081-22153-16723.cpp
    1	#include <qt4/QtWebKit/QWebView>
    2	int x;
END /tmp/ffmpeg-conf-4081-22153-16723.cpp
ccache g++ -pthread -g -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -funit-at-a-time -g -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor -funit-at-a-time -D__STDC_CONSTANT_MACROS -E -o /tmp/ffmpeg-conf-11382-22153-12879.o /tmp/ffmpeg-conf-4081-22153-16723.cpp
cc1plus: warning: command line option "-Wno-pointer-sign" is valid for C/ObjC but not for C++
In file included from /usr/include/qt4/QtWebKit/qwebview.h:24,
                 from /usr/include/qt4/QtWebKit/QWebView:1,
                 from /tmp/ffmpeg-conf-4081-22153-16723.cpp:1:
/usr/include/qt4/QtWebKit/qwebkitglobal.h:23:21: error: qglobal.h: No such file or directory
In file included from /usr/include/qt4/QtWebKit/qwebpage.h:24,
                 from /usr/include/qt4/QtWebKit/qwebview.h:25,
                 from /usr/include/qt4/QtWebKit/QWebView:1,
                 from /tmp/ffmpeg-conf-4081-22153-16723.cpp:1:
/usr/include/qt4/QtWebKit/qwebsettings.h:23:27: error: qwebkitglobal.h: No such file or directory
/usr/include/qt4/QtWebKit/qwebsettings.h:25:28: error: QtCore/qstring.h: No such file or directory
/usr/include/qt4/QtWebKit/qwebsettings.h:26:27: error: QtGui/qpixmap.h: No such file or directory
/usr/include/qt4/QtWebKit/qwebsettings.h:27:25: error: QtGui/qicon.h: No such file or directory
/usr/include/qt4/QtWebKit/qwebsettings.h:28:32: error: QtCore/qshareddata.h: No such file or directory
In file included from /usr/include/qt4/QtWebKit/qwebview.h:25,
                 from /usr/include/qt4/QtWebKit/QWebView:1,
                 from /tmp/ffmpeg-conf-4081-22153-16723.cpp:1:
/usr/include/qt4/QtWebKit/qwebpage.h:27:28: error: QtCore/qobject.h: No such file or directory
/usr/include/qt4/QtWebKit/qwebpage.h:28:27: error: QtGui/qwidget.h: No such file or directory
In file included from /usr/include/qt4/QtWebKit/QWebView:1,
                 from /tmp/ffmpeg-conf-4081-22153-16723.cpp:1:
/usr/include/qt4/QtWebKit/qwebview.h:28:25: error: QtCore/qurl.h: No such file or director

comment:3 Changed 16 years ago by Janne Grunau

Owner: changed from Isaac Richards to Janne Grunau
Status: newaccepted

it's mainly gentoo's fault for installing Qt4 in a non-standard location.

It's not a problem for building mythtv since qmake spec file fortunenately has the proper include path.

I'll fix this.

comment:4 Changed 16 years ago by Janne Grunau

Status: acceptedstarted

as workaround adding --extra-cflags="-I/usr/include/qt4" should do

Changed 16 years ago by Janne Grunau

comment:5 Changed 16 years ago by Janne Grunau

gentoo_qt4_include_path.diff should fix the issue on gentoo but will still break if qt4 headers are installed in a different non-standard include directory.

comment:6 Changed 16 years ago by paulh

Still fails with your patch

check_header QtWebKit/QWebView -I/usr/include/qt4
check_cpp -I/usr/include/qt4
BEGIN /tmp/ffmpeg-conf-16721-21379-2844.cpp
    1	#include <QtWebKit/QWebView>
    2	int x;
END /tmp/ffmpeg-conf-16721-21379-2844.cpp
ccache g++ -pthread -g -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -funit-at-a-time -g -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor -funit-at-a-time -D__STDC_CONSTANT_MACROS -I/usr/include/qt4 -E -o /tmp/ffmpeg-conf-19759-21379-2603.o /tmp/ffmpeg-conf-16721-21379-2844.cpp
cc1plus: warning: command line option "-Wno-pointer-sign" is valid for C/ObjC but not for C++
In file included from /usr/include/qt4/QtWebKit/qwebview.h:24,
                 from /usr/include/qt4/QtWebKit/QWebView:1,
                 from /tmp/ffmpeg-conf-16721-21379-2844.cpp:1:
/usr/include/qt4/QtWebKit/qwebkitglobal.h:23:21: error: qglobal.h: No such file or directory
In file included from /usr/include/qt4/QtWebKit/qwebpage.h:24,
                 from /usr/include/qt4/QtWebKit/qwebview.h:25,
                 from /usr/include/qt4/QtWebKit/QWebView:1,
                 from /tmp/ffmpeg-conf-16721-21379-2844.cpp:1:
/usr/include/qt4/QtWebKit/qwebsettings.h:23:27: error: qwebkitglobal.h: No such file or directory

This does work though

check_header QtWebKit/QWebView -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtWebKit

comment:7 Changed 16 years ago by eric.bosch@…

Janne's patch did work on my Gentoo box, but not on my Ubuntu. I'm rebuilding with the updated changes on Ubuntu now and will let you know if it works there. Is the non-standard location of the qt4 install due to coexistence of qt3/qt4 on the box? Seems if it's a non-standard location, there are two vendors with it at the same location.

comment:8 Changed 16 years ago by eric.bosch@…

After two builds and one typo, this does work on Ubuntu.

comment:9 Changed 16 years ago by Janne Grunau

Resolution: fixed
Status: startedclosed

(In [18165]) Fixes #5624, Adds Gentoo's and Ubuntu's non standard Qt4 include path to the QtWebKit? header check

comment:10 Changed 16 years ago by Alan Calvert <cal@…>

On my systems qt4 is installed at /usr/local/qt4, which seems pretty reasonable. Would it be a "very bad thing" to add -I$QTDIR/include to the search path?. Fixes it for me.

Note: See TracTickets for help on using tickets.