-
-
Notifications
You must be signed in to change notification settings - Fork 55.6k
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
Compilation problem: "WARNING: Can't build ffmpeg test code" #16603
Comments
What is the problem? OpenCV can use FFmpeg without
|
Strangely, but I am getting different output: opencv-4.2.0
And with awresample:
Thus, yep, problem lies somewhere else :) |
|
opencv/modules/videoio/cmake/detect_ffmpeg.cmake Lines 38 to 55 in 1d2ef6b
|
Uncomment this line to get detailed error message. Problem is somewhere here:
Looks like it is improperly detected. Investigation steps:
|
I've removed libavresample flag, recompiled ffmpeg and tried again:
If i'll look on the file:
|
I've tried with absolute pathes in And is full of
|
Just checks. This is wrong. Linker can't accept .pc files:
Looks like build configuration is broken. We don't help with remote investigation of problems which we are not able to reproduce on our side (because it is very time consuming and usually configuration problem without any following fix into OpenCV), but we can take a look on the clear reason of the problem and suggest some fix/workaround. |
@alalek thank you for your help, and patience Now The problem was in old cmake flags like UPD: and prefix fields of .pc files should contain an absolute path |
I solve it by add: So finally I config ffmpeg like this(32-bit os): |
You may want to see my comment about how to build ffmpeg from source and link that to opencv. |
libavresample is deprecated in ffmpeg since 2017
Source: https://patchwork.ffmpeg.org/project/ffmpeg/patch/20171230145919.5812-1-atomnuker@gmail.com/
One have to manually enable
--enable-avresample
flag which will produce following text:The text was updated successfully, but these errors were encountered: