Tyro/Windows-Build.md

38 lines
1.5 KiB
Markdown
Raw Normal View History

# Building on Windows
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.
## Build Environment Setup:
2015-04-30 17:10:26 -04:00
1. Download MinGW [installer](http://www.mingw.org/download/installer)
2. Install MinGW & MSyS (at least the following packages)
* mingw-developer-toolkit
* mingw32-base
* mingw32-gcc-g++
* msys-base
3. Add `{MinGW Path}\bin` and `{MinGW Path}\msys\1.0\bin` to the system Path environment variable
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.
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.
5. After configure finishes, run `make && make install` in the same folder.
## 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.
3. Now you can build Tyro
## Build Tyro
In the source folder, run `make dev run` to build the develop version and run it immediately