Opened 3 years ago

Closed 3 years ago

#62597 closed defect (worksforme)

opencv4: Fails to build on 10.15 caused by rgbd submodule

Reported by: essandess (Steve Smith) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Cc: stromnov (Andrey Stromnov), mascguy (Christopher Nielsen)
Port: opencv4 py-opencv4

Description (last modified by mf2k (Frank Schima))

> sudo port install opencv4

:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_opencv4/opencv4/work/opencv-4.5.1/opencv_contrib/modules/rgbd/src/submap.hpp:16:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_opencv4/opencv4/work/opencv-4.5.1/opencv_contrib/modules/rgbd/src/pose_graph.hpp:266:30: error: unknown type name 'Pose3d'
:info:build     Pose3dErrorFunctor(const Pose3d& _poseMeasurement, const Matx66d& _sqrtInformation)
:info:build                              ^

This is on 10.15.

Change History (11)

comment:1 Changed 3 years ago by essandess (Steve Smith)

Summary: opencv4opencv4: Fails to build on 10.15 caused by rugby submodule

comment:2 Changed 3 years ago by essandess (Steve Smith)

Summary: opencv4: Fails to build on 10.15 caused by rugby submoduleopencv4: Fails to build on 10.15 caused by rgbd submodule

comment:3 Changed 3 years ago by mf2k (Frank Schima)

Cc: mascguy added
Port: py-opencv4 added; py39-overncv4 removed

comment:4 Changed 3 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:5 Changed 3 years ago by mascguy (Christopher Nielsen)

Steve, which version(s) of Xcode and Xcode Command-Line Tools do you have installed?

comment:6 Changed 3 years ago by mascguy (Christopher Nielsen)

Also, it looks like binaries exist for 10.15. Are you attempting to install from source?

Last edited 3 years ago by mascguy (Christopher Nielsen) (previous) (diff)

comment:7 in reply to:  6 Changed 3 years ago by essandess (Steve Smith)

Replying to mascguy:

Also, it looks like binaries exist for 10.15. Are you attempting to install from source?

Whoops, yes. I was doing a port -s install py39-pytorch to avoid the @rpath issue and the opencv4 update went along for the ride.

The binary install works for me, thank you.

This is with:

macOS 10.15.7 19H524
Xcode 12.4 12D4e

comment:8 Changed 3 years ago by essandess (Steve Smith)

Oh, and I see that I was updating a previous opencv4 +contrib install, which is likely the cause of the build failure.

Sorry, this issue is a false alert, aside from opencv4's +contrib build issues.

comment:9 Changed 3 years ago by mascguy (Christopher Nielsen)

No worries Steve. Sounds like this ticket can be closed then?

comment:10 in reply to:  9 Changed 3 years ago by essandess (Steve Smith)

Replying to mascguy:

No worries Steve. Sounds like this ticket can be closed then?

Yes, please.

comment:11 Changed 3 years ago by mf2k (Frank Schima)

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.