User Tools

Site Tools


build:devel_2.6

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
build:devel_2.6 [2016/09/09 15:48]
mean
build:devel_2.6 [2016/09/09 17:20] (current)
mean
Line 30: Line 30:
 ---- ----
  
-=== Cli : Compile the sample using MSYS2 ===+====== Cli : Compile the sample using MSYS2/MinGW ====== 
 + 
 +It is best to start here to make sure you have a working environment
  
 Start a MSYS2 shell, go where you unzipped the demo code (i.e. c:​\tmp\videoFilterDemo for example )\\ Start a MSYS2 shell, go where you unzipped the demo code (i.e. c:​\tmp\videoFilterDemo for example )\\
Line 36: Line 38:
    mkdir build && cd build    mkdir build && cd build
 then generate the makefile then generate the makefile
-   cmake -G "MSYS Makefiles" ​ -DCMAKE_INSTALL_PREFIX="​c:​\Program Files\Avidemux 2.6 - 64 bits" ..+   cmake -G "MSYS Makefiles" ​-DCMAKE_MAKE_PROGRAM=mingw32-make ​-DCMAKE_INSTALL_PREFIX="​c:​\Program Files\Avidemux 2.6 - 64 bits" .. 
 +   
 __The CMAKE_INSTALL_PREFIX should point to the place where avidemux is__ __The CMAKE_INSTALL_PREFIX should point to the place where avidemux is__
  
Line 44: Line 47:
 Start avidemux and you should see a logo_sample filter in the menu list Start avidemux and you should see a logo_sample filter in the menu list
  
-**Important** +**Important/Common problem** 
-If you have error undefined symbol _imp_xxxxstdcxx11xxxxbasic_stringxxx , add one line at the very top  +---- 
-of CMakeLists.txt+ 
 +If the C++ library used by mingw is more recent than the one used by avidemux itself you'll run into two problem : 
 + 
 +  * If you have error undefined symbol _imp_xxxxstdcxx11xxxxbasic_stringxxx ​when compiling ​, add one line at the very top of CMakeLists.txt
    ​ADD_DEFINITIONS(-D_GLIBCXX_USE_CXX11_ABI=0)    ​ADD_DEFINITIONS(-D_GLIBCXX_USE_CXX11_ABI=0)
-It can happen if the compiler ​you are using is using the new ABI as default +  * If you have error at startup "​Cannot locate xyz in libsdtc+++",​ Overwrite ​the libstdc++-6.dll in the avidemux folder with the one from mingw, e.g. c:​\Mingw64\mingw64\bin\libstdc++-6.dll 
-Erase the build folder and do it all over again (it takes 5 sec)+ 
 +Do the fixes above, erase the build folder ​(build/​*) ​and do it all over again (it takes 5 sec)
  
  
 ---- ----
-=== Using Netbeans ===+====== Using Netbeans ​======
  
-**THIS IS INCOMPLETE , PLEASE USE THE CLI VERSION FOR THE MOMENT ** +You'll need the same requirement as above (i.e. cmake, msys,...)\\ 
- +You *MUST* add msys make, mingw make will not work with netbeans\\ 
-You'll need the same requirement as above (i.e. cmake, msys,...)+Open a msys2 shell, and enter\\ 
 +   ​pacman -S make   
 +   
  
 == Configure Netbeans == == Configure Netbeans ==
Line 66: Line 75:
   * Configure the project   * Configure the project
  
-The toolchain should be configured as follow :+The toolchain should be configured as follow :\\ 
 +{{:​build:​netbeans_toolchain.png?​200|Toolchain}}\\ 
 +The important part is to select the make from msys64/​usr/​bin
  
-{{:​build:​sdk_netbeans_setup.png?​200| Toolchain}} 
  
 Everything is coming from msys, the screenshot is a bit old Everything is coming from msys, the screenshot is a bit old
  
-Last step is to setup the project :\\   +Last step is to setup the project :\\  
-  * Point it to the CMakelists.txt +{{:​build:​netbeans_project1.png?​200|Step 1}} \\ 
-  * The only modified part is to set the CMAKE_INSTALL_PREFIX to avidemux folder (i.e. c:/Program Files/​Avidemux 2.6 - 64 bits)+{{:​build:​nb_2.png?​200| Step2}} \\ 
 +{{:​build:​nb_5.png?​200|Step 3}} \\ 
 + 
 +The important part are : 
 +  * At step2 select custom 
 +  * At step3, add \\ 
 + 
 + 
 + -G "MSYS Makefiles"​ -DCMAKE_INSTALL_PREFIX="​c:/Program Files/​Avidemux 2.6 - 64 bits""​ 
 + 
 +Note that the path separator are "/"​ and not "​\"​!
  
 {{:​build:​sdk_netbeans_cmake_option.png?​200|}} {{:​build:​sdk_netbeans_cmake_option.png?​200|}}
  
 You can build the sample now. You can build the sample now.
 +
 +In case you made a mistake, dont forget to delete the CMakeCache.txt file before retrying
 +
        
build/devel_2.6.1473428939.txt.gz · Last modified: 2016/09/09 15:48 by mean