Opened 8 years ago

Closed 4 years ago

#53126 closed defect (duplicate)

opencv @3.1.0_8 +avx2 +contrib +eigen +gdal +opencl +java +python27 +python35 +qt5 +tbb fails to build

Reported by: ksze (Kal Sze) Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.3.5
Keywords: Cc: mascguy (Christopher Nielsen)
Port: opencv

Description

  • macOS Sierra 10.12.2
  • Xcode 8.2.1
  • Command Line Tools (macOS Sierra version 10.12.2) for Xcode (version 8.2)
  • MacPorts 2.3.5

Just like that title says. opencv @3.1.0_8 with those variants specified fails to build.

Build log attached.

Note that although the build log alludes to syntax errors in eigen3 headers, building with just +eigen (and none of the other variants) actually works fine.

In case it's relevant, I have eigen3 @3.3.1_0+blas+clang39+gfortran installed.

Attachments (1)

main.log (2.8 MB) - added by ksze (Kal Sze) 8 years ago.
Build log

Change History (13)

Changed 8 years ago by ksze (Kal Sze)

Attachment: main.log added

Build log

comment:1 Changed 8 years ago by mf2k (Frank Schima)

Keywords: build removed
Owner: set to stromnov
Status: newassigned

In the future, please Cc the port maintainers (port info --maintainers opencv), if any.

comment:2 Changed 4 years ago by mascguy (Christopher Nielsen)

Is this still an issue?

comment:3 Changed 4 years ago by ksze (Kal Sze)

The various pieces have gone through updates over the years: the OS, the build toolchain, the dependencies, opencv itself.

I just tried sudo port install opencv +avx2 +eigen +gdal +opencl +java +contrib +python27 +python39 +qt5 +tbb +vtk +openni on macOS Mojave 10.14.6, using the latest MacPorts, and it still fails, although apparently for a different reason. I suppose we should close this ticket and create a new one?

comment:4 in reply to:  3 Changed 4 years ago by mascguy (Christopher Nielsen)

Replying to ksze:

I just tried sudo port install opencv +avx2 +eigen +gdal +opencl +java +contrib +python27 +python39 +qt5 +tbb +vtk +openni on macOS Mojave 10.14.6, using the latest MacPorts, and it still fails, although apparently for a different reason. I suppose we should close this ticket and create a new one?

I'll take a look. Can you attach main.log?

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

Cc: mascguy added

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

Of note, there is an open ticket, related to build failures when using variant contrib. I'm looking into it, but don't have a solution yet:

issue:61908 (opencv: @3.4.13: variant 'contrib' fails with link error, for module 'libopencv_sfm')

Go ahead and attach your logs, but I suspect it's contrib that's causing the issue. Can you also try without +contrib?

comment:7 Changed 4 years ago by mascguy (Christopher Nielsen)

Just tested an install on macOS 10.14.6, with all but two of your variants, and the build succeeded. The variants not included were contrib (for the reason mentioned prior), along with avx2 (my older Mac's CPUs don't support the AVX instruction set).

comment:8 in reply to:  6 Changed 4 years ago by ksze (Kal Sze)

Replying to mascguy:

Of note, there is an open ticket, related to build failures when using variant contrib. I'm looking into it, but don't have a solution yet:

issue:61908 (opencv: @3.4.13: variant 'contrib' fails with link error, for module 'libopencv_sfm')

Go ahead and attach your logs, but I suspect it's contrib that's causing the issue. Can you also try without +contrib?

Yep, that's the exact error I ran into. Removing the contrib variant allows the build to succeed.

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

Do you have a need for opencv specifically, or is opencv4 an option?

I ask, as there is currently an open pull request, which eliminates the conflict between opencv and opencv4. Once approved, that will finally allow the installation of both ports. (There's no ETA yet, but I'm hoping it might be within the next week or two.)

https://github.com/macports/macports-ports/pull/9555

And importantly, variant contrib builds successfully, for opencv4.

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

comment:10 in reply to:  9 Changed 4 years ago by ksze (Kal Sze)

Replying to mascguy:

Do you have a need for opencv specifically, or is opencv4 an option?

I ask, as there is currently an open pull request, which eliminates the conflict between opencv and opencv4. Once approved, that will finally allow the installation of both ports. (There's no ETA yet, but I'm hoping it might be within the next week or two.)

https://github.com/macports/macports-ports/pull/9555

And importantly, variant contrib builds successfully, for opencv4.

I don't actually need opencv 3 specifically. (In fact I've moved on in my career and I don't need *any* opencv right now, heh.)

comment:11 Changed 4 years ago by mascguy (Christopher Nielsen)

Since we have a newer ticket related to this, with the most up-to-date details... this one can be closed.

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

Resolution: duplicate
Status: assignedclosed

Duplicate of #61908.

Note: See TracTickets for help on using tickets.