Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to build opencv so it statically link to ffmpeg?

I want to do two things:

  • A static opencv version that when my program link to it, my executable can run independently
  • A dynamic opencv version that I do not need to worry about dependencies like ffmpeg

I know I can use

cmake -DBUILD_SHARED_LIBS=OFF

to build a static version. But how do I specify using static link with ffmpeg?