Examples - 2020.2 English

PetaLinux Tools Documentation Reference Guide (UG1144)

Document ID
Release Date
2020.2 English
  1. Adding a cross compiling qt toolchain

    To build SDK with qt toolchain:

    1. Create the <plnx-proj-root>/project-spec/meta-user/recipes-core/images/petalinux-image-minimal.bbappend file.
    2. Add inherit populate_sdk_qt5 in the newly created file.
    3. Run petalinux-config -c rootfs and select packagegroup-petalinux-qt.
    4. Run petalinux-build -s.
    5. Run petalinux-package --sysroot.

    To verify:

    1. Open a new terminal.
    2. Go to <plnx-proj-root>/image/linux/sdk.
    3. Run source environment-setup-aarch64-xilinx-linux.
    4. Run which qmake. This confirms that the qmake is coming from the SDK.
  2. Building OpenCV applications
    1. Create a PetaLinux project.
    2. Add packagegroup-petalinux-opencv in the RootFS menu config.
    3. Build SDK
      petalinux-build --sdk

      This command builds SDK and deploys it at <plnx-proj-root>/images/linux/sdk.sh.

    4. Install SDK.
      petalinux-package --sysroot

      This command installs SDK at <plnx-proj-root>/images/linux/sdk.

    5. Use the images/linux/sdk directory as sysroot for building the OpenCV applications.