This program creates vocabulary tests in different languages using words from an online or a local database.
- First, install Qt with the Open Source licence.
-
Download and run the online installer
-
At Select Components step, expand Qt 6.5.3 and select the relevant components for the architectures on which you wish to deploy the app.
E.g: for Windows, tick MinGW 11.2.0 64-bit both under Qt 6.5.3 and under Build Tools.
-
To deploy on Android, expand Qt 5.15.2 and check Android. (The 5.14.2 scripts contain bugs.)
-
To build in WebAssembly, check the corresponding option.
-
- Open the project clemanglaise.pro with QtCreator.
- On Linux, run
sudo apt install libgl1-mesa-devto installlibGL. - If you intend to deploy the app on Android, there is some more preparative work to do. Please follow these steps (only for Linux users) and come back here when you're done.
- If you are building for WebAssembly, better do it on a Unix system (required by makefile).
-
Type:
git clone https://github.com/emscripten-core/emsdk.gitcd emsdk./emsdk install 1.39.7That version is the one WebAssembly was built with in Qt 5.15.2../emsdk activate --embedded 1.39.7source ./emsdk_env.shsudo apt install python3sudo apt install python-is-python3(not sure if this one is needed)sudo apt install python3-distutils
-
Configure QtCreator using this guide
Other useful link here
-
- Compile the project (hotkey:
CTRL+B). (This will also runqmakebefore compiling.) - Configure the run target: Since the project uses a subdirs structure, you need to set up Qt Creator to run the main application:
- Go to Projects (left sidebar) → Run
- In the "Run configuration" dropdown, select "main". This will be the default target when you run the project.
- Since OpenSSL is not included in Qt and that I didn't want to include it in the repository, you'll need to download it yourself:
-
To build on Windows:
- Download and extract this zip(1).
- In the extracted folder, copy
libcrypto-1_1-x64.dllandlibssl-1_1-x64.dllto the folder where Clemanglaise was built (in the same folder asclemanglaise.exe).
Even though these libs are not in the exact version we should be using (it should be 1.1.1d), it works and I think that's good enough for now.
-
On Linux, if you have some version of OpenSSL 1.1.x installed on your system, it should work without having to do anything more.
-
On Mac, I haven't tested (let me know if you do), but I hope it's the same as on Linux.
-
- Run the project (hotkey:
CTRL+R) and enjoy!
To run the unit tests:
- Build the project (
CTRL+B) - this builds both the application and tests - Expand the project tree and locate the tests subproject
- Right-click tests and select Run (or set it as the active target and press
CTRL+R)
The test output will be displayed in the Application Output panel.
If you have been granted the administrator rights to the project's database, you have to set a password argument to run the application:
- Go to Projects mode > Run Settings
- Set Arguments to
-p <pwd>or--password <pwd>, replacing<pwd>with the password - To open the help wizard, set Arguments to
-hor-?or--help
To compile it:
- Create a
builddirectory located in the same parent directory as clemanglaise. - Check that the location of the
qmakeis in your$PATHvariable. - Don't regenerate the project file, use the one provided in the repository.
- Go into
builddirectory - Type
qmake <path>in the command line, replacing<path>with the path toclemanglaise.pro. - Type
makein the command line.
Add the necessary OpenSSL libs to your build folder: follow the step about OpenSSL in the previous section describing the Usual method.
To run the application, type:
./clemanglaisein the command line if you are using Linux,clemanglaise.exeif you are using Windows,open clemanglaise.appif you are using the Mac.
To run the application with administrator rights to the database, type <cmd> -p <pwd>, replacing <cmd> with the command mentioned above, and <pwd> with the password.
To show help wizard, type <cmd> -h, replacing <cmd> with the command mentioned above.
Enjoy!
Here are the steps to build a Windows installer:
- Download and install Inno Setup from either of these servers:
- Go to the location where
clemanglaise.exeis built and use windeployqt to gather the required Qt libraries:windeployqt.exe --compiler-runtime clemanglaise.exe. This copies the necessary DLLs into your application folder. - Compile and create the installer:
- Open Inno Setup Compiler.
- Click File > Open and select the clemanglaise.iss file located in the project root.
- Click Compile or press F9.
- The installer (setup_clemanglaise.exe) will be created in the "Output" directory.
- Code signing:
- Make sure the
signtoolcommand is in your$PATHvariable. If not, addC:\Program Files (x86)\Windows Kits\10\bin\{version}\x64to your path, replacing{version}with the latest available version. - In a Windows cmd console, go to the location where the installer was built, and run
signtool sign /a /tr http://timestamp.digicert.com /td SHA256 /fd SHA256 "setup_clemanglaise.exe".
- Make sure the
(1) To find OpenSSL libraries of a specific version, go here.