[MacPorts] #68189: opencv4 @4.6.0 +contrib+eigen+java+nonfree+opencl+openmp+qt5+tbb+vtk: build failure related to ceres-solver: cannot initialize a parameter of type 'LocalParameterization*' with an lvalue of type 'ceres::SubsetManifold*'
MacPorts
noreply at macports.org
Mon Sep 18 16:04:11 UTC 2023
#68189: opencv4 @4.6.0 +contrib+eigen+java+nonfree+opencl+openmp+qt5+tbb+vtk: build
failure related to ceres-solver: cannot initialize a parameter of type
'LocalParameterization*' with an lvalue of type 'ceres::SubsetManifold*'
----------------------+----------------------
Reporter: Gandoon | Owner: mascguy
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords:
Port: opencv4 |
----------------------+----------------------
Comment (by Gandoon):
Replying to [comment:3 mascguy]:
> Based on the log, you have Xcode/CLT 12.4 installed. And that release
ships with the macOS 11 SDK, rather than 10.15, which can definitely cause
issues.
>
> The latest Xcode/CLT release with the 10.15 SDK, is 12.1. So I'd
strongly recommend that you downgrade both the CLT and Xcode to that
version, before going any further.
I have been using that combination of Xcode/CLT for many years now, it has
never been an issue so far. Can you point to what would be the actual
issues with using the newer Xcode/CLT? The point of having the setup I
have is to be able to build for both MacOS 10.15 and 11.n (as far as I
know, that is the reason why it was released for 10.15 back when it was
the latest and greatest). I do have my doubts that this should be the
problem as as recently as July this year I built opencv4 with this exact
setup:
{{{
$ port -v installed opencv4
The following ports are currently installed:
opencv4 @4.6.0_11+contrib+eigen+java+nonfree+opencl+openmp+qt5+tbb+vtk
(active)
requested_variants='+contrib+eigen+java+nonfree+opencl+openmp+qt5+tbb+vtk'
platform='darwin 19' archs='x86_64' date='2023-07-26T14:15:21+0200'
}}}
I would prefer to not downgrade anything as there is an obvious risk that,
despite the original intended Xcode/CLT for 10.15 was 12.1, such an action
could break more than it fixes. The 10.15 SDKs are available and linked
to.
By repeating `port -v upgrade opencv4` I manage to arrive at roughly 98%
built and the Ceres error being one of the last hurdles to cross.
--
Ticket URL: <https://trac.macports.org/ticket/68189#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list