Skip to content
Jeffrey Gill edited this page Apr 17, 2022 · 18 revisions

Welcome to the Intan-RHX wiki!

Notes on Compiling on Windows

NOTE: This may also be a useful reference: https://intantech.com/files/Intan_RHX_source_code_setup.pdf

  1. Installed Visual Studio Community 2022:

    https://visualstudio.microsoft.com/

    Using Visual Studio Installer, installed:

    • Workloads:
      • Desktop development with C++
  2. Installed Qt 5:

    https://www.qt.io/download-qt-installer

    Using Qt Online Installer for Windows, selected "Custom installation", checked "Archive" and re-ran the filter, then installed the following components:

    • Qt 5.12.8:
      • MSVC 2017 64-bit
    • Developer and Designer Tools:
      • Qt Creator 7.0.0 (items below were all selected automatically):
        • Qt Creator 7.0.0 CDB Debugger Support
        • Debugging Tools for Windows
        • Qt Design Studio 3.2.0
        • CMake 3.21.1 64-bit
        • Ninja 1.10.2
  3. Added this to the end of my Path environment variable:

    C:\Qt\5.12.8\msvc2017_64\bin
    
  4. Opened the "x64 Native Tools Command Prompt for VS 2022" prompt, and then built the application using my new Makefile:

    cd C:\Users\jeffr\Documents\Research\Intan-RHX\Intan-RHX
    nmake
    

    which is essentially the same as this (with extra steps like copying a README and license file):

    cd C:\Users\jeffr\Documents\Research\Intan-RHX\Intan-RHX
    mkdir build
    cd build
    qmake ..\IntanRHX.pro
    nmake release
    windeployqt --dir release-deploy release\IntanRHX.exe
    cp release\IntanRHX.exe ..\kernel.cl ..\libraries\Windows\okFrontPanel.dll release-deploy
    
  5. Renamed and zipped the release-deploy directory for distribution.

Clone this wiki locally