Skip to content

Instantly share code, notes, and snippets.

@hnakamur
Created September 1, 2012 09:25
Show Gist options
  • Save hnakamur/3568136 to your computer and use it in GitHub Desktop.
Save hnakamur/3568136 to your computer and use it in GitHub Desktop.
how to setup mingw + msysgit + cmake
# how to setup mingw + msysgit + cmake
## MinGW
http://www.mingw.org/wiki/InstallationHOWTOforMinGW
http://sourceforge.net/projects/mingw/files/MinGW/
download and execute
mingw-get-inst-20120426.exe
Select Components
* C Compiler
* C++ Compiler
* MSYS Basic System
run cmd.exe
run commands below
cd C:\mingw\bin
mingw-get update
mingw-get upgrade
mingw-get install msys-mintty msys-vim msys-wget msys-openssl msys-openssh msys-tar msys-gzip msys-zip msys-unzip msys-libbz2
make a shortcut (link)
name: mintty
path: c:\MinGW\msys\1.0\bin\mintty.exe /bin/bash --login -i
launch mintty
## msysGit
msysgit - Git for Windows - Google Project Hosting
http://code.google.com/p/msysgit/
download Git-1.7.11-preview20120710.exe
msysGit installation path: C:\msysgit
check "Git Hash Here"
Configuring the line ending conversions
Checkout as-is, commit Unit-style line endings
## cmake
http://cmake.org/cmake/resources/software.html
cmake-2.8.9-win32-x86.exe
installation directory:
C:\cmake
## set PATH environment variable
$ echo "export PATH=/c/MinGW/bin:/c/MinGW/msys/1.0/bin:/c/msysgit/bin:/c/cmake/bin:\$PATH" > ~/.profile
$ . ~/.profile
$ which git
/c/msysgit/bin/git
$ which cmake
/c/cmake/bin/cmake
$ ln /c/MinGW/msys/1.0/bin/vim /c/MinGW/msys/1.0/bin/vi
@hnakamur
Copy link
Author

hnakamur commented Sep 1, 2012

msysGit installation path: C:\msysgit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment