[Bug 1092546] New: Qt5.10 refers to QWebKit instead of QWebEngine when generating Makefiles out of *.pro files
http://bugzilla.opensuse.org/show_bug.cgi?id=1092546 Bug ID: 1092546 Summary: Qt5.10 refers to QWebKit instead of QWebEngine when generating Makefiles out of *.pro files Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: openSUSE Factory Status: NEW Severity: Normal Priority: P5 - None Component: Development Assignee: bnc-team-screening@forge.provo.novell.com Reporter: otrebor@hispeed.ch QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Created attachment 769562 --> http://bugzilla.opensuse.org/attachment.cgi?id=769562&action=edit Qt's .pro file to generate the makefile (same on Qt5.7.1 and on Qt5.10) The qmake generated Makefiles on openSUSE Tumbleweed with Qt 5.10 refer to QWebKit instead of QWebEngine which leads to failing includes. I have an older (not updated) TW version from 20170616 with Qt v5.7.1 where the generated Makefiles compile the code without problems. The same code compiled under TW 20180502 leads to copile error: In file included from ./LcWebView_p.h:10:0, from LcWebView.cpp:4: ./LcWebView.h:10:10: fatal error: QWebEngineView: No such file or directory #include <QWebEngineView> ^~~~~~~~~~~~~~~~ A diff between the two makefiles show this (first v5.7.1, then v5.10) < # Generated by qmake (3.0) (Qt 5.7.1) ---
# Generated by qmake (3.1) (Qt 5.10.0) 15c15 < DEFINES = -DQT_WEBENGINEWIDGETS_LIB -DQT_WIDGETS_LIB -DQT_WEBENGINE_LIB -DQT_WEBENGINECORE_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_WEBCHANNEL_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB
DEFINES = -DQT_WIDGETS_LIB -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB 18c18 < INCPATH = -I. -I. -I../liblvowidgets -I../liblvocore -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWebEngineWidgets -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtWebEngine -isystem /usr/include/qt5/QtWebEngineCore -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtWebChannel -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtCore -I. -I/usr/lib64/qt5/mkspecs/linux-g++
INCPATH = -I. -I. -I../liblvowidgets -I../liblvocore -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtWebKit -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtCore -I. -isystem /usr/include/libdrm -I/usr/lib64/qt5/mkspecs/linux-g++ 28a29,30 QINSTALL = /usr/bin/qmake-qt5 -install qinstall QINSTALL_PROGRAM = /usr/bin/qmake-qt5 -install qinstall -exe 39c41 < LIBS = $(SUBLIBS) -lQt5WebEngineWidgets -L/usr/lib64 -lQt5Widgets -lQt5WebEngine -lQt5WebEngineCore -lQt5Quick -lQt5Gui -lQt5WebChannel -lQt5Qml -lQt5Network -lQt5Core -lGL -lpthread
LIBS = $(SUBLIBS) -lQt5Widgets -L/usr/lib64 -lQt5WebKit -lQt5Gui -lQt5Network -lQt5Core -lGL -lpthread ... (I can provide more of the diff if that is necessary) What is noticeable is the fact that with v5.10 all references to QWebEngine are missing and being replaced by references to QWebKit. This is obviously wrong and not the desired behaviour.
The desired behaviour would be (from the .pro file) that QWebKit is used for Qt versions before 5.4, and QWebEngine from v5.4 up. I have no clue if that behaviour is an openSUSE TW Qt config that is wrong or if Qt itself has introduced that error. Thanks for looking into that. PS: - The very same code compiles and runs fine on other openSUSE releases e.g 42.3 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1092546
http://bugzilla.opensuse.org/show_bug.cgi?id=1092546#c1
--- Comment #1 from Otrebor Igorig
http://bugzilla.opensuse.org/show_bug.cgi?id=1092546
http://bugzilla.opensuse.org/show_bug.cgi?id=1092546#c2
--- Comment #2 from Otrebor Igorig
http://bugzilla.opensuse.org/show_bug.cgi?id=1092546
http://bugzilla.opensuse.org/show_bug.cgi?id=1092546#c4
--- Comment #4 from Otrebor Igorig
participants (1)
-
bugzilla_noreply@novell.com