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:通过 SDK 在轻屏下构建 GPU 演示应用程序需要执行哪些步骤?

Guru**** 2562120 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1572754/faq-tda4vh-q1-what-are-the-steps-to-build-the-gpu-demo-application-lightweight-offscreen-through-the-sdk

器件型号:TDA4VH-Q1


工具/软件:

我希望能够构建和测试 GPU 测试应用程序轻量级离屏演示、如下所示: https://github.com/StaticRocket/lightweight-offscreen

我目前正在使用 SDK 9.2 如何做到这一点?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    1. Git 克隆存储库 (https://github.com/StaticRocket/lightweight-offscreen)
    2. source environment-setup-Aarch64-oe-linux 中
    3. 创建交叉文件并将其放置在/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 中、如下所示:
      [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. 现在、在存储库中通过运行来配置构建  Meson setup build --buildtype=release
    5. 使用构建演示  ninja -C 编译
    6. 将存储库的构建目录中的可执行文件复制到目标上并运行演示。

     在此处附加要下载的交叉文件:

    aarch64-oe-linux-meson.cross

    该演示是基于 9.2 SDK 的系统根构建的、但也可以基于任何 SDK 的系统根构建。 只需按照相应的步骤更改交叉文件中的文件位置。

    此致、
    Sarabesh S.