Compiling QtWebView (Tech Preview)
-
I'm trying compile "qtwebview":https://qt.gitorious.org/qt/qtwebview for Android, announced "here":http://blog.qt.digia.com/blog/2014/08/20/adding-lgpl-v3-to-qt/?utm_source=rss&utm_medium=rss&utm_campaign=adding-lgpl-v3-to-qt on Windows.
After "mingw32-make install", everything seems ok.
But QtCreator doesn't recognize "import QtWebView 1.0".
-
Hi,
I haven't tested yet the qml part and it might be a silly question but did you add QT += webview in your pro file ?
-
hey could you explain how you compile it at all? i didnt add a new submodule yet, what i tried is the following:
i have my Qt5.4 sources in C:\Qt\Qt5.4\src. i added the qtwebview in the same folder.
@C:\Qt\Qt5.4\src\qtwebview>C:\Qt\Qt5.4\src\qtbase\bin\qmake.exe
C:\Qt\Qt5.4\src\qtwebview>mingw32-make.exe@
this brings up the following error for me:
@make (e=2): The system cannot find the file specified.
Makefile:2635: recipe for target '.obj/qwebview_android.obj' failed
mingw32-make[2]: *** [.obj/qwebview_android.obj] Error 2
mingw32-make[2]: Leaving directory 'C:/Qt/Qt5.4/src/qtwebview/src/webview'
Makefile:44: recipe for target 'sub-webview-make_first' failed
mingw32-make[1]: *** [sub-webview-make_first] Error 2
mingw32-make[1]: Leaving directory 'C:/Qt/Qt5.4/src/qtwebview/src'
Makefile:43: recipe for target 'sub-src-make_first' failed
mingw32-make.exe: *** [sub-src-make_first] Error 2@ -
Where did you got your version of QtWebView ?
-
https://qt.gitorious.org/qt/qtwebview/source/e849a5de6046ccaf2e76e636d640ec322ed87f45:
[quote author="SGaist" date="1410291464"]Where did you got your version of QtWebView ?[/quote]
-
Hello,
I'm having the same problem, i can't build QtWebView for android.
It builds ok on win desktop though... -
bq. Hi,
I haven’t tested yet the qml part and it might be a silly question but did you add QT += webview in your pro file ?Yes.
If I start a new project, put in .pro, QtCreator shows an error at line "import QtWebView 1.0": QML module does not contain information about components contained in plugins. Module path: ..........)
!http://s14.postimg.org/vgxg8zt2p/screenshot_33.png(Before load qtwebview project)!
But If I load the qtwebview project in QtCreator, the error dissapear:
!http://s14.postimg.org/p4iaz5q0h/screenshot_34.png(After)!
Look at the deploy dir (in my case c:\Quati\develop\build\qt5.4\android_armv7\qml\QtWebView), the file plugins.qmltypes is missing.
-
Did you call make install after building ?