Building QtWebKit for Qt 5.7 win32-msvc2015
-
Hello guys, did anyone build QtWebKit module for Qt 5.7 (win32-msvc2015)? I set SQLITE3SRCDIR, set ICU location, but qmake/makefile is somewhat hesistant to build anything, here is what are they complaining about not having the right functions:
Reading C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/QtWebKit.pro C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/QtWebKit.pro:13: 'build?' is not a recognized test function. C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/QtWebKit.pro:18: 'build?' is not a recognized test function. C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/QtWebKit.pro:34: 'have?' is not a recognized test function. C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/QtWebKit.pro:36: 'build?' is not a recognized test function. Reading C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:17: 'build?' is not a recognized test function. C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:18: 'build?' is not a recognized test function. C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:22: 'build?' is not a recognized test function. C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:25: 'build?' is not a recognized test function. C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:27: 'use?' is not a recognized test function. C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:28: 'use?' is not a recognized test function. C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:45: Cannot find feature webkit_modules Project ERROR: Module does not define version.
any idea how to fix it?
wrote on 13 Aug 2016, 14:15 last edited by A Former User -
Hello guys, did anyone build QtWebKit module for Qt 5.7 (win32-msvc2015)? I set SQLITE3SRCDIR, set ICU location, but qmake/makefile is somewhat hesistant to build anything, here is what are they complaining about not having the right functions:
Reading C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/QtWebKit.pro C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/QtWebKit.pro:13: 'build?' is not a recognized test function. C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/QtWebKit.pro:18: 'build?' is not a recognized test function. C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/QtWebKit.pro:34: 'have?' is not a recognized test function. C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/QtWebKit.pro:36: 'build?' is not a recognized test function. Reading C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:17: 'build?' is not a recognized test function. C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:18: 'build?' is not a recognized test function. C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:22: 'build?' is not a recognized test function. C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:25: 'build?' is not a recognized test function. C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:27: 'use?' is not a recognized test function. C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:28: 'use?' is not a recognized test function. C:/qtwebkit-opensource-src-5.7.0/qtwebkit-opensource-src-5.7.0/Source/api.pri:45: Cannot find feature webkit_modules Project ERROR: Module does not define version.
any idea how to fix it?
wrote on 13 Aug 2016, 16:42 last edited by@Peppy Can it be that you are using qmake from Qt 4 to build it?
-
@Peppy Can it be that you are using qmake from Qt 4 to build it?
wrote on 13 Aug 2016, 17:10 last edited by@Konstantin-Tokarev I'm not using Qt 4 since Qt 5 was released.
-
@Konstantin-Tokarev I'm not using Qt 4 since Qt 5 was released.
wrote on 13 Aug 2016, 17:11 last edited by@Peppy Ok, next try: you are building Source/QtWebKit.pro instead of top-level WebKit.pro
-
@Peppy Ok, next try: you are building Source/QtWebKit.pro instead of top-level WebKit.pro
wrote on 13 Aug 2016, 17:36 last edited by Peppy@Konstantin-Tokarev I'm building it via command line. i.e.:
C:\Qt\5.7\...\bin\qmake.exe -r CONFIG+=release
the variables are set to
PATH=C:\icu\lib;C:\icu\include;C:\... SQLITE3SRCDIR=C:\Qt\5.7\...\Src\qtbase\src\3rdparty\sqlite
and by the way, that's not the whole output. It's much more longer, but I've truncated it.
-
wrote on 14 Aug 2016, 11:58 last edited by Peppy
Okay, few updates:
- Needed msys64, ruby and python, after installing msys64, install via
pacman -Sy python ruby
- QMAKE still can't find ICU even if I added them into path. (ping @Konstantin-Tokarev)
- Needed msys64, ruby and python, after installing msys64, install via
-
wrote on 14 Aug 2016, 14:17 last edited by
When building on Windows, you should add ICU paths to INCLUDE and LIBS environment variables.
BTW, it may make more sense for you to build new QtWebKit from https://github.com/annulen/webkit (see https://github.com/annulen/webkit/wiki/Building-QtWebKit-on-Windows for build instructions).
-
When building on Windows, you should add ICU paths to INCLUDE and LIBS environment variables.
BTW, it may make more sense for you to build new QtWebKit from https://github.com/annulen/webkit (see https://github.com/annulen/webkit/wiki/Building-QtWebKit-on-Windows for build instructions).
wrote on 14 Aug 2016, 15:34 last edited by@Konstantin-Tokarev Why would I use that branch?
INCLUDEPATH and LIBS somehow does not work... I will try to tinker with it today again.
-
wrote on 14 Aug 2016, 16:31 last edited by
Because it is based on WebKit revision from 2016 (not from 2013, as in 5.7), and it has seen a lot of testing with MSVC 2015 (I'm not sure if 5.7 has all necessary patches, e.g. this may be needed: https://github.com/Vitallium/qtwebkit/commit/4cd12f3ec460a38bfb15a78beb1ec27fe6aebd60)
-
Because it is based on WebKit revision from 2016 (not from 2013, as in 5.7), and it has seen a lot of testing with MSVC 2015 (I'm not sure if 5.7 has all necessary patches, e.g. this may be needed: https://github.com/Vitallium/qtwebkit/commit/4cd12f3ec460a38bfb15a78beb1ec27fe6aebd60)
wrote on 14 Aug 2016, 17:47 last edited by@Konstantin-Tokarev what exactly do I have to link? How the LIBS variable should look like.
-
wrote on 14 Aug 2016, 19:45 last edited by
My bad, it's actually "LIB", not "LIBS". It should contain semicolon-separated list of directories where libraries can be searched
11/12