This repo is a fork of https://github.com/BlurryLight/qtcreator-wakatime which is a fork of https://github.com/nonametr/qtcreator-wakatime. The original repo provides binary plugin up to Qtc4.9, which is too old to work with the latest Qtc, and this is a fork from https://github.com/BlurryLight/qtcreator-wakatime.
QtCreator plugin for automatic time tracking and metrics generated from your programming activity by using wakatime.
The builds in the release section will require the following combinations of QT creator and Qt combo
QT Creator Version | QT Version used |
---|---|
6.0.1 | 6.2.2 |
6.0.0 | 6.2.2 |
5.0.3 | 5.15.2 |
5.0.2 | 5.15.2 |
5.0.1 | 5.15.2 |
5.0.0 | 5.15.2 |
4.15.2 | 5.15.2 |
4.15.1 | 5.15.2 |
4.15.0 | 5.15.2 |
4.14.2 | 5.15.2 |
4.14.1 | 5.15.2 |
4.14.0 | 5.15.2 |
Build instructions for Ubuntu(should be same for other distributions):
- A C++ compiler, eg: GCC, Clang, MSVC. Make sure it supports C++17
- tar executable, should come by default in Windows 10, and linux we use unzip NOTE: install it if you find problems during extraction stage, enable debug to see when it fails to extract.
- CMake
- Qt 5.15 (the one currently used) or above
- QtCreator source from https://github.com/qt-creator/qt-creator.git
-
git clone https://github.com/qt-creator/qt-creator.git
-
cd qt-creator
-
If you are building plugin for QtCreator 4.14.0 run 'git checkout origin/v4.14.0' or list all branches with 'git branch -a' and pick required version.
-
Build 'qt-creator' details here https://doc-snapshots.qt.io/qtcreator-extending/getting-and-building.html (also you can run build from other Qt Creator).
-
Run:
cd qtcreator-wakatime/ mkdir build && cd build cmake ../ -DCMAKE_BUILD_TYPE=Release -DQTC_BUILD_PATH=/path/to/where/you/built/qtcreator cmake --build . --config Release
-
Afterwards you should see a shared library libWakatime.so or Wakatme.dll or whatever your platform shows for shared libraries, zip it, then add it via plugin menu in Qtcreator
Help > About Plugins > Install Plugin... > point to where the zip was created
-
Plugin should now be ready for use, just restart qtcreator.