Created
September 1, 2012 09:25
-
-
Save hnakamur/3568136 to your computer and use it in GitHub Desktop.
how to setup mingw + msysgit + cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
msysGit installation path: C:\msysgit