Opened 8 years ago

Closed 4 years ago

#50733 closed defect (invalid)

VLC @2.2.2: fatal error: 'opencv2/core/fast_math.hpp' file not found

Reported by: matt_langston@… Owned by: RJVB (René Bertin)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: majoc-at-astro (majoc-at-astro)
Port: VLC

Description

VLC build failure when upgrading to VLC 2.2.2 from VLC @2.1.5_8+mod+mpc+osd+qtkit+quartz.

$ sudo port selfupdate
$ sudo port clean VLC
$ sudo port upgrade outdated

...

:info:build opencv_wrapper.c:42:10: fatal error: 'opencv2/core/fast_math.hpp' file not found
:info:build #include <opencv2/core/fast_math.hpp>
:info:build          ^
:info:build 1 error generated.
:info:build make[5]: *** [libopencv_wrapper_plugin_la-opencv_wrapper.lo] Error 1
:info:build make[5]: *** Waiting for unfinished jobs....

The build is failing because opencv2/core/fast_math.hpp does not exist.

I have opencv @2.4.11_0+python27 installed and require this version (i.e. I cannot upgrade to opencv 3.x).

OS X Version: 10.11.3 (15D21) Xcode Version: 7.2.1 (7C1002)

Attachments (1)

main.log (1.9 MB) - added by matt_langston@… 8 years ago.

Download all attachments as: .zip

Change History (6)

Changed 8 years ago by matt_langston@…

Attachment: main.log added

comment:1 Changed 8 years ago by dbevans (David B. Evans)

Cc: rjvbertin@… added
Owner: changed from macports-tickets@… to devans@…
Version: 2.3.4

I'm guessing you know the answer but the port is configured to work with the current version of opencv.

This include is not in the original source but has been added via a patch. Assigning to the port's semi-maintainer :-) for interpretation.

comment:2 Changed 8 years ago by dbevans (David B. Evans)

Cc: rjvbertin@… removed
Owner: changed from devans@… to rjvbertin@…

comment:3 Changed 8 years ago by RJVB (René Bertin)

I know that this VLC version built against an older opencv because I hadn't updated mine.

I'll presume that someone who holds off on updating a port has some understanding of using a personal port tree with local, frozen and/or modified copies of mainstream port directories. So my suggestion would be to do this for VLC too, and remove the patch-opencv_includes.diff patchfile entry. That should make the port build again against the older opencv.

Given the issues that this dependency is causing, we could also discuss adding a variant for the functionality it provides. I have no idea what one misses by removing it; maybe a more seasoned VLC user can give some background on that?

comment:4 Changed 8 years ago by majoc-at-astro (majoc-at-astro)

Cc: majoc@… added

Cc Me!

comment:5 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed
Summary: VLC @2.2.2 build error - build failureVLC @2.2.2: fatal error: 'opencv2/core/fast_math.hpp' file not found

I have opencv @2.4.11_0+python27 installed and require this version (i.e. I cannot upgrade to opencv 3.x).

It is not supported to downgrade ports or keep ports at older versions.

If there is a real need to keep opencv 2 around (and you're not the first person to say that there is) then we should add an opencv2 port. The request for that is #49670.

Note: See TracTickets for help on using tickets.