Build WebKit-r97664 successfully on Necessitas-0.3, but load fails
BogDan
bog_dan_ro at yahoo.com
Thu Feb 2 12:26:21 UTC 2012
Hello,
I'm a little confused by your statement, what do you mean by "compile WebKit-r97664 ... and replace it with Ministro's internal libWebKit.so" ?
Are you meaning that you tried to replace Minsitro' webkit with yours? If my assumption is true, then the next question is: What is wrong with Ministro's webkit ?
Anyway if you really want to use your own webkit implementation you must be sure that :
- you compile it correctly, check our build script [1] to see how we do it.
- you are using *ONLY* your own webkit implementation (be sure there is no qtwebkit item in "qt_libs" section into android/res/values/libs.xml file, QtCreator will add it automatically to that section !). I don't know what happens if your application will load both implementations. I recommend you to use local libs (check "Use local qt libs' checkbox") and remove libQtWebkit file from necessitas libs.
Cheers,
BogDan.
[1] http://quickgit.kde.org/?p=ministro.git&a=blob&h=7e5a9f835a06fd54e82eaec851502940c4f23bd9&hb=83a075ea66f67673e0b240a9688eedb3324e979e&f=Necessitas_SDK/build_sdk.sh
> Hi, BogDan
>
> I managed to compile WebKit-r97664 successfully on Necessitas-0.3, and replace
> it with Ministro's internal libWebKit.so,
> But weirdly, the test app(which uses a WebView to simply load a URL) crashed.
> I compared the logcat output with normal case, which is as below:
>
> WebKit-r97664 crash:
> ...
> D/Qt ( 839): paramsString "QtApp -platform android"
> W/Qt ( 839): WARNING: QApplication was not created in the main() thread.
> D/Qt ( 839): QAndroidPlatformIntegrationPlugin::create "android"
> D/Qt ( 839): QAndroidPlatformIntegration::QAndroidPlatformIntegration():
> creating QAndroidPlatformScreen => Using Raster (Software) for painting
> D/Qt ( 839): QFbScreen::setPhysicalSize QSize(51, 85)
> D/Qt ( 839): QFbScreen::setGeometry QRect(0,0 480x800)
> D/Qt ( 839): QAndroidPlatformScreen::QAndroidPlatformScreen():QFbScreen()
> W/dalvikvm( 839): dvmFindClassByName rejecting
> 'org/kde/necessitas/industrius/QtNativeInputConnection'
> W/dalvikvm( 839): dvmFindClassByName rejecting
> 'org/kde/necessitas/industrius/QtExtractedText'
> D/Qt ( 839): setDisplayMetrics
> D/Qt ( 839): setDisplayMetrics done
> D/Qt ( 839): setDesktopSize
> D/Qt ( 839): setDesktopSize done
> I/Qt JAVA ( 839): surfaceChanged: 480,762,480,762
> D/Qt ( 839): setDisplayMetrics
> D/Qt ( 839): setDisplayMetrics done
> D/Qt ( 839): setDesktopSize
> D/Qt ( 839): setDesktopSize done
> D/dalvikvm( 839): GC_EXTERNAL_ALLOC freed 6225 objects / 343408 bytes in 605ms
>
> Normal case:
> ...
> D/Qt ( 943): paramsString "QtApp -platform android"
> W/Qt ( 943): WARNING: QApplication was not created in the main() thread.
> D/Qt ( 943): QAndroidPlatformIntegrationPlugin::create "android"
> D/Qt ( 943): QAndroidPlatformIntegration::QAndroidPlatformIntegration():
> creating QAndroidPlatformScreen => Using Raster (Software) for painting
> I/Qt JAVA ( 943): surfaceChanged: 480,762,480,762
> D/Qt ( 943): QFbScreen::setPhysicalSize QSize(51, 81)
> D/Qt ( 943): QFbScreen::setGeometry QRect(0,0 480x762)
> D/Qt ( 943): QAndroidPlatformScreen::QAndroidPlatformScreen():QFbScreen()
> D/dalvikvm( 943): GC_EXTERNAL_ALLOC freed 6185 objects / 339440 bytes in 678ms
> W/dalvikvm( 943): dvmFindClassByName rejecting
> 'org/kde/necessitas/industrius/QtNativeInputConnection'
> W/dalvikvm( 943): dvmFindClassByName rejecting
> 'org/kde/necessitas/industrius/QtExtractedText'
> D/Qt ( 943): createPlatformWindow false
> D/Qt ( 943): setFullScreen false
> D/Qt ( 943): setFullScreen false
> D/Qt ( 943): hideSoftwareKeyboard
>
> Could you give some hints? or if i want to compile WebKit externally & get
> it
> work, what attentions should i pay?
>
> Look forward to your anwser!
>
> Best wishes!
>
> 以上、よろしくお願いします。
> --------------------------------------------------
> Gu Jinxiang
> Development Dept.III
> Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)
> 6/F., No. 6 Wenzhu Road, Nanjing, 210012, China,
> Nanjing, 210012, China
> TEL: +86+25-86630566-8229
> COINS: 79955-8229
> FAX: +86+25-83317685
> MAIL: gujx at cn.fujitsu.com
> --------------------------------------------------
> This communication is for use by the intended recipient(s) only and may contain
> information that is privileged, confidential and exempt from disclosure under
> applicable law. If you are not an intended recipient of this communication, you
> are hereby notified that any dissemination, distribution or copying hereof is
> strictly prohibited. If you have received this communication in error, please
> notify me by reply e-mail, permanently delete this communication from your
> system, and destroy any hard copies you may have printed
>
>
> _______________________________________________
> Necessitas-devel mailing list
> Necessitas-devel at kde.org
> https://mail.kde.org/mailman/listinfo/necessitas-devel
> >
More information about the Necessitas-devel
mailing list