This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[FAQ] TDA4VH-Q1: What are the steps to build the GPU demo application lightweight-offscreen through the SDK?

Part Number: TDA4VH-Q1


Tool/software:

I want to be able to build and test the GPU test-application lightweight-offscreen demo shown here: https://github.com/StaticRocket/lightweight-offscreen

I am currently on SDK 9.2 how can I do this?

    1. git clone the repo (https://github.com/StaticRocket/lightweight-offscreen)
    2. in the SDK directory source environment-setup-aarch64-oe-linux
    3. create the crossfile and place it in /home/user/ti-processor-sdk-linux-adas-j721s2-evm-09_02_00_05/linux-devkit/sysroots/x86_64-arago-linux/usr/share/meson/aarch64-oe-linux-meson.cross as shown here:
      [binaries]
      c = '/home/user/tisdk_releases/j7aep/902/ti-processor-sdk-linux-adas-j721s2-evm-09_02_00_05/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-gcc'
      cpp = '/home/user/tisdk_releases/j7aep/902/ti-processor-sdk-linux-adas-j721s2-evm-09_02_00_05/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-g++'
      ar = '/home/user/tisdk_releases/j7aep/902/ti-processor-sdk-linux-adas-j721s2-evm-09_02_00_05/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-ar'
      strip = '/home/user/tisdk_releases/j7aep/902/ti-processor-sdk-linux-adas-j721s2-evm-09_02_00_05/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-strip'
      pkgconfig = 'pkg-config'
      
      [properties]
      needs_exe_wrapper = true
      sys_root = '/home/user/tisdk_releases/j7aep/902/ti-processor-sdk-linux-adas-j721s2-evm-09_02_00_05/linux-devkit/sysroots/aarch64-oe-linux'
      pkg_config_libdir = '/home/user/tisdk_releases/j7aep/902/ti-processor-sdk-linux-adas-j721s2-evm-09_02_00_05/linux-devkit/sysroots/aarch64-oe-linux/usr/lib/pkgconfig'
      
      [built-in options]
      c_args = ['--sysroot=/home/user/tisdk_releases/j7aep/902/ti-processor-sdk-linux-adas-j721s2-evm-09_02_00_05/linux-devkit/sysroots/aarch64-oe-linux', '-mbranch-protection=standard']
      cpp_args = ['--sysroot=/home/user/tisdk_releases/j7aep/902/ti-processor-sdk-linux-adas-j721s2-evm-09_02_00_05/linux-devkit/sysroots/aarch64-oe-linux', '-mbranch-protection=standard']
      c_link_args = ['--sysroot=/home/user/tisdk_releases/j7aep/902/ti-processor-sdk-linux-adas-j721s2-evm-09_02_00_05/linux-devkit/sysroots/aarch64-oe-linux']
      cpp_link_args = ['--sysroot=/home/user/tisdk_releases/j7aep/902/ti-processor-sdk-linux-adas-j721s2-evm-09_02_00_05/linux-devkit/sysroots/aarch64-oe-linux']
      
      [host_machine]
      system = 'linux'
      cpu_family = 'aarch64'
      cpu = 'armv8-a'
      endian = 'little'
    4. Now inside the repo configure the build by running meson setup build --buildtype=release
    5. Build the demo with ninja -C build
    6. Copy the executable in the build directory of the repo onto the target and run the demo.

    Attaching the crossfile to download here:

    aarch64-oe-linux-meson.cross

    The demo is built against the 9.2 SDK's sysroots but can be built against any SDK's sysroots. Just follow the respective steps and change the file locations in the crossfile.

    Best Regards,
    Sarabesh S.