evision icon indicating copy to clipboard operation
evision copied to clipboard

Build with OpenCV 5.x

Open cocoa-xu opened this issue 3 years ago • 6 comments

Prepare for OpenCV 5.x. Branch test-opencv-5.0-pre.

cocoa-xu avatar Jan 18 '22 03:01 cocoa-xu

Probably an upstream fix is needed as the Python script cannot correctly parse some C++ files in the OpenCV's 5.x branch.

Tested on 2c2d7774.

cocoa-xu avatar Jan 18 '22 03:01 cocoa-xu

@cocoa-xu do you plan to release a version of Evision with OpenCV 4.7 support? I'm interested in that version since it supports FFMPEG 5.x which OpenCV 4.6 does not (fatal build errors).

kipcole9 avatar Jan 09 '23 09:01 kipcole9

Hi @kipcole9, my plan is to wait for this https://github.com/opencv/opencv/pull/23112 to be merged; otherwise, either

  1. the DNN module on AVX-only machines will crash the BEAM.
  2. users with an AVX-only CPU will have to explicitly disable Winograd when using DNN modules.

Another thing to note is that I didn't have any luck with FFMPEG 5.x yet...

cocoa-xu avatar Jan 09 '23 09:01 cocoa-xu

Understood, and definitely not a high priority for me either now that I have a working ffmpeg 4.x config running.

kipcole9 avatar Jan 09 '23 09:01 kipcole9

Hi @kipcole9, I tested building evision with FFmpeg 5.x (5.1.2 to be specific) on macOS and Linux, and both worked fine. d71e2b0f. I'll do a pre-release of v0.1.26-rc2 today, which supports both FFmpeg 4.x and 5.x.

However, there is an issue, #163 (although not confirmed yet as I cannot reproduce it either locally or in GitHub workflow), related to building evision with ffmpeg 5.x on macOS. The mystery in it is that something is trying to link with /usr/local/Cellar/gcc/12.2.0/lib/gcc/12/libquadmath.0.dylib.

cocoa-xu avatar Jan 14 '23 19:01 cocoa-xu

Probably an upstream fix is needed as the Python script cannot correctly parse some C++ files in the OpenCV's 5.x branch.

Tested on 2c2d7774.

Upstream now 67a3d35 can successfully compile python3 extensions. I'll try to build evision with that commit.

cocoa-xu avatar Apr 02 '23 15:04 cocoa-xu