Hello Felipe,

2010/6/25 Felipe Gil-Castiñeira <[email protected]>

> Jack Wootton <jackwoot...@...> writes:
> >
> > Hi Sacha,With the help from people on various Qt Mailing lists and
> colleagues
> I have a QML demo using WebView running on an N97.
>
>
> Hi Jack,
>
> I am trying to test an application using the QML WebView element in an N97,
> but
> it doesn't work:
>    * I only get a completely empty screen (I can't see any element)
>    * The same QML application works in a PC without problems.
>    * If I remove the WebView element (and the
>      "import org.webkit 1.0" line), the application works.
>
> I have seen your previous posts about the missing WebKit plugin binaries
> [1] and
> about the problems with Symbian capabilities [2], but from this e-mail it
> seems
> like you have solved the problems.
>
> Please, could you give me some hints? For example:
>    * Do you use the pre-release binaries [3],
>

I use technology preview of Qt 4.7 available here
http://qt.nokia.com/developer/qt-qtcreator-prerelease


>      or do you compile your binaries from git?
>

I don't build anything from GIT...everything is installed from a binary.


>        - In the latter case: do you use RVCT or gcc?
>

Although I don't build Qt from source now, in the past i used Microsoft
Visual Studio Compiler to compile Qt and Creator since MinGW was too painful
and just didn't seem to work. When compiling my application I use RVCT.


>    * Where are the missing WebKit binaries?
>

I assume you mean the QML WebKit plugin binary (webkitqmlplugin.dll)? Once
built the missing binaries are located in \epoc32\release\armv5\urel or
\epoc32\release\armv5\udeb.  To build them you need to navigate to your
equivalent of \Qt\4.7.0-beta1\src\imports\webkit and then run the
appropriate build commands for your platform.  I recommend building it for
armv5 and winscw because you need to modify the *.pkg file - which I assume
you've done if you've been following this post.

Here are the three lines I added to the *.pkg file.

"/epoc32/release/$(PLATFORM)/$(TARGET)/webkitqmlplugin.dll"    -
"!:\sys\bin\webkitqmlplugin.dll"
"/epoc32/winscw/c/resource/qt/imports/org/webkit/qmldir"
-"!:\resource\qt\imports\org\webkit\qmldir"
"/epoc32/winscw/c/resource/qt/imports/org/webkit/webkitqmlplugin.qtplugin"
- "!:\resource\qt\imports\org\webkit\webkitqmlplugin.qtplugin"


   * Is it enough to sign the .sis with all the capabilities
>

when developing and debugging I singed my app and the QML Webkit plugin with
All -tcb just to ensure there were no problems.  I would recommend that you
do a "make distclean" before building the QML WebKit plugin too.

I had claimed that ensuring the QML Webkit plugin had Capability All-tcb
fixed my problem, however as someone pointed out on this mailing list, I was
incorrect since it is built with All -tcb any way.  For this reason I'm not
actually sure why WebView finally started working...which is why I recommend
doing a "make distclean" and rebuilding the QMl WebKit plugin.

I would be interested if rebuilding QML WebKit plugin, checking it has All
-tcb capability and modifying the *.pkg file works for you.


>      to solve the QTBUG-11256 [2].
>
> Thanks in advance!
>    Felipe.
>
>
> [1] http://lists.trolltech.com/pipermail/qt-qml/2010-May/000366.html
> [2] http://bugreports.qt.nokia.com/browse/QTBUG-11256
> [3]
> http://get.qt.nokia.com/qt/source/qt-symbian-opensource-4.7.0-beta1.exe
>
>
> _______________________________________________
> Qt-qml mailing list
> [email protected]
> http://lists.trolltech.com/mailman/listinfo/qt-qml
>



-- 
Regards
Jack
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-qml

Reply via email to