You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/tmp/pip-req-build-m6c87h1b/butterflow/avinfo.c:5:10: fatal error: libavcodec/avcodec.h: No such file or directory
#include <libavcodec/avcodec.h>
^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
but error still occurs since ffmpeg has the h in ffmpeg/libavcodec/avcodec.h so edited butterflow/butterflow/avinfo.c to use that path still had error:
In file included from /tmp/pip-req-build-uquwiwd3/butterflow/avinfo.c:5:
/usr/include/ffmpeg/libavcodec/avcodec.h:31:10: fatal error: libavutil/samplefmt.h: No such file or directory
#include "libavutil/samplefmt.h"
^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
so changed the two libavutil lines to use ffmpeg/libavutil as the path new error:
In file included from /tmp/pip-req-build-webiqhd6/butterflow/avinfo.c:5:
/usr/include/ffmpeg/libavcodec/avcodec.h:31:10: fatal error: libavutil/samplefmt.h: No such file or directory
#include "libavutil/samplefmt.h"
^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
/tmp/pip-req-build-gRg1yS/butterflow/ocl.cpp:10:10: fatal error: opencv2/ocl/ocl.hpp: No such file or directory
#include <opencv2/ocl/ocl.hpp>
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
apparently since "opencv-ocl package or you did not compile your opencv with OCL activated." (see Missing opencv2/ocl/ocl.hpp slowmoVideo/slowmoVideo#36)
but there is no such package. locate says file is installed at: /usr/include/boost/compute/interop/opencv/ocl.hpp
so added interop to include path, but that doesn't work.
dnf -y install libav
# dnf -y copr enable thofmann/opencv2
# allowerasing will remove opencv (such as 3.0) if installed
# dnf -y --allowerasing install opencv2
# but install fails:
# Failed to synchronize cache for repo 'thofmann-opencv2', ignoring this repo.
# No match for argument: opencv2
# Error: Unable to find a match
# * changing releasever to 26 doesn't work either (last build of thofmann-opencv2 <https://copr-be.cloud.fedoraproject.org/results/thofmann/opencv2/fedora-26-x86_64/repodata/>)
# No match for argument: opencv2
# Error: Unable to find a match
tried installing python2-opencv, but as expected that did not help.
so try including modules/ocl/include manually (see install-as-user)
The text was updated successfully, but these errors were encountered:
opencv-devel
NOTE: as of Fedora 29, opencv-devel is opencv 3.4.1
where ocl.hpp is totally DIFFERENT according to https://stackoverflow.com/questions/34422276/opencv-3-0-error-include-ocl-hpp
not in readme, but if missing, prevents
pip install https://github.com/dthpham/butterflow/archive/master.zip
:could be solved by ffmpeg-compat-devel as per https://ask.fedoraproject.org/en/question/31642/how-to-install-libav-devel-packages-properly/
so changed the two libavutil lines to use ffmpeg/libavutil as the path new error:
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-req-build-webiqhd6/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-zettjosz/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-req-build-webiqhd6/
the problem is solved by adding -I /usr/include/ffmpeg to the gcc command.
(see install-as-user)
Command "/usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-req-build-gRg1yS/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-RA_EcH/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-req-build-gRg1yS/
but there is no such package. locate says file is installed at: /usr/include/boost/compute/interop/opencv/ocl.hpp
so added interop to include path, but that doesn't work.
The text was updated successfully, but these errors were encountered: