Giter Site home page Giter Site logo

msys2-cross's Introduction

The scripts provided by the MSYS2-Cross project are designed for building cross-toolchain for MSYS2 with MinGW compiler from MinGW-builds[2] project.

The scripts are distributed under the 'BSD 3' license[1].

In order to use the scripts provided by the MSYS2-Cross project it is needed:

1. Windows

2. Install MSYS:
  http://sourceforge.net/projects/mingwbuilds/files/external-binary-packages/
  Recommended version is rev9 or higher.

3. Get the scripts into '<msys root>/home/<user>/MSYS2-Cross':
  "cd && git clone git://github.com/Alexpux/MSYS2-Cross.git"

4. In the MSYS file structure delete the '/MinGW' directory.

5. Delete the paths pointing to any preinstalled MinGW from the 'PATH' environment variable.

6. Go into the MSYS2-Cross root directory.
  "cd && cd MSYS2-Cross"

7. Build script has next parameters:
  The '--buildroot=<path>' option specifies to the script to use '<path>' as build directory.
    By default used <SCRIPTS_DIR>/work.
  The '--install-top=<path>' option specifies to the script to use '<path>' as top installation directory.
    By default used "C:/crosstools" directory.
  The '--toolchains-dir=<path>' - specifies directory where installed Mingw 32-bit and 64-bit toolchains.
	You must have mingw32 and mingw64 directories there.
  The '--version' option print the version of MSYS2-Cross script.
  For all available options please run: "./buildall --help"

8. Run:
  "./buildall x32" - for building 32-bit cross-toolchain
  "./buildall x64" - for building 64-bit cross-toolchain (not working now)
  "./buildall x32 x64" - for building both 32 and 64 bits cross-toolchains

By default toolchain installing in "C:/crosstools/cross-msys-gcc-$GCC_VERSION".
You may change install location by pass "--install-top=$DIRECTORY" to build script.

For example:
./buildall --install-top=C:/toolchain x32
building 32-bit cross-toolchain and installing it into C:/toolchain/cross-msys-gcc-$GCC_VERSION.

[1] http://www.opensource.org/licenses/BSD-3-Clause
[2] https://sourceforge.net/projects/mingwbuilds

msys2-cross's People

Contributors

alexpux avatar wintermute avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

msys2-cross's Issues

Build error

I tried building the crosstools but it fails at following location:

/home/Teemu/MSYS2-Cross/work/build-x32/gcc-cross/./gcc/xgcc -B/home/Teemu/MSYS2-Cross/work/build-x32/gcc-cross/./gcc/ -L/home/Teemu/MSYS2-Cross/work/build-x32/gcc-cross/i686-pc-msys/winsup -L/home/Teemu/MSYS2-Cross/work/build-x32/gcc-cross/i686-pc-msys/winsup/cygwin -L/home/Teemu/MSYS2-Cross/work/build-x32/gcc-cross/i686-pc-msys/winsup/w32api/lib -isystem /home/Teemu/MSYS2-Cross/src/gcc-4.7.2/winsup/include -isystem /home/Teemu/MSYS2-Cross/src/gcc-4.7.2/winsup/cygwin/include -isystem /home/Teemu/MSYS2-Cross/src/gcc-4.7.2/winsup/w32api/include -nostdinc -B/home/Teemu/MSYS2-Cross/work/build-x32/gcc-cross/i686-pc-msys/newlib/ -isystem /home/Teemu/MSYS2-Cross/work/build-x32/gcc-cross/i686-pc-msys/newlib/targ-include -isystem /home/Teemu/MSYS2-Cross/src/gcc-4.7.2/newlib/libc/include -B/usr/i686-pc-msys/bin/ -B/usr/i686-pc-msys/lib/ -isystem /usr/i686-pc-msys/include -isystem /usr/i686-pc-msys/sys-include -I/home/Teemu/MSYS2-Cross/src/gcc-4.7.2/winsup/cygwin/include -DPACKAGE_NAME="newlib" -DPACKAGE_TARNAME="newlib" -DPACKAGE_VERSION="2.0.0" -DPACKAGE_STRING="newlib\ 2.0.0" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -I. -I../../../../../../../src/gcc-4.7.2/newlib/libc/stdlib -DHAVE_OPENDIR -DHAVE_RENAME -DSIGNAL_PROVIDED -D_COMPILING_NEWLIB -DHAVE_BLKSIZE -DHAVE_FCNTL -DMALLOC_PROVIDED -fno-builtin -g -pipe -O2 -fomit-frame-pointer -c -fshort-enums ../../../../../../../src/gcc-4.7.2/newlib/libc/stdlib/mbtowc_r.c -o lib_a-mbtowc_r.o
../../../../../../../src/gcc-4.7.2/newlib/libc/stdlib/mbtowc_r.c:14:6: error: '__utf8_mbtowc' undeclared here (not in a function)
/home/Teemu/MSYS2-Cross/work/build-x32/gcc-cross/./gcc/xgcc -B/home/Teemu/MSYS2-Cross/work/build-x32/gcc-cross/./gcc/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.