AAA:
- 在项目文件下新建Qt5文件夹
- 文件夹内新建文件并且设置对应参数
文件夹路径:
project-spec/meta-user/recipes-qt/qt5
新建文件
vim ./qt5/qt3d_%.bbappend
vim ./qt5/qtquickcontrols2_%.bbappend
vim ./qt5/qtserialbus_%.bbappend
文件内容
- qt3d_%.bbappend
# SRC_URI = "git://code.qt.io/qt/qt3d.git;name=qt3d;branch=5.15;protocol=git" # SRCREV = "92853c6e1aa95dfb7d605959ff44ccc124fbd62c"SRC_URI = "git://code.qt.io/qt/qt3d.git;name=qt3d;nobranch=1;protocol=git"
- qtquickcontrols2_%.bbappend
# SRC_URI = "git://code.qt.io/qt/qtquickcontrols2.git;name=qt3d;branch=5.15;protocol=git" # SRCREV = "16f27dfa3588c2bf377568ce00bf534af48c9558"SRC_URI = "git://code.qt.io/qt/qtquickcontrols2.git;name=qtquickcontrols2;nobranch=1;protocol=git"
- qtserialbus_%.bbappend
# SRC_URI = "git://code.qt.io/qt/qtserialbus.git;name=qt3d;branch=5.15;protocol=git" # SRCREV = "d3394c81f10e5d5c40663e88e185335549e4bc12"SRC_URI = "git://code.qt.io/qt/qtserialbus.git;name=qtserialbus;nobranch=1;protocol=git"
执行编译
petalinux-build --sdk