Menu

How to Compile

Balkin7

How to Compile

NetGhost is developed with Mingw-w64 and Msys as console. It is recommend to use the same development environment. Support for other compiler can not be given by the developer.

Build Requirements

The build process is written for the MinGW64 compiler. The recommended way is to use a build from TDM-GCC.

  • mingw-w64 gcc
  • make
  • msys

Preparation

The Makefile is designed to support multiple installed gcc versions. Thats why it is necessary to set the path to the gcc version, which should be used.

  • download and extract source code
  • set MINGW64PATH in the Makefile to the root directory of your Mingw-w64 installation (default: c:\mingw64)

Compile

  • goto the folder, where you put the source code
  • type make (build the x64 version)
    or
  • type make build32 (for the x86 version)

Release Build

If a release package should be created the 7z.exe (7-Zip) have to be in the global PATH variable. An other archiv program can be used by changing the ZIP variable. But you will probably have to change the parameters in the release targets, too.

  • make release (build x86 and x64 packages)
  • the package can be found in folders release and release32