标题:编译QT Embeded 4 如何加入Webkit支持?
作者:sunnyfool
日期:2010-01-09 18:32
内容:
如题。有没有详细的移植步骤。
我在移植的QT到arm的时候,想要使用webkit功能,主要是想要运行例子中的浏览器。
看qt的说明,好像说qt会默认加入webkit支持的。但编译后,好像没有webkit的库,所以我只好在configure参数中的加入 -webkit选项, 但是这样编译的时候又会报错。
没办法了。请达人帮帮忙吧!
#1 [szyema 01-12 09:45]
加入-webkit选项就可以支持webkit的。
我在QT4.4.3编译webkit是成功的。
报什么错误?
#2 [sunnyfool 01-16 09:54]
编译具体错误我忘记了。 好象是编译Webkit相关源代码的时候,没有找到某个类的定义。
能否把您用的config的选项贴出来,参考下。
会不会是其他选项对webkit有影响呢?
#3 [sunnyfool 01-16 11:28]
我的编译选项如下:
-qconfig myconfig \
-prefix /root/work/run/qtarm \
-nomake tools \
-nomake examples \
-nomake demos \
-nomake docs \
-nomake translations \
-no-stl \
-continue \
-no-sql-sqlite \
-no-xmlpatterns \
-no-phonon \
-no-svg \
-iconv \
-qt-libpng \
-qt-zlib \
-qt-libjpeg \
-qt-gif \
-qt-libmng \
-qt-freetype \
-xplatform qws/linux-arm-g++ \
-no-rpath \
-no-exceptions \
-no-accessibility \
-no-qt3support \
-no-opengl \
-no-nis \
-no-cups \
-no-largefile \
-no-accessibility \
-no-pch \
-no-gfx-multiscreen \
-no-gfx-vnc \
-no-gfx-qvfb \
-no-gfx-transformed \
-no-kbd-tty \
-no-kbd-sl5000 \
-no-kbd-yopy \
-no-kbd-vr41xx \
-no-kbd-qvfb \
-webkit \
-no-mmx \
-no-3dnow \
-no-sse \
-no-sse2 \
-no-openssl \
-no-dbus \
-no-phonon \
-no-xmlpatterns \
-no-svg \
-no-glib \
-no-phonon-backend \
-no-libtiff \
-release \
-shared \
-fast \
-little-endian \
-embedded arm
configure后make,编译时的错误如下:
../JavaScriptCore/bindings/qt/qt_runtime.cpp: In member function `virtual void
KJS::Bindings::QtArray::setValueAt(KJS::ExecState*, unsigned int,
KJS::JSValue*) const':
../JavaScriptCore/bindings/qt/qt_runtime.cpp:1681: error: parse error before `>
' token
make[1]: *** [.obj/release-shared-emb-arm/qt_runtime.o] 错误 1
#4 [faquir 03-12 14:15]
你用的哪个版本?
我在4.6.1的版本上编译,也是不能支持webkit,换4.6.2就好了。
不知道是编译器的问题还是版本的问题。