MinGW Msys Intro - Solution to not found gcc

来源:互联网 发布:配置windows 还原更改 编辑:程序博客网 时间:2024/05/30 22:53


1. MinGW Msys Installation

Get mingw-get-setup.exe from http://www.mingw.org

Run mingw-get-setup.exe to insall MinGW Msys

Choose msys-base, mingw32-base, mingw-developer-toolkit,mingw-gcc-g++

Pop installation menu, and choose Apply Changes


2. Solution to not found gcc

cp /etc/fstab.sample  /etc/fstab

edit /etc/fstab

#c:/mingw                      /mingw

#c:/ActiveState/perl      /perl

d:/mingw                       /mingw

d:/perl64                       /perl


3. others

Download pkg-config-0.23-2.zipglib_2.18.4-1_win32.zip

http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config_0.23-3_win32.zip

http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.18/glib_2.18.4-1_win32.zip

 

set environment variable

if [ $MSYSTEM == MINGW32 ]; then
  export PATH=".:/usr/local/bin:/mingw/bin:/bin:/d/nasm:$PATH"
  export PKG_CONFIG=/mingw/bin/pkg-config.exe
  export PKG_CONFIG_PATH=/mingw/lib/pkgconfig:/local/lib/pkgconfig
else
  export PATH=".:/usr/local/bin:/bin:/mingw/bin:/d/nasm:$PATH"
  export PKG_CONFIG=/mingw/bin/pkg-config.exe
  export PKG_CONFIG_PATH=/mingw/lib/pkgconfig:/local/lib/pkgconfig
fi



0 0
原创粉丝点击