Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need solution for "libopencv not found" #56

Open
wl3b10s opened this issue Mar 5, 2018 · 8 comments
Open

need solution for "libopencv not found" #56

wl3b10s opened this issue Mar 5, 2018 · 8 comments

Comments

@wl3b10s
Copy link

wl3b10s commented Mar 5, 2018

follow the guide to install the latest vesion of transform360, when compile with --enable-opencv.

got "libopencv not found"

i try the solution in the resolved issue but none of them can correct this.

is there new advice?

@kcircnc
Copy link

kcircnc commented Mar 5, 2018

Sounds like you have problem with opencv installation, not transform360.
Can you confirm that opencv works in your environment? If not you can probably find help here: https://opencv.org/

@sjuxax
Copy link

sjuxax commented Mar 18, 2018

I started getting this too on ArchLinux. It's caused by OpenCV 3.4.1. This release apparently started using C++ namespaces, which cause ffmpeg's configure script to fail the build. ffmpeg is happy again after downgrading to OpenCV 3.4.0.

Described in more depth at opencv/opencv#10963 . This is going to affect a lot of projects that depend on ffmpeg and opencv.

@sjuxax
Copy link

sjuxax commented Mar 18, 2018

Incomplete attempt to get the OpenCV filter building as a C++ module here: https://github.com/sjuxax/FFmpeg/tree/cpp_opencv . Note that in the issue referenced above, OpenCV contributors indicate that even if one can successfully build against OpenCV as C (as one can in versions 3.4.0 or earlier), there will probably be substantial issues with such builds.

@sjuxax
Copy link

sjuxax commented Mar 19, 2018

I raised this issue on the ffmpeg-devel mailing list this morning (see http://ffmpeg.org/pipermail/ffmpeg-devel/2018-March/226872.html ). Though it's not settled yet, the consensus seems to be leaning toward dropping support for the OpenCV filter altogether.

I haven't looked into the code to see how heavily Transform360 leans on ffmpeg's OpenCV filter, but it seems like that may be a dependency that will need to be dropped soon, if possible.

@adamjgrant
Copy link

I ended up solving this dependency by running this shell script: https://milq.github.io/install-opencv-ubuntu-debian/

Then following the rest of the instructions on the transform360 readme worked like a charm.

@andreanobile
Copy link

it works with opencv 3.4.2, install locally then set PKG_CONFIG_PATH to your local opencv installation.
for example in my case: export PKG_CONFIG_PATH=/home/andrea/opencv3.4.2/lib/pkgconfig:$PKG_CONFIG_PATH

@ghost
Copy link

ghost commented May 5, 2020

I got it to compile locally installing opencv 2:
git clone --branch 2.4 https://github.com/opencv/opencv.git
mkdir opencv/build && cd opencv/build
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local ..
make
sudo make install

Then you have to clean/rebuild Transform360 in order to pick up this opencv version before building ffmpeg.

@dioptre
Copy link

dioptre commented Apr 1, 2021

I got sick of how many bad options for building there were so built a fail-safe fork (hopefully) here https://github.com/dioptre/transform360

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants