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.

[参考译文] SK-TDA4VM:在 Edge AI SDK 11.00.00.08 上安装光瞳指向性标签时遇到的问题

Guru**** 2558250 points
Other Parts Discussed in Thread: SK-TDA4VM

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1569008/sk-tda4vm-issue-installing-pupil-apriltags-on-edge-ai-sdk-11-00-00-08

器件型号:SK-TDA4VM


工具/软件:

您好:

我正在尝试使用光瞳指向性标签 (Python) 库在我的 SK-TDA4VM 上进行 AprilTag 标记检测。

我格式化了 SD 卡并安装了 Edge AI SDK 11.00.00.08。 安装后、我运行了:

pip3 install pupil-apriltags

The installation starts fine but fails during the build step with the following error:

Collecting pupil-apriltags
  Downloading pupil_apriltags-1.0.4.post11.tar.gz (1.9 MB)
     qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq 1.9/1.9 MB 7.9 MB/s eta 0:00:00
  Installing build dependencies ... |[   72.946585] kauditd_printk_skb: 12 callbacks suppressed
[   72.946594] audit: type=1334 audit(1758633228.146:26): prog-id=23 op=LOAD
[   73.061397] audit: type=1334 audit(1758633228.262:27): prog-id=23 op=UNLOAD
done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in /usr/lib/python3.12/site-packages (from pupil-apriltags) (1.26.4)
Building wheels for collected packages: pupil-apriltags
  Building wheel for pupil-apriltags (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for pupil-apriltags (pyproject.toml) did not run successfully.
  x exit code: 1
      CMake Deprecation Warning at CMakeLists.txt:2 (cmake_minimum_required):
        Compatibility with CMake < 3.10 will be removed from a future version of
        CMake.

        Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
        to tell CMake that the project requires at least <min> but has been updated
        to work with policies introduced by <max> or earlier.


      CMake Deprecation Warning at /tmp/pip-install-xc22kgmt/pupil-apriltags_ef098965a5be465996048017bbed4ba1/apriltags-source/CMakeLists.txt:1 (cmake_minimum_required):
        Compatibility with CMake < 3.10 will be removed from a future version of
        CMake.

        Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
        to tell CMake that the project requires at least <min> but has been updated
        to work with policies introduced by <max> or earlier.


      CMake Error at /usr/lib/cmake/opencv4/OpenCVModules.cmake:439 (message):
        The imported target "correspondence" references the file

           "/usr/lib/opencv4/3rdparty/libcorrespondence.a"

        but this file does not exist.  Possible reasons include:

        * The file was deleted, renamed, or moved to another location.

        * An install or uninstall procedure did not complete successfully.

        * The installation package was faulty and contained

           "/usr/lib/cmake/opencv4/OpenCVModules.cmake"

        but not all the files it references.

      Call Stack (most recent call first):
        /usr/lib/cmake/opencv4/OpenCVConfig.cmake:126 (include)
        /tmp/pip-install-xc22kgmt/pupil-apriltags_ef098965a5be465996048017bbed4ba1/apriltags-source/CMakeLists.txt:4 (find_package)


      -- Configuring incomplete, errors occurred!
      Traceback (most recent call last):
        File "/tmp/pip-build-env-ccrb0qx1/overlay/lib/python3.12/site-packages/skbuild/setuptools_wrap.py", line 660, in setup
          env = cmkr.configure(
                ^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-ccrb0qx1/overlay/lib/python3.12/site-packages/skbuild/cmaker.py", line 354, in configure
          raise SKBuildError(msg)

      An error occurred while configuring with CMake.
        Command:
          /tmp/pip-build-env-ccrb0qx1/overlay/lib/python3.12/site-packages/cmake/data/bin/cmake /tmp/pip-install-xc22kgmt/pupil-apriltags_ef098965a5be465996048017bbed4ba1/src/pupil_apriltags -G Ninja -DCMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/ninja --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pip-install-xc22kgmt/pupil-apriltags_ef098965a5be465996048017bbed4ba1/_skbuild/linux-aarch64-3.12/cmake-install/src/pupil_apriltags -DPYTHON_VERSION_STRING:STRING=3.12.9 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/tmp/pip-build-env-ccrb0qx1/overlay/lib/python3.12/site-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/usr/bin/python3 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPYTHON_LIBRARY:PATH=/usr/lib/libpython3.12.so -DPython_EXECUTABLE:PATH=/usr/bin/python3 -DPython_ROOT_DIR:PATH=/usr -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.12 -DPython3_EXECUTABLE:PATH=/usr/bin/python3 -DPython3_ROOT_DIR:PATH=/usr -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.12 -DCMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/ninja -DCMAKE_BUILD_TYPE:STRING=Release
        Source directory:
          /tmp/pip-install-xc22kgmt/pupil-apriltags_ef098965a5be465996048017bbed4ba1/src/pupil_apriltags
        Working directory:
          /tmp/pip-install-xc22kgmt/pupil-apriltags_ef098965a5be465996048017bbed4ba1/_skbuild/linux-aarch64-3.12/cmake-build
      Please see CMake's output for more information.

      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pupil-apriltags
Failed to build pupil-apriltags
ERROR: Could not build wheels for pupil-apriltags, which is required to install pyproject.toml-based projects


From what I understand, the CMake process in pupil-apriltags is trying to find some OpenCV dependencies that don’t exist in the default SDK image.

我的问题是:

-是否有pupil-apriltags直接安装在 Edge AI SDK 上的推荐方法?

-这个错误是否与 SDK 中包含的 OpenCV 构建有关? (它看起来像一些工件,如libcorrespondence.a,丢失)。

-任何建议的解决方法? (例如,手动构建 apriltag 和链接库、使用 SDK 中已提供的不同软件包等)。

此致、
Heverton

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

    嗨、Heverton、

    您是否使用默认的演示映像? 或者、您是否建立了自己的形象?

    是否还设置了必要的代理?

    此致、

    Christina

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

    尊敬的 Christina:

    我使用的是 TI 提供的默认演示映像、而不是定制的映像。
    我的电路板可以直接访问互联网、因此我不支持任何代理。

    软件包下载本身可以正常使用 pip3 install pupil-apriltags、但在轮盘编译过程中、由于与 OpenCV 缺少 lib通信 相关的 CMake 错误、构建失败

    你有什么建议吗?

    谢谢、
    Heverton

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

    嗨、Heverton、

    为了设定期望、 我们在特定的库或驱动程序方面没有专业知识、因此支持会很低。

    尽管如此,我尝试复制相同的问题,并看到类似的错误指向缺少 lib通信。a 使用 pip3。 然而,我能够直接从源代码通过从这里克隆来构建光瞳 — 排列标签: https://github.com/pupil-labs/apriltags 

    e2e.ti.com/.../pupil_5F00_apriltag.txt

    此致、

    Takuma

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

    尊敬的 Takuma:

    我理解、也许即使你也不能在这方面提供太多帮助、但我真的很感激迄今所作的努力和提出的建议。

    我忘记前面提到,但我也设法以相同的方式安装软件包(通过克隆存储库)。 但是、当我尝试使用库实际运行代码时、会收到以下错误:

    RuntimeError: Could not find clib with pattern libapriltag*.so* in any of (PosixPath('/root/apriltags/src/pupil_apriltags/lib'), PosixPath('/root/apriltags/src/pupil_apriltags/lib64'))
    运行库附带的测试可以重现此问题、如 GitHub 存储库中所示。
    我运行的命令是: pytest tests/ 从/apriltags 克隆的存储库中运行。

    当我运行自己的导入库的代码时也会出现同样的行为。

    如果您无法对此提供进一步帮助、我将完全理解、但我认为这可能与默认 SDK 映像中预装的 OpenCV 版本有关。

    再次感谢您的支持!

    此致、
    Heverton

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

    嗨、Heverton、

    不幸的是,在这里不能帮助太多。 预装默认 SDK 映像的 OpenCV 版本可能兼容、但根据原始帖子中的错误消息、它缺少一些第三方 OpenCV 库。 为了干净地构建和运行、您需要找到缺少的库、然后构建/安装库、然后重新构建。

    此致、

    Takuma