Menu

Windows compilation

Requirements

  • Windows 7 or newer
  • Qt 5, at least 5.9, 5.12 is recommended

Installing Qt

You can skip this section if you know how to do it.

Qt instalation is pretty simple, don't worry if you know nothing about Qt and do its instalation first time.

Download Qt installer, run it and follow its instructions.
You can safely uncheck everything suggested execpt MinGW 32-bit. Also you must check corresponding MinGW version in tools section.

Getting sources

There are 2 ways to get sources:
1. download archive from release files (stable code)
2. download snapshot/clone repository (latest code)

Also you will need in resources (skins, textures, etc.)

Compilation

  • extract all downloaded archives
  • move resource folders in folder called 'data' and place it alongside with folder with sources, i.e. create structure like next:
C:\clock_build
       |_ clock_src
       |_ data
           |_ skins
           |_ textures
  • open Qt MinGW command prompt and navigate to clock sources root: cd C:\clock_build\clock_src
  • run build script: call scripts\build_win_portable.cmd

Compilation will take few minutes (depending on hardware), and as result you will get Digital Clock 4 folder alongside with sources folder, i.e. C:\clock_build\Digital Clock 4 and optionally digital_clock_4-win_portable.zip (see notes). Digital Clock 4 folder contains ready to use application, digital_clock_4-win_portable.zip is compressed version of it.

Notes

  • this guide does not cover compilation with MSVC (Visual Studio), and this method will not work for it
  • build script will fail at the end, it will say that 7z was not found. If you want to avoid it, please intsall 7-zip and add it to PATH. This has no effect to compilation process, program will compiled correctly. There is only one difference: you will not get an archive.

Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.