QtWebEngine + Embedded
-
Hi all,
Why does the Qt 5.4.2 source blocking the building of WebEngine for Embedded Linux? In the file:
qtwebengine/tools/qmake/mkspecs/features/functions.prf
there are the following lines under isPlatformSupported:skipBuild("Qt WebEngine can currently only be built for Linux (GCC), Windows (MSVC 2013), OS X (XCode 5.1+) or Qt for Device Creation.") return(false)
If I disable these and force return true there appears to be no issues building WebEngine. And in the following document:
https://wiki.qt.io/QtWebEngine
it clearly says it is supported in both Embedded Linux and Embedded Android. So why do I have to hack a PRF file to get this thing to build?Thanks
-
Hi,
I think the key word is
intend
. The fact that it builds and run doesn't mean that these platforms are already tested and validated. -
That I can't tell, I don't know
-
Hi
May I ask how you got this to build?
I am trying to compile Qt with the following configuration (for Raspberry Pi):
./configure --prefix=/usr -release -opensource -confirm-license -c++11 -no-largefile -no-qml-debug -system-zlib \ -no-journald -system-libpng -system-freetype -system-libjpeg -system-sqlite -openssl -no-pulseaudio -alsa \ -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite2 -no-sql-tds -nomake examples -reduce-exports \ -no-directfb -no-linuxfb -eglfs -no-xcb -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=/usr/bin/ -sysroot /
Here is my patch:
diff --git a/qtwebengine/tools/qmake/mkspecs/features/functions.prf b/qtwebengine/tools/qmake/mkspecs/features/functions.prf index ef0320d..5abaecc 100644 --- a/qtwebengine/tools/qmake/mkspecs/features/functions.prf +++ b/qtwebengine/tools/qmake/mkspecs/features/functions.prf @@ -12,13 +12,9 @@ defineTest(isPlatformSupported) { return(false) } - linux-g++*:!isGCCVersionSupported(): return(false) - !isPythonVersionSupported(): return(false) - linux-g++*|win32-msvc2013|macx-clang: return(true) boot2qt: return(true) - skipBuild("Qt WebEngine can currently only be built for Linux (GCC), Windows (MSVC 2013), OS X (XCode 5.1+) or Qt for Device Creation.") - return(false) + return(true) } defineTest(isPythonVersionSupported) { -- 2.1.0
And it succeeds, but I don't get a message about WebEngine being an unsupported platform. It simply does not build that module. I tried to follow this reference here, but had no luck either: https://forum.qt.io/topic/48223/webengine-raspberry-pi/2
I am building native, not cross, on Debian Jessie.
Thanks in advance,
Sam