1,502
edits
(Several changes, also added "make install") |
(Added an MSYS primer) |
||
Line 71: | Line 71: | ||
== MSYS primer == | == MSYS primer == | ||
[ | From the developer's webpage: "MSYS or Minimal SYStem is a POSIX and Bourne shell environment use with MinGW. It provides a hand picked set of tools to allow a typical configuration script with Bourne syntax to execute. This allows most of the GNU packages to create a Makefile just from executing the typical configure script which can then be used to build the package using the native MinGW version of GCC". | ||
For more information, check the [http://www.mingw.org/mingwfaq.shtml#faq-msys MinGW FAQ page] | |||
MSYS commands can be confusing for people using Windows, as MSYS emulates a Bourne shell environment, which is found in most Unix/Linux distributions. The available commands can be viewed by typing "help" in the command prompt. Help on a specific command is available by typing "help" followed by the command, e.g. "help alias". | |||
Note that MSYS uses forward slashes between folder names, not backward slashes, as is the case with Windows. Additionally, some special characters like the space need to be escaped with a backward slash("\"). Drives are mounted to folders, so drive "C:" would be under folder "/c". Therefore, to switch to directory: | |||
C:\Program Files\Test Folder | |||
we would switch to: | |||
/c/Program\ Files/Test\ Folder | |||
The basic commands you'll need are: | |||
cd - changes the current drive and directory | |||
pwd - shows the current drive and directory | |||
ls - lists files in a folder | |||
make - makefile, used to compile projects | |||
strip - remove debug information from executable files | |||
Note that if you wish to run a file from the current folder, you need to specify it before the file name, i.e. if you wish to run "test" from the current folder, you should type: | |||
./test | |||
edits