Installing Apriltags on Ubuntu and RPI Bookmarks fails

Apriltags installation fails be installed on either ubunto of Raspberry Pi Bookworm.

There is a question already on this but because one cannot add a comment unles one has some 30 odd points I must resort to entrering a new question. Pehaps change this rather usual ruling??

openvino_env) nigel@nigel-VirtualBox:~$ pip install cmake

Collecting cmake

Downloading cmake-3.29.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.1 kB)

Downloading cmake-3.29.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (26.7 MB)

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 26.7/26.7 MB 1.4 MB/s eta 0:00:00

Installing collected packages: cmake

Successfully installed cmake-3.29.2

(openvino_env) nigel@nigel-VirtualBox:~$ pip install apriltag

Collecting apriltag

Using cached apriltag-0.0.16.tar.gz (201 kB)

Preparing metadata (setup.py) … done

Building wheels for collected packages: apriltag

Building wheel for apriltag (setup.py) … error

error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.

│ exit code: 1

╰─> [354 lines of output]

  running bdist_wheel

  running build

  running build_py

  creating build

  creating build/lib.linux-x86_64-3.10

  copying python/apriltag.py -> build/lib.linux-x86_64-3.10

  running build_ext

—————- some lines delete due to space problems ————
[ 82%] Linking CXX shared library /tmp/pip-install-dr5krbeb/apriltag_5fca6caabe9246198a971d6ff3f5f4df/build/lib.linux-x86_64-3.10/libapriltag_opencv.so

  [ 82%] Built target apriltag_opencv

  [ 84%] Building CXX object opencv/CMakeFiles/apriltag_opencv_demo.dir/apriltag_opencv_demo.cpp.o

  [ 85%] Building CXX object opencv/CMakeFiles/apriltag_camera_demo.dir/apriltag_camera_demo.cpp.o

  [ 87%] Linking CXX executable ../apriltag_camera_demo

  /usr/bin/ld: warning: libdc1394.so.22, needed by /usr/local/lib/libopencv_videoio.so, not found (try using -rpath or -rpath-link)

  [ 89%] Linking CXX executable ../apriltag_opencv_demo

  /usr/bin/ld: warning: libIlmImf-2_3.so.24, needed by /usr/local/lib/libopencv_imgcodecs.so, not found (try using -rpath or -rpath-link)

  /usr/bin/ld: warning: libIlmImf-2_3.so.24, needed by /usr/local/lib/libopencv_imgcodecs.so, not found (try using -rpath or -rpath-link)

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::Header::dataWindow() const'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::InputFile::InputFile(char const*, int)'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::FrameBuffer::insert(char const*, Imf_2_3::Slice const&)'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::OutputFile::setFrameBuffer(Imf_2_3::FrameBuffer const&)'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::ChannelList::findChannel(char const*) const'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::Header::channels()'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::chromaticities(Imf_2_3::Header const&)'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::OutputFile::~OutputFile()'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::Slice::Slice(Imf_2_3::PixelType, char*, unsigned long, unsigned long, int, int, double, bool, bool)'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::OutputFile::OutputFile(char const*, Imf_2_3::Header const&, int)'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::FrameBuffer::begin()'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::Chromaticities::Chromaticities(Imath_2_3::Vec2<float> const&, Imath_2_3::Vec2<float> const&, Imath_2_3::Vec2<float> const&, Imath_2_3::Vec2<float> const&)'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::Header::Header(int, int, float, Imath_2_3::Vec2<float> const&, float, Imf_2_3::LineOrder, Imf_2_3::Compression)'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::InputFile::setFrameBuffer(Imf_2_3::FrameBuffer const&)'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::Channel::Channel(Imf_2_3::PixelType, int, int, bool)'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::Header::channels() const'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::FrameBuffer::end()'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::InputFile::header() const'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::Header::~Header()'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::ChannelList::insert(char const*, Imf_2_3::Channel const&)'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::InputFile::readPixels(int, int)'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::OutputFile::writePixels(int)'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::hasChromaticities(Imf_2_3::Header const&)'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::globalThreadCount()'

  collect2: error: ld returned 1 exit status

  gmake[2]: *** [opencv/CMakeFiles/apriltag_opencv_demo.dir/build.make:99: apriltag_opencv_demo] Error 1

  gmake[1]: *** [CMakeFiles/Makefile2:347: opencv/CMakeFiles/apriltag_opencv_demo.dir/all] Error 2

  gmake[1]: *** Waiting for unfinished jobs....

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_feature_whitebalance_get_value'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_camera_enumerate'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::InputFile::InputFile(char const*, int)'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::OutputFile::setFrameBuffer(Imf_2_3::FrameBuffer const&)'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::FrameBuffer::insert(char const*, Imf_2_3::Slice const&)'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_feature_set_value'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_feature_set_absolute_control'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::Header::channels()'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_convert_frames'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::chromaticities(Imf_2_3::Header const&)'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_capture_is_frame_corrupt'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_video_set_operation_mode'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::OutputFile::OutputFile(char const*, Imf_2_3::Header const&, int)'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::FrameBuffer::begin()'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_free'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::Header::Header(int, int, float, Imath_2_3::Vec2<float> const&, float, Imf_2_3::LineOrder, Imf_2_3::Compression)'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::Channel::Channel(Imf_2_3::PixelType, int, int, bool)'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::Header::channels() const'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_camera_new'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::InputFile::setFrameBuffer(Imf_2_3::FrameBuffer const&)'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_video_set_mode'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_feature_whitebalance_set_value'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::FrameBuffer::end()'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_capture_stop'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_capture_enqueue'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::InputFile::header() const'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_get_control_registers'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::Header::~Header()'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_capture_get_fileno'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_video_set_framerate'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_get_color_coding_bit_size'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_new'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::InputFile::readPixels(int, int)'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::globalThreadCount()'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_video_set_transmission'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::Header::dataWindow() const'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_video_set_iso_speed'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::ChannelList::findChannel(char const*) const'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_feature_set_power'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_feature_get_value'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_camera_free'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_get_color_coding_from_video_mode'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_camera_free_list'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::OutputFile::~OutputFile()'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::Slice::Slice(Imf_2_3::PixelType, char*, unsigned long, unsigned long, int, int, double, bool, bool)'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::Chromaticities::Chromaticities(Imath_2_3::Vec2<float> const&, Imath_2_3::Vec2<float> const&, Imath_2_3::Vec2<float> const&, Imath_2_3::Vec2<float> const&)'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_debayer_frames'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_video_get_supported_modes'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_set_control_registers'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_video_get_mode'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_feature_get_all'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_video_get_supported_framerates'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_capture_dequeue'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_get_image_size_from_video_mode'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_deinterlace_stereo'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_capture_setup'

  /usr/bin/ld: /usr/local/lib/libopencv_videoio.so: undefined reference to `dc1394_feature_set_mode'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::OutputFile::writePixels(int)'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::ChannelList::insert(char const*, Imf_2_3::Channel const&)'

  /usr/bin/ld: /usr/local/lib/libopencv_imgcodecs.so: undefined reference to `Imf_2_3::hasChromaticities(Imf_2_3::Header const&)'

  collect2: error: ld returned 1 exit status

  gmake[2]: *** [opencv/CMakeFiles/apriltag_camera_demo.dir/build.make:99: apriltag_camera_demo] Error 1

  gmake[1]: *** [CMakeFiles/Makefile2:374: opencv/CMakeFiles/apriltag_camera_demo.dir/all] Error 2

  gmake: *** [Makefile:136: all] Error 2

  Traceback (most recent call last):

    File "<string>", line 2, in <module>

    File "<pip-setuptools-caller>", line 34, in <module>

    File "/tmp/pip-install-dr5krbeb/apriltag_5fca6caabe9246198a971d6ff3f5f4df/setup.py", line 62, in <module>

      setup(

    File "/home/nigel/openvino_env/lib/python3.10/site-packages/setuptools/__init__.py", line 153, in setup

      return distutils.core.setup(**attrs)

    File "/usr/lib/python3.10/distutils/core.py", line 148, in setup

      dist.run_commands()

    File "/usr/lib/python3.10/distutils/dist.py", line 966, in run_commands

      self.run_command(cmd)

    File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command

      cmd_obj.run()

    File "/home/nigel/openvino_env/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 368, in run

      self.run_command("build")

    File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command

      self.distribution.run_command(command)

    File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command

      cmd_obj.run()

    File "/usr/lib/python3.10/distutils/command/build.py", line 135, in run

      self.run_command(cmd_name)

    File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command

      self.distribution.run_command(command)

    File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command

      cmd_obj.run()

    File "/tmp/pip-install-dr5krbeb/apriltag_5fca6caabe9246198a971d6ff3f5f4df/setup.py", line 35, in run

      self.build_extension(ext)

    File "/tmp/pip-install-dr5krbeb/apriltag_5fca6caabe9246198a971d6ff3f5f4df/setup.py", line 60, in build_extension

      subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp)

    File "/usr/lib/python3.10/subprocess.py", line 369, in check_call

      raise CalledProcessError(retcode, cmd)

  subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j2']' returned non-zero exit status 2.

  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

ERROR: Failed building wheel for apriltag

Running setup.py clean for apriltag

Failed to build apriltag

ERROR: Could not build wheels for apriltag, which is required to install pyproject.toml-based projects

(openvino_env) nigel@nigel-VirtualBox:~$ lsb_release -a

No LSB modules are available.

Distributor ID: Ubuntu

Description: Ubuntu 22.04.4 LTS

Release: 22.04

Codename: jammy

(openvino_env) nigel@nigel-VirtualBox:~$

New contributor

user3711457 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật