An open source software to analyze the quality of your typing skills.
-
Qt 5.15.7 with source code
-
Install Visual Studio 2019. You basically need the compiler and the debugger.
-
Install Conan 1.59. It is currently impossible to build the project with conan v2 because not all of the required recipes are compatible with conan v2.
-
Install Cuda Toolkit v.10.1 Make sure the variables NVCUDASAMPLES_ROOT and CUDA_PATH are added to the PATH variable.
-
Install Qt. Install Qt Creator and the source code of Qt 5.15.7. Currently it is impossible to build the project with a newer version of Qt because qwt depends on this version.
There are two options: build with static runtime library of with dynamic runtime library. The first option is not recommended but allows you to have one executable file with no dependencies.
-
Open Visual Studio command line x64 Native.
-
Suppose Qt_Source is the path to your Qt source code, Qt_Build is your current folder and Qt_Static is the install folder.
-
First you need to configure Qt using command
Qt_Source/configure.bat -debug-and-release -static -static-runtime -opengl desktop -platform win32-msvc -prefix "Qt_Static" -opensource -confirm-license -skip webengine -make libs -nomake tools -nomake tests -nomake examples
- use
set CL=/MP
to make nmake multi-threaded
- Build Qt using (or you may use jom here)
nmake
- Install Qt using (or you may use jom here)
nmake install
- Delete Qt_Build folder
-
Open Visual Studio command line x64 Native.
-
Suppose Qt_Source is the path to your Qt source code, Qt_Build is your current folder and Qt_Static is the install folder.
-
First you need to configure Qt using command
Qt_Source/configure.bat -debug-and-release -static -opengl desktop -platform win32-msvc -prefix "Qt_Static" -opensource -confirm-license -skip webengine -make libs -nomake tools -nomake tests -nomake examples
- use
set CL=/MP
to make nmake multi-threaded
- Build Qt using (or you may use jom here)
nmake
- Install Qt using (or you may use jom here)
nmake install
- Delete Qt_Build folder
-
Run QtCreator
-
Go to Tools->Options->Qt Versions and add statically build version of Qt 5.15.7.
-
Go to Tools->Options->Kits and add a kit for static version of the Qt. You should choose Microsoft Visual C++ Compiler (amd64) for C and C++ code. Make sure "Force UTF-8 MSVC compiler output" flag is checked. Use statically build Qt version for this kit.
-
Open TypingAnalysis.pro file in QtCreator.
-
Go to Project(icon on the left panel) Add "Conan install" as the first step before qmake for "Debug", "Release", and "Profile" modes.
-
If you compiled with static runtime, you should add an additional argument to Connan (in each building mode):
-s "compiler.runtime=MT"
Thrust library is used to speed up the computations. As a result CUDA is not used in debug mode.