Difference between revisions of "Development on Windows"
Line 1: | Line 1: | ||
<languages /> | <languages /> | ||
<translate><!--T:1--> | <translate><!--T:1--> | ||
− | This wiki explains how to install a compilation environment (based on | + | This wiki explains how to install a compilation environment (based on Msys2/mingw64) to build GIMX.<br /> |
It also explains how to install Eclipse CDT and perform a checkout.<br /> | It also explains how to install Eclipse CDT and perform a checkout.<br /> | ||
Unless otherwise specified, perform a default installation (default directories, etc). | Unless otherwise specified, perform a default installation (default directories, etc). | ||
− | == | + | ==Msys2/MinGW64== <!--T:2--> |
− | + | Download and install [http://sourceforge.net/p/msys2/wiki/MSYS2%20installation/ Msys2]. | |
− | [http:// | + | Make sure to follow the instructions from the Msys2 wiki. |
− | + | If you are running a 32-bit Windows, install the "32-bit" of Msys2.<br /> | |
+ | If you are running a 64-bit Windows, you can choose either the "64-bit" version or the "32-bit" version. | ||
− | + | ==Development tools== | |
− | + | Run the Msys2 shell and type: | |
− | + | pacman --noconfirm -S man wget git make diffutils patch p7zip unzip | |
− | |||
− | |||
− | |||
− | + | ==Libraries== <!--T:10--> | |
− | |||
− | |||
− | <!--T: | ||
− | |||
− | |||
− | |||
− | |||
− | + | Run the Msys2 shell and type: | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | 32-bit: | |
− | |||
− | |||
− | |||
− | + | pacman --noconfirm -S mingw-w64-i686-gcc mingw-w64-i686-SDL2 mingw-w64-i686-libxml2 | |
− | mingw- | + | wget https://github.com/matlo/GIMX-tools/releases/download/1.0/mingw-w64-i686-libusb-1.0.18-1-any.pkg.tar.xz |
+ | wget https://github.com/matlo/GIMX-tools/releases/download/1.0/mingw-w64-i686-pdcurses-3.4.0-1-any.pkg.tar.xz | ||
+ | wget https://github.com/matlo/GIMX-tools/releases/download/1.0/mingw-w64-i686-wxMSW-2.8.12-1-any.pkg.tar.xz | ||
+ | pacman --noconfirm -U *.pkg.tar.xz | ||
− | + | 64-bit: | |
− | |||
− | + | pacman --noconfirm -S mingw-w64-x86_64-gcc mingw-w64-x86_64-SDL2 mingw-w64-x86_64-libxml2 | |
− | wget -- | + | wget https://github.com/matlo/GIMX-tools/releases/download/1.0/mingw-w64-x86_64-libusb-1.0.18-1-any.pkg.tar.xz |
− | + | wget https://github.com/matlo/GIMX-tools/releases/download/1.0/mingw-w64-x86_64-pdcurses-3.4.0-1-any.pkg.tar.xz | |
+ | wget https://github.com/matlo/GIMX-tools/releases/download/1.0/mingw-w64-x86_64-wxMSW-2.8.12-1-any.pkg.tar.xz | ||
+ | pacman --noconfirm -U *.pkg.tar.xz | ||
==Automated command-line build== <!--T:15--> | ==Automated command-line build== <!--T:15--> | ||
<!--T:16--> | <!--T:16--> | ||
− | + | Run the Msys2 shell and type: | |
− | |||
− | |||
<!--T:17--> | <!--T:17--> |
Revision as of 14:56, 7 June 2014
This wiki explains how to install a compilation environment (based on Msys2/mingw64) to build GIMX.
It also explains how to install Eclipse CDT and perform a checkout.
Unless otherwise specified, perform a default installation (default directories, etc).
Contents
Msys2/MinGW64
Download and install Msys2. Make sure to follow the instructions from the Msys2 wiki.
If you are running a 32-bit Windows, install the "32-bit" of Msys2.
If you are running a 64-bit Windows, you can choose either the "64-bit" version or the "32-bit" version.
Development tools
Run the Msys2 shell and type:
pacman --noconfirm -S man wget git make diffutils patch p7zip unzip
Libraries
Run the Msys2 shell and type:
32-bit:
pacman --noconfirm -S mingw-w64-i686-gcc mingw-w64-i686-SDL2 mingw-w64-i686-libxml2 wget https://github.com/matlo/GIMX-tools/releases/download/1.0/mingw-w64-i686-libusb-1.0.18-1-any.pkg.tar.xz wget https://github.com/matlo/GIMX-tools/releases/download/1.0/mingw-w64-i686-pdcurses-3.4.0-1-any.pkg.tar.xz wget https://github.com/matlo/GIMX-tools/releases/download/1.0/mingw-w64-i686-wxMSW-2.8.12-1-any.pkg.tar.xz pacman --noconfirm -U *.pkg.tar.xz
64-bit:
pacman --noconfirm -S mingw-w64-x86_64-gcc mingw-w64-x86_64-SDL2 mingw-w64-x86_64-libxml2 wget https://github.com/matlo/GIMX-tools/releases/download/1.0/mingw-w64-x86_64-libusb-1.0.18-1-any.pkg.tar.xz wget https://github.com/matlo/GIMX-tools/releases/download/1.0/mingw-w64-x86_64-pdcurses-3.4.0-1-any.pkg.tar.xz wget https://github.com/matlo/GIMX-tools/releases/download/1.0/mingw-w64-x86_64-wxMSW-2.8.12-1-any.pkg.tar.xz pacman --noconfirm -U *.pkg.tar.xz
Automated command-line build
Run the Msys2 shell and type:
wget --no-check-certificate https://raw.github.com/matlo/GIMX-build/master/win/build.sh ./build.sh
All binaries are copied into C:\MinGW\msys\1.0\home\username\GIMX\setup.
Eclipse IDE
This part is only useful in case you intend to modify the source code. If you only want to build GIMX, you can skip it.
Eclipse is an IDE that can be stacked onto the MinGW/MSYS compilation toolchain.
Be sure to have a java JRE installed on your system.
Download Eclipse IDE for C/C++ Developers. Unzip it to wherever you want.
Run eclipse.exe.
Project checkout
Todo: add instructions.