2015-04-24 16:50:46 -04:00
# Building on Windows
2015-04-29 16:21:08 -04:00
In order to keep a consistent build system, Tyro is built with MinGW and Msys. This allows for a *nix-style build environment on Windows.
2015-04-24 16:50:46 -04:00
## Build Environment Setup:
2015-04-30 17:10:26 -04:00
1. Download MinGW [installer ](http://www.mingw.org/download/installer )
2015-04-28 16:14:04 -04:00
2. Install MinGW & MSyS (at least the following packages)
* mingw-developer-toolkit
* mingw32-base
* mingw32-gcc-g++
* msys-base
2015-04-24 16:50:46 -04:00
3. Add `{MinGW Path}\bin` and `{MinGW Path}\msys\1.0\bin` to the system Path environment variable
2015-04-29 16:21:08 -04:00
4. Open the Msys prompt at `{MinGW Path}\msys\1.0\msys.bat` . You'll probably want a shortcut to this, as it is what will be used for compiling everything from here on.
5. Install [Git ](http://git-scm.com/download/win )
## Build wxWidgets
1. Download the windows [installer ](https://www.wxwidgets.org/downloads/ ) for version 3
2. Use the MSyS prompt to navigate to the wxWidgets directory
3. Make a new folder, eg. msw-debug, and cd into it.
2015-05-29 09:13:30 -04:00
4. Run `export CXXFLAGS="-std=gnu++11 $CXXFLAGS"` to allow usage of C++11 features
5. Run `../configure --disable-shared --enable-debug --disable-compat28` in that new directory.
2015-04-29 16:21:08 -04:00
5. After configure finishes, run `make && make install` in the same folder.
2015-04-28 16:14:04 -04:00
## Build SFTP Dependencies
1. Run `git clone https://github.com/timw4mail/Tyro-depends.git` in the folder of your choice.
2. Run `sh ./buildssh2.sh` to build the dependencies.
2015-04-29 16:21:08 -04:00
3. Now you can build Tyro
2015-04-28 16:14:04 -04:00
## Build Tyro
2015-04-24 16:50:46 -04:00
2015-04-28 16:14:04 -04:00
In the source folder, run `make dev run` to build the develop version and run it immediately