The following are the instructions for updating the Qt libraries used by DailyBalance. DailyBalance was built with the 5.12.4 release of Qt. If the source for Qt is needed, it can be downloaded from here for macOS or from here for Windows. 

The Qt source can be compiled with various tools. This is some information on the toolchain that you might need for building Qt from source.

For more information about building for Windows, see: https://doc.qt.io/qt-5/windows-requirements.html.  These tools may be needed: ActivePerl, Python, GPerf, Bison, Flex, Visual Studio or another compiler, GCC (MinGW-builds)

For more information about building for macOS, see: https://doc.qt.io/qt-5/macos-building.html. You will need Xcode from Apple to build.

These are the steps to build the Qt frameworks for macOS:

  • Download the Qt source and uncompress the download

  • Run the configure executable in the Src directory or run the ./configure script in the package directory.

  • To compile the source, navigate to the Qt source directory in a Terminal window and type “make”.

These are the steps to build the Qt libraries for Windows:

  • Download the Qt source and uncompress the download. Use the folder C:\Qt\Qt-5 to stay consistent with the steps below.

  • Create a file called qt5vars.cmd with the following lines:

    • REM Set up Microsoft Visual Studio 2017, where <arch> is amd64, x86, etc.

    • CALL “C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build\vcvarsall.bat” <arch>

    • SET _ROOT=C:\Qt\Qt-5

    • SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%PATH%

    • REM Uncomment the below line when using a git checkout of the source repository

    • REM SET PATH=%_ROOT%\qtrepotools\bin;%PATH%

    • SET _ROOT=

  • Create a desktop link by specifying the command %SystemRoot%\system32\cmd.exe /E:ON /V:ON /k C:\Qt\qt5vars.cmd as application and C:\Qt\Qt-5 as working directory.

  • Note: Setups for MinGW are similar; they differ only in that the bin folder of the installation should be added to the path instead of calling the Visual Studio setup script. For MinGW, please make sure that no sh.exe can be found in the path, as it affects mingw32-make.

  • Configure the library for a debug build for your machine, type the following command in the command prompt: configure -debug -nomake examples -nomake tests -skip qtwebengine -opensource

  • To build Qt using jom, type: jom

  • If you do not have jom installed, type: nmake

  • For MinGW, type: mingw32-make

Once you have built the desired libraries. These are the steps to install them so that the DailyBalance app will load them. Quit DailyBalance first, install the modified libraries, and then restart DailyBalance. For macOS, copy the frameworks to /Library/Frameworks/Frameworks_DailyBalance. DailyBalance will use the frameworks that exist there instead of the bundled ones. For Windows, replace the dll files in the folder with the DailyBalance exe file. This is generally in the user’s AppData\Local\DailyBalance folder.