ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • MinGW/MSYS
    개발/기타 2009. 4. 9. 00:41
    여기에서 다음 파일들을 다운 받아서 설치한다.
    Automated MinGW Installer
    MinGW-5.1.4.exe
    설치시 C++ 패키지도 체크한다.
    make는 필요없다.

    mingwrt-3.15.2-mingw32-dev.tar.gz
    w32api-3.13-mingw32-dev.tar.gz // MinGW API for MS-Windows
    -mwindows 옵션
    binutils-2.19.1-mingw32-bin.tar.gz
    gcc-core-3.4.5-20060117-3.tar.gz
    gcc-g++-3.4.5-20060117-3.tar.gz
    gcc-g77-3.4.5-20060117-3.tar.gz

    GNU Source-Level Debugger
    gdb-6.8-mingw-3.tar.bz2

    MSYS Base System
    MSYS-1.0.10.exe(MSYS-1.0.11-rc-1.exe?)
    msysCORE
    coreutils
    Bash
    make
    vim

    c:\msys\1.0\etc\fstab
    c:/MinGW /mingw

    MSYS Supplementary Tools
    msysDTK-1.0.1.exe
    m4
    regex-0.12-MSYS-1.0.11-1.tar.bz2
    bison-2.3-MSYS-1.0.11-1.tar.bz2
    vim-7.1-MSYS-1.0.11-1-bin.tar.gz
    User Contributed_ gettext
    gettext-0.11.5-2003.02.01-1.exe
    /* ??
    User Contributed: pdcurses
    pdcurses-2.6.0-2003.07.21-1.exe
    curses.h
    libpdcurses.a

    MinGW Libs: libiconv
    libiconv-1.13-mingw32-dll-2.tar.gz
    */
    MSYS Base System
    msysCORE-1.0.11-rc-1-bin.tar.gz

    여기에서 다음 파일들을 다운받아 해당 위치에 설치한다.
    Flex
    flex-2.5.4a-1.exe
    LibIntl
    libintl-0.14.4.exe
    libintl.h
    /* ??
    LibIconv
    libiconv-1.9.2-1.exe
    */
    /*
    c:\msys\1.0\msys.bat를 열어서 다음과 같이 수정한다.
    if EXIST rxvt.exe goto startrxvt
    ==>
    rem if EXIST rxvt.exe goto startrxvt
    */

    /etc/profile
    /etc/bashrc
    /etc/environment
    /etc/default/locale
    ~/.profile
    ~/.bash_profile
    ~/.bashrc

    $ source .profile
    $ . .profile
    $ . .bash_profile

    '초기 경로' 설정은 여기에서
    c:\msys\1.0\etc\profile
    if [ $MSYSTEM == MINGW32 ]; then
      export PATH=".:/usr/local/bin:/mingw/bin:/bin:$PATH"
    else
      export PATH=".:/usr/local/bin:/bin:/mingw/bin:$PATH"
    fi

    .inputrc
    set meta-flag On
    set convert-meta Off
    set output-meta On

    /etc/profile
    alias ls='ls -F --color=auto --show-control-char'

    설치 후 컴파일 테스트
    c:\msys\1.0\msys.bat를 실행해서 쉘(bash?)을 연다.

    $ gcc -o hello hello.c

    $ g++ -o hello2 hello2.cpp

    $ ./configure --prefix=/mingw

    $ make

    $ make install


    참조 사이트:


Designed by Tistory.