This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
build:devel_2.6_msvc [2018/01/01 12:12] mean |
build:devel_2.6_msvc [2018/01/01 12:29] mean |
||
---|---|---|---|
Line 7: | Line 7: | ||
* Optionnaly MSys installed, it's just simpler | * Optionnaly MSys installed, it's just simpler | ||
* Visual c++ 2015 or 2017, Community edition is fine | * Visual c++ 2015 or 2017, Community edition is fine | ||
- | * A demo/sample video filter, available here {{ :build:videofilter.zip |}} | + | * A demo/sample video filter, available here {{ :build:videofilterdemo_2.7.zip |}} |
- | + | ||
Line 20: | Line 18: | ||
---- | ---- | ||
- | ====== Compile it ====== | + | ====== 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 .. | ||
- | It is best to start here to make sure you have a working environment | + | If you just unzipped the files in a folder, use that folder. |
+ | For example if you unzipped avidemux in Z:/avidemux | ||
+ | the command becomes | ||
+ | cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX="z:/avidemux" -DVERBOSE=True -DCMAKE_BUILD_TYPE=Release .. | ||
- | Start a MSYS2 shell, go where you unzipped the demo code (i.e. c:\tmp\videoFilterDemo for example )\\ | + | Look for error, it should go without problem. |
- | Create a build folder | + | |
- | mkdir build && cd build | + | |
- | then generate the makefile | + | |
- | cmake -G "MSYS Makefiles" -DCMAKE_MAKE_PROGRAM=mingw32-make -DCMAKE_INSTALL_PREFIX="c:\Program Files\Avidemux 2.7 - 64 bits" .. | + | |
- | + | ||
- | __The CMAKE_INSTALL_PREFIX should point to the place where avidemux is__ | + | |
- | Look for error, it should go without problem.\\ | + | If you dont want to use visual C++ ide , you can just |
- | make | + | |
- | Upon success, copy the dll in c:\Program Files\Avidemux 2.6 - 64 bits\plugins\videoFilters\ \\ | + | cmake --build . --target INSTALL |
- | Start avidemux and you should see a logo_sample filter in the menu list | + | |
+ | If you want ot use the visual C++ ide, you can also load the generated .sln into visual c++ | ||
- | Alternatively, run the install target in Visual C++ | + | When the build is over, either copy the resulting dll file into the plugin subfolder of avidemux install or, alternatively, run the install target in Visual C++ |
**Important/Common problem** | **Important/Common problem** |