Skip to content

Building on Windows

Zetro edited this page Mar 29, 2023 · 8 revisions
  1. Download and install the following tools:

  2. Ensure that the bin directory for Qt has been added to the PATH environment variable.

  3. Open the appropriate command prompt for Visual C++. In Visual C++ 2013, these shortcuts are labeled as follows:

    • VS2013 x86 Native Tools Command Prompt
    • VS2013 x64 Cross Tools Command Prompt
  4. Change to the root of the source directory and build the project

     mkdir build && cd build
     cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release ..
     nmake
    
  5. The NitroShare binary will be in the out\ directory and can be run with:

     out\nitroshare.exe
    

Note: if you receive an error similar to "The program can't start because [...].dll is missing from your computer.", then you will need to manually copy the Qt DLLs to the same directory as the executable. (This is done automatically for Qt 5.2+.)

Building an EXE Installer

Building the installers for 32 and 64-bit editions of Windows requires Inno Setup.

Run the following command to build a Windows EXE installer:

nmake exe
Clone this wiki locally