Changes between Version 31 and Version 32 of CompilationGuide/MinGW


Ignore:
Timestamp:
Jan 9, 2016, 5:24:50 PM (2 years ago)
Author:
rogerdpack
Comment:

msys2 note

Legend:

Unmodified
Added
Removed
Modified
  • CompilationGuide/MinGW

    v31 v32  
    1515== MinGW/MSys == 
    1616 
    17 You basically have two options for a compiler: mingw "mainline" or mingw-w64.  Both offer working gcc's for windows.  The latter tends to be slightly more up to date than the former, and offers a few more libraries, like DirectShow headers.  The instructions here are basically for mingw "mainline", but the two are interchangeable.  Basically, you will install one "MinGW" package and one ("MSys" or "Msys2"), MinGW provides gcc and headers, MSys provides shell utilities like make and bash.  Also of note is that the Msys2 system appears to include some packages like "mingw-w64-i686-gcc" (i.e. cross compilers) that might be useful if you want to go the cross compiling [but still in windows land] route, similar to cross compiling using cygwin. 
     17You basically have two options for a compiler: mingw "mainline" or mingw-w64.  Both offer working gcc's for windows.  The latter tends to be slightly more up to date than the former, and offers more library compatibility, like DirectShow headers, so preferably use mingw-w64.  The instructions here are basically for mingw "mainline", but the two are interchangeable.  Basically, you will install one "MinGW" package (MinGW or mingw-w64) and one ("MSys" or "Msys2"), MinGW provides gcc and headers, MSys provides shell utilities like make and bash.  Also of note is that the Msys2 system appears to include some packages like "mingw-w64-i686-gcc" (i.e. cross compilers) that might be useful if you want to go the cross compiling [but still in windows land] route, similar to cross compiling using cygwin. 
    1818 
    1919=== MinGW === 
     
    8080}}} 
    8181 
    82 and run the {{{mingw32_shell.bat}}} or {{{mingw64_shell.bat}}} command in the MSYS2 installation home. If you use MSYS2 many packages can be easily installed by using {{{pacman}}} (for example {{{pacman -S pkg-config}}}). 
     82and run the {{{mingw32_shell.bat}}} or {{{mingw64_shell.bat}}} command in the MSYS2 installation home. If you use MSYS2 many packages can be easily installed by using {{{pacman}}} (for example {{{pacman -S pkg-config}}}). Then proceed to compile it using the cross compilation. 
    8383 
    8484=== MinGW installation style ===