User Tools

Site Tools


This is an old revision of the document!

Writing your own plugins, Visual C++ 2015 or 2017

You dont need to compile avidemux yourself to write your own plugins.
What you need is :

  • Avidemux installed on your system , the version built with visual c++
  • CMake > 3.x
  • Optionnaly MSys installed, it's just simpler
  • Visual c++ 2015 or 2017, Community edition is fine
  • A demo/sample video filter, available here

You will need to install cmake version 3.x
Make sure the cmake “bin” folder is in your path

Let's go

Start a command prompt Call the vcvars64.bat from visual c++ binary dir, that will set up things Then start msys bash.exe shell

Go to the source folder of the demo and create the sln file

mkdir build
cd build
cmake  -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX="c:/Program Files/Avidemux 2.7 - 64bits"  -DVERBOSE=True -DCMAKE_BUILD_TYPE=Release ..

Look for error, it should go without problem.

If you dont want to use visual C++ ide , you can just

cmake –build . –target INSTALL

You can now load the generated .sln into visual c++ Either copy the resuling dll file into the plugin subfolder of avidemux install or, alternatively, run the install target in Visual C++

Important/Common problem

You cannot mix binaries built with Visual C++ and built with Mingw/g++ It will *NOT* work. Don't even try.

build/devel_2.6_msvc.1514805456.txt.gz · Last modified: 2018/01/01 12:17 by mean