【发布时间】:2014-04-08 10:13:58
【问题描述】:
我是 Qt 和 Yocto 的新手。我使用 Poky 工具链在 Ubuntu 12.04.LTS 上交叉编译 Qt5。
我在these instructions for Building Qt5 using yocto on Wandboard之后安装并配置了Qt5。
/configure v -dont-process -opensource -confirm-license -device imx6 -device-option CROSS_COMPILE=/opt/poky/1.5.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi -sysroot /fsl-community-bsp/buildcoreimage/tmp/sysroots/imx6qsabreauto -prefix ~/qt5arm -platform linux-g++ -shared -no-pch -no-rpath -pkg-config -no-accessibility -no-dbus -no-icu -no-directfb -evdev -no-fontconfig -no-opengl -opengl es2 -eglfs -no-glib -no-gtkstyle -no-iconv -system-libjpeg -no-kms -system-libpng -no-linuxfb -no-mitshm -no-nis -openssl -qt-pcre -release -no-sm -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-sql-tds -nomake tests -tslib -libudev -widgets -no-xcb -no-xcursor -no-xfixes -no-xinerama -no-xinput -no-xinput2 -no-xkb -no-xrandr -no-xrender -no-xshape -no-xsync -no-xvideo -system-zlib
当我尝试使用qmake 构建我的项目时,出现以下错误:
hmi_ph2$ /home/abc/qt5arm/bin/qmake
Project ERROR: Unknown module(s) in QT: webkitwidgets webkit
原来如此
sudo apt-get upgrade libqt5webkit5-dev
Reading package lists… Done
Building dependency tree
Reading state information… Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
在我的.pro 文件中:
QT += qml quick xml network widgets webkit webkitwidgets xmlpatterns multimedia multimediawidgets
【问题讨论】:
标签: qt embedded-linux qtwebkit yocto qt5.2