(imx6)yocto修改qtbase添加编译tslib插件

1、添加tslib配置

相对位置:sources/meta-qt5/recipes-qt/qt5/qtbase_git.bb

添加:

git diff qtbase_git.bb
diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb
index 4e1ab72..8a77aad 100644
--- a/recipes-qt/qt5/qtbase_git.bb
+++ b/recipes-qt/qt5/qtbase_git.bb
@@ -23,6 +23,7 @@ SRC_URI += "\
     file://0005-configure-bump-path-length-from-256-to-512-character.patch \
     file://0009-Disable-all-unknown-features-instead-of-erroring-out.patch \
     file://0010-Pretend-Qt5-wasn-t-found-if-OE_QMAKE_PATH_EXTERNAL_H.patch \
+    file://0012-qtsbli.cpp.patch \
 "
 
 # only for target qtbase
@@ -48,7 +49,7 @@ PACKAGECONFIG_DISTRO ?= ""
 PACKAGECONFIG_RELEASE ?= "release"
 # This is in qt5.inc, because qtwebkit-examples are using it to enable ca-certificates dependency
 # PACKAGECONFIG_OPENSSL ?= "openssl"
-PACKAGECONFIG_DEFAULT ?= "dbus udev evdev widgets tools libs freetype"
+PACKAGECONFIG_DEFAULT ?= "dbus udev evdev tslib widgets tools libs freetype"

2、修改tslib插件(触摸没旋转)

修改位置:fsl-imx-x11/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/qtbase/5.8.0+gitAUTOINC+49dc9aa409-r0/git/src/platformsupport/input/tslib/qtslib.cpp

   参考链接(https://forum.qt.io/topic/67820/cannot-rotate-my-touchscreen-with-qt_qpa_evdev_touchscreen_parameters-using-linuxfb-plugin/2)

生成补丁,添加到qtbase_git.bb

3、单独编译qtbase

bitbake -c compile -f -v qtbase

编译之前可以清一清

bitbake -c clean -v qtbase


你可能感兴趣的:(imx6)