[MacPorts] #68189: opencv4 @4.6.0_12 +contrib +eigen +java +nonfree +opencl +openmp +qt5 +tbb +vtk fails to build on MacOS 10.15

MacPorts noreply at macports.org
Mon Sep 18 14:39:36 UTC 2023


#68189: opencv4 @4.6.0_12 +contrib +eigen +java +nonfree +opencl +openmp +qt5 +tbb
+vtk fails to build on MacOS 10.15
---------------------+---------------------
 Reporter:  Gandoon  |      Owner:  (none)
     Type:  defect   |     Status:  new
 Priority:  Normal   |  Milestone:
Component:  ports    |    Version:  2.8.1
 Keywords:           |       Port:  opencv4
---------------------+---------------------
 Yet again there is an issue with opencv4. This time it does not seem to be
 related to tbb/onetbb.

 The build fails on MacOS 10.15 early during the build, soon after it spits
 out this error:
 {{{
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv4/opencv4/work/opencv4-4.6.0/opencv_contrib/modules/sfm/src/libmv_light/libmv/simple_pipeline/bundle.cc:552:17:
 warning: 'SetParameterization' is deprecated: LocalParameterizations are
 deprecated. Use SetManifold instead. [-Wdeprecated-declarations]
         problem.SetParameterization(current_camera_R_t,
                 ^
 /opt/local/include/ceres/problem.h:393:3: note: 'SetParameterization' has
 been explicitly marked deprecated here
   CERES_DEPRECATED_WITH_MSG(
   ^
 /opt/local/include/ceres/internal/port.h:40:59: note: expanded from macro
 'CERES_DEPRECATED_WITH_MSG'
 #define CERES_DEPRECATED_WITH_MSG(message)
 __attribute__((deprecated(message)))
                                                           ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv4/opencv4/work/opencv4-4.6.0/opencv_contrib/modules/sfm/src/libmv_light/libmv/simple_pipeline/bundle.cc:553:37:
 error: cannot initialize a parameter of type 'LocalParameterization *'
 with an lvalue of type 'ceres::SubsetManifold *'
                                     constant_translation_manifold);
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 /opt/local/include/ceres/problem.h:396:51: note: passing argument to
 parameter 'local_parameterization' here
                            LocalParameterization* local_parameterization);
                                                   ^
 1 warning and 1 error generated.
 }}}

 I am uncertain if this is an error relating to MacPorts or if it is an
 upstream issue. I have tried to force a rebuild of `ceres-solver @2.1.0_0`
 just in case it would help, but no success.

-- 
Ticket URL: <https://trac.macports.org/ticket/68189>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list