Skip to content

Latest commit

 

History

History
118 lines (90 loc) · 2.88 KB

cygwin-instructions.md

File metadata and controls

118 lines (90 loc) · 2.88 KB

Instruction for Cygwin download/instalation.

1. Download Cygwin installer:

You can download if from here:

2. Install Cygwin:

  1. Run downloaded file
  2. -> Next
  3. "Install from internet" -> Next
  4. Your settings -> Next (recomended basic)
  5. Your settings -> Next (recomended basic)
  6. "Direct Connection" -> Next
  7. -> Next
  8. Choose packeges to download
  9. -> Next
  10. -> Finish

4. Choosing packeges:

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
5. Needed packeges:
Convention:

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

Building.

1. Download code from github:

$ git clone https://github.com/yedino/galaxy42.git
$ cd galaxy42
$ git submodule update --init

2. Checking compiler:

  • 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

3. Building

  • 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

4. Running

Install TUN/TAP device

https://github.com/yedino/galaxy42/blob/master/doc/msvc-instructions.md#create-tuntap-device

Copy dll files to binary directory
  • 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/

Libraries list
  • 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 as Administrator
  • 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