Msys + mintty

Source: Internet
Author: User

Frequent use of MSYS+MINGW has recently been required. Here is the "Personal Builds" I downloaded from sourceforge:

mingw64:mingw64-x86_64-4.9.2-release-win32-seh-rt_v4-rev3.7z

msys:msys+7za+wget+svn+git+mercurial+cvs-rev13.7z

Msys.bat default use of terminal is Sh.exe, limited functionality, with a long time is quite inconvenient:

    1. Line buffer is too small to see the old cmdline history
    2. Cross-line replication is not supported, right mouse button copy sticker is not supported
    3. When Vim uses the TagList plugin, the screen is completely messed up.

Last night to toss a bit, replaced by "Msys.bat-mintty", instantly comfortable a lot.

In order to distinguish mingw64 or mingw32, would like to Msys.bat in the "$MSYSTEM" replaced by "MINGW64"

-if "x%msystem%" = = "x" Set msystem=mingw32-if "%1" = = "MINGW32" set msystem=mingw32-if "%1" = = "MSYS" Set Msystem=msys + if "x%msystem%" = = "X" set msystem=mingw64+ if "%1" = = "MINGW32" set msystem=mingw64+ if "%1" = = "MSYS" Set Msystem=msys

result in compile FFmpeg error at configure

$./'mingw64_nt-6.1' make sure is using the Latestversion from Git.  If The latest version fails, report the problem to Theffmpeg-file"Config.log  " produced by configure as this would helpsolve the problem.

Look at the source code of configure

Exesuf () {    case $1in        mingw32*|win32|win64|cygwin*|*-dos| freedos|opendos|os/2echo  . exe;    ; Esac }

The MINGW64 system cannot be supported because it is matched directly using "mingw32*" instead of "mingw*". To avoid trouble, change the "$MSYSTEM" Back to "MINGW32". Instead, differentiate the system environment by modifying "$PS 1" (MSYS/MINGW32/MINGW64)

Msys + mintty

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.