Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Tip

本文主要参考https://www.phytec.de/cdocuments/?doc=LAC7Ig编写。

1、初始化环境变量


Code Block
titleHost
phytec@ubuntu:~/BSP/BSP-Yocto-NXP-i.MX8MP-PD22.1.0$ source sources/poky/oe-init-build-env 

██████╗ ██╗  ██╗██╗   ██╗████████╗███████╗ ██████╗
██╔══██╗██║  ██║╚██╗ ██╔╝╚══██╔══╝██╔════╝██╔════╝
██████╔╝███████║ ╚████╔╝    ██║   █████╗  ██║     
██╔═══╝ ██╔══██║  ╚██╔╝     ██║   ██╔══╝  ██║     
██║     ██║  ██║   ██║      ██║   ███████╗╚██████╗
╚═╝     ╚═╝  ╚═╝   ╚═╝      ╚═╝   ╚══════╝ ╚═════╝


Welcome to the PHYTEC BSP-Yocto buildsystem.

Before building for the first time, you should take a look in the main
configuration file 'conf/local.conf'. There you can tweak the build system
settings and license configuration. For example you may have to accept the
Freescale/NXP GPU and VPU licence for an i.MX6 board.

Tested build target for this build configuration is:

   $ bitbake phytec-headless-image


2、确认BSP是否有qtcharts相关支持


Code Block
titleHost
phytec@ubuntu:~/BSP/BSP-Yocto-NXP-i.MX8MP-PD22.1.0/build$ bitbake -s | grep chart
bootchart                                           1:1.17-r1                                                    
bootchart2                                         :0.14.9-r0                                                    
bootchart2-native                                  :0.14.9-r0                                                    
python3-pyqtchart                                  :5.15.1-r0                                                    
qtcharts                            :5.15.2+gitAUTOINC+130463160b-r0                                                    
systemd-bootchart  

3、在build/conf/local.conf中添加qtcharts和python3-pyqtchart支持


Code Block
titlelocal.conf
IMAGE_INSTALL_append += "qtcharts python3-pyqtchart"

4、编译phytec-qt5demo-image


Code Block
titleHost
phytec@ubuntu:~/BSP/BSP-Yocto-NXP-i.MX8MP-PD22.1.0/build$ bitbake phytec-qt5demo-image

...

编译结果在BSP-Yocto-NXP-i.MX8MP-PD22.1.0/build/deploy/images中。

5、生成SDK


Code Block
titleHost
phytec@ubuntu:~/BSP/BSP-Yocto-NXP-i.MX8MP-PD22.1.0/build$ bitbake phytec-qt5demo-image -c populate_sdk

...