- 32-bit installation: https://www.cygwin.com/setup-x86.exe
- 64-bit installation: https://www.cygwin.com/setup-x86_64.exe
- Run downloaded file
- -> Next
- "Install from internet" -> Next
- Your settings -> Next (recomended basic)
- Your settings -> Next (recomended basic)
- "Direct Connection" -> Next
- -> Next
- Choose packeges to download
- -> Next
- -> Finish
Example:
- search git
- click on Devel
- find line witch "git: Distributed version control system"
- click several time on Skip/Keep in this line and choose latest version
search: click on: [line to find]
- git: Devel: [git: Distributed version control system]
- boost: Devel + libs: all
- sodium: Devel + libs: all
- libtool: Devel: [libtool: Generic library support script]
- cmake: Devel: [cmake: Cross-platform makefile generation system]
- wget: Web: all
- make: Devel: (make: GUI version of the 'make' utillity)
- gcc: Devel: mingw64-i686-gcc-g++: GCC for Win32 (i686-w64-mingw32) toolchain (C++)
- gcc: Devel: mingw64-x86_64-gcc-g++: GCC for Win64 toolchain (C++)
- gettext Devel: gettext-devel:GNUInternationalization development utilities
$ git clone https://github.com/yedino/galaxy42.git
$ cd galaxy42
$ git submodule update --init
- for 32 bit
$ i686-w64-mingw32-g++ -v
- for 64 bit
$ x86_64-w64-mingw32-g++ -v
Version must be >= 5.0.0
Thread model must be posix
- for 32 bit
$ cmake -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain_cygwin_32bit.cmake.in .
$ make tunserver.elf
- for 64 bit
$ cmake -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain_cygwin_64bit.cmake.in .
$ make tunserver.elf
For building windows service wrapper
$ make windowsService
https://github.com/yedino/galaxy42/blob/master/doc/msvc-instructions.md#create-tuntap-device
- Source directory for 32-bit
/usr/i686-w64-mingw32/sys-root/mingw/bin/
- Source directory for 64-bit
/usr/x86_64-w64-mingw32/sys-root/mingw/bin/
- libboost_filesystem-mt.dll
- libboost_program_options-mt.dll
- libboost_system-mt.dll
- libgcc_s_seh-1.dll
- libsodium-18.dll
- libstdc++-6.dll
- libwinpthread-1.dll
- Run cmd as Administrator(right mouse button -> Run as Administrator)
- Go to binary dir (e.g.
cd C:\cygwin64\home\win2\galaxy42
) - Run tunserver (
tunserver.elf.exe
)
Tested on Cygwin 2.6.0(0.304/5/3)
mingw version 5.4.0