Problem with QtWebkit installation after building Qt5 on windows with win32-msvc2012
-
Now I got flickrview and youtubeview working with QtWebProcess once I added the ...\qtwebkit\bin to PATH variable.
Still getting this with youtubeview but might be something with my setup, not sure...:
Something went wrong, received HTTP status code 0
-
i built again with the latter update include QTBUG-30290 fix, but i still got the "unknown error", did you built it with angle or opengl -Desktop anyway?
-
I built it with this configuration:
configure -debug-and-release -opensource -nomake examples -nomake tests -opengl desktop
Did you do a pull on the qtwebkit module or just included the changes? I did the pull.
-
here is my configuration:
@configure -developer-build -opensource -nomake examples -nomake tests -opengl desktop -make-tool jom -mp -confirm-license -openssl -openssl-linked -I C:\OpenSSL-Win64\include -L C:\OpenSSL-Win64\lib\VC\static -icu -I C:\icu\include -L C:\icu\lib64 -L C:\OpenSSL-Win64\lib
@a painful configuration, and i still getting along with my configuration experiments, now i'm trying vs2012 and yet still compling
-
these are my issues
- qmlwebkitplugin.dll is located at C:<QTDIR>\qtbase\imports\QtWebkit, this directory is belong to QML1. When i tested with a very simple qmlapp --
@import QtQuick 1.1
import QtWebKit 1.0@show message : loadPlugin failed on "C:/Qt/qt5/qtbase/imports/QtWebKit/qmlwebkitplugind.dll" : "Cannot load library C:/Qt/qt5/qtbase/imports/QtWebKit/qmlwebkitplugind.dll: "
file:///C:/Users/ponkster/Documents/Qt/build-quick1test-Desktop-Debug/qml/quick1test/main.qml:2:1: plugin cannot be loaded for module "QtWebKit": Cannot load library C:/Qt/qt5/qtbase/imports/QtWebKit/qmlwebkitplugind.dll:
import QtWebKit 1.0- there is no QtWebKit directory within QML2 imports directory which is located at C:<QTDIR>\qtbase\qml and then i copy QtWebkit from imports directory to qml directory and make a simple test
@import QtQuick 2.0
import QtWebKit 3.0@
but it raised the same error message
-
I got it. I copied qmlwebkitplugin libraries from qtwebkit/imports directory into qtbase/qml dir, then I copied qmldir file from qtbase/imports/QtWebKit dir into qtbase/qml dir then i picked flickrview.pro from qtwebkit-examples. If I build with debug mode it will raise cannot load library error, but it will run in release mode though it didn't run smoothly, cause the flickr imageviewer just didn't appear and i got this message
QOpenGLShader::link: "Vertex shader(s) linked, fragment shader(s) linked., but i think its not error message. -
Did you try to set the QML2_IMPORT_PATH to point to qtbase/imports?
-
i haven't try it yet.,but it worth to try. can you give me complete configure example with QML2_IMPORT_PATH?
-
ok now i got it, QML2_IMPORT_PATH is environment variable
-
Good thread guys, thanks. Apparently, those bugs are still present in Qt 5.3.1 on Linux :-( but your solution helped me in getting it to work.