-
Notifications
You must be signed in to change notification settings - Fork 34
how to build cartwheel ffmpeg on Windows
Please help to refer to: https://trac.ffmpeg.org/wiki/CompilationGuide/MinGW
-
If you don’t have libVPL dispatcher, you will need to build it manually
$ git clone https://github.com/intel/libvpl.git
$ cd libvpl
$ mkdir build
$ cd build
$ cmake ..
-
Open vpl.sln using Visual Studio in your build file.
-
Choose Release build at the top. Then find vpl solution and right click to build.
-
After build finishes, you will get vpl.lib and libvpl.dll in libvpl/build/Release
-
Find vpl.pc in libvpl/build/dispatcher/pkgconfig
-
Modify vpl.pc using absolute path. Make sure compiler can find vpl.lib in libdir and headers in includedir. For example
libdir=C:/msys64/home/username/libvpl/build/Release
includedir=C:/msys64/home/username/libvpl/api/vpl
Note: Following file path cannot be recognized by mingw64
libdir=C:\msys64\home\username\libvpl\build\Release
-
In mingw64 environment
$ echo $PKG_CONFIG_PATH
-
Move vpl.pc under PKG_CONFIG_PATH to make pkg-config find it.
-
In your mingw64 shell navigate to your cloned FFmpeg folder. E.g.
$ cd ffmpeg
-
where to get and apply patches git clone and apply patches
-
how to build cartwheel ffmpeg
$ ./configure --enable-libvpl && make
-
to run ffmpeg in you currently build folder
-
When you run ffmpeg.exe, you will need to copy libvpl.dll under the same path or under system environment variable path.