petalinux 生成SDK报错排除

AAA:

petalinux 生成SDK报错排除_第1张图片

  1. 在项目文件下新建Qt5文件夹
  2. 文件夹内新建文件并且设置对应参数

文件夹路径:

project-spec/meta-user/recipes-qt/qt5

新建文件

vim ./qt5/qt3d_%.bbappend
vim ./qt5/qtquickcontrols2_%.bbappend
vim ./qt5/qtserialbus_%.bbappend

文件内容

  1. 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"
  2. 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"
  3. 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 

你可能感兴趣的:(qt,c++,嵌入式硬件,fpga开发,驱动开发,linux)