工具/软件:
您好:
我正在尝试使用光瞳指向性标签 (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