A simple, lightweight Qt-based app that tracks how long user-selected processes have been running on the system.
- Install the following dependencies for your distribution:
qt6-base qt6-svg cmake
- Execute the following:
git clone https://github.com/kik4444/simple-process-tracker
cd simple-process-tracker/src
mkdir build-dir && cd build-dir
cmake -S .. -B . -DCMAKE_BUILD_TYPE:STRING=Release
make -j$(nproc)
git clone https://github.com/kik4444/simple-process-tracker
cd simple-process-tracker/src
mkdir build-dir && cd build-dir
qmake -o Makefile ../simple-process-tracker.pro -spec linux-g++
make -j$(nproc)
- Download the open source version of Qt from https://www.qt.io/download-qt-installer.
- Register a Qt account to log into the installer.
- Start the installer and accept the request to install the commandline developer tools. Open the subdirectory
Qt/Qt 6.2.3
. From there choose the component:
- macOS
- Now go to the directory
Develop and Designer Tools
and select:
- CMake
- Ninja
- Continue with the installation and finish it.
- Execute the following from a terminal:
git clone https://github.com/kik4444/simple-process-tracker
cd simple-process-tracker/src
mkdir build-dir && cd build-dir
export PATH=/Users/$USER/Qt/Tools/Ninja:$PATH
/Users/$USER/Qt/Tools/CMake/CMake.app/Contents/bin/cmake -S .. -B . -GNinja -DCMAKE_BUILD_TYPE:STRING=Release "-DCMAKE_PROJECT_INCLUDE_BEFORE:PATH=/Users/$USER/Qt/Qt Creator.app/Contents/Resources/package-manager/auto-setup.cmake" -DQT_QMAKE_EXECUTABLE:STRING=/Users/$USER/Qt/6.2.3/macos/bin/qmake -DCMAKE_PREFIX_PATH:STRING=/Users/$USER/Qt/6.2.3/macos -DCMAKE_C_COMPILER:STRING=/usr/bin/clang -DCMAKE_CXX_COMPILER:STRING=/usr/bin/clang++
/Users/$USER/Qt/Tools/CMake/CMake.app/Contents/bin/cmake --build . --target all -- -j$(sysctl -n hw.ncpu)
/Users/$USER/Qt/6.2.3/macos/bin/macdeployqt simple-process-tracker.app -dmg
You will now have a dmg file containing the application that you can drag and drop into the applications folder in Finder.
- Download the open source version of Qt from https://www.qt.io/download-qt-installer.
- Register a Qt account to log into the installer.
- Start the installer, when you need to select which components to install, open the subdirectory
Qt/Qt 6.2.3
. From there choose the components:
- MinGW 64-bit
- Now go to the directory
Develop and Designer Tools
and select:
- CMake 64-bit
- Ninja
- Continue with the installation and finish it. You should now have Qt and Qt Creator installed on your computer and the main Qt SDK folder should be located in
C:\Qt
. - Open powershell and execute the following script which will download and compile the program in a folder on your desktop:
cd C:\Users\$env:UserName\Desktop
Start-BitsTransfer -Source https://github.com/kik4444/simple-process-tracker/archive/refs/heads/master.zip -Destination .
Expand-Archive -Path .\master.zip -DestinationPath .
cd simple-process-tracker-master\src
mkdir build-dir
cd build-dir
$env:Path = "C:\Qt\Tools\mingw900_64\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Qt\Tools\Ninja;"
C:\Qt\Tools\CMake_64\bin\cmake.exe -S .. -B . -GNinja "-DCMAKE_BUILD_TYPE:STRING=Release" "-DCMAKE_PROJECT_INCLUDE_BEFORE:PATH=C:/Qt/Tools/QtCreator/share/qtcreator/package-manager/auto-setup.cmake" "-DQT_QMAKE_EXECUTABLE:STRING=C:/Qt/6.2.3/mingw_64/bin/qmake.exe" "-DCMAKE_PREFIX_PATH:STRING=C:/Qt/6.2.3/mingw_64" "-DCMAKE_C_COMPILER:STRING=C:/Qt/Tools/mingw900_64/bin/gcc.exe" "-DCMAKE_CXX_COMPILER:STRING=C:/Qt/Tools/mingw900_64/bin/g++.exe"
C:\Qt\Tools\CMake_64\bin\cmake.exe --build . --target all -- -j $((Get-CimInstance Win32_ComputerSystem).NumberOfLogicalProcessors)
mv .\simple-process-tracker.exe ..
rm -Recurse *
mv ..\simple-process-tracker.exe .
C:\Qt\6.2.3\mingw_64\bin\windeployqt.exe --no-translations .\simple-process-tracker.exe
You will now have a working portable program in the directory C:\Users\YOUR_USER_NAME\Desktop\simple-process-tracker-master\build-dir
.