-
-
Notifications
You must be signed in to change notification settings - Fork 55.7k
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
Use the CMake find_library command to find the FFmpeg libraries. #3663
Conversation
I build the FFmpeg libraries on OS X as dynamic libraries only, with this patch OpenCV can find the libraries. |
endif() | ||
endif() | ||
find_library(FFMPEG_CODEC_LIB | ||
NAMES "libavcodec.a" "libavcodec.dylib" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't simply "avcodec" be enough?
Thanks to SpecLad.
Thanks for the feedback, I committed the changes. But, without setting the version variables, I get:
but with them, the versions are all "Unknown". I think pkg-config finds the correct versions, right? |
Wait, so you found it through pkg-config? Hmm, now that I've taken a more thorough look at the general logic, it looks like the |
You're right, CMake is definitely using pkg-config. The I moved the |
That's exactly what I meant, thanks. However, you definitely need to bring the version variable setting back, since in this branch it can now be assumed that pkg-config didn't find anything. |
👍 |
No description provided.