... | ... | @@ -31,4 +31,42 @@ make |
|
|
|
|
|
On Windows the process is a little bit more complicated. We presume that you've already installed the [Qt MinGW bundle for Windows](https://download.qt.io/archive/qt/5.9/5.9.1/qt-opensource-windows-x86-5.9.1.exe).
|
|
|
|
|
|
After the installation you'll probably need to add the directory `c:\Qt\5.9\mingw53_32\bin\` (or a different one if you've chosen a different installation location) into your `PATH` environment variable to be able to call the tools from command line. |
|
|
\ No newline at end of file |
|
|
After the installation you'll probably need to add the directory `c:\Qt\5.9\mingw53_32\bin\` (or a different one if you've chosen a different installation location) into your `PATH` environment variable to be able to call the tools from command line.
|
|
|
|
|
|
#### From Command Line
|
|
|
|
|
|
To compile the sources from command line run `Git Bash` from the start menu. Navigate to the directory where you've cloned the repository to. Then run:
|
|
|
|
|
|
```sh
|
|
|
qmake.exe CONFIG+=debug rm_test_app.sh
|
|
|
mingw32-make.exe
|
|
|
```
|
|
|
|
|
|
#### From Qt Creator
|
|
|
|
|
|
* Open the project in QT Creator
|
|
|
* Depending on the settings you may be asked to choose the target architecture. Choose desktop.
|
|
|
* Build -> Run qmake
|
|
|
* Build -> Rebuild All
|
|
|
|
|
|
## Running the Application
|
|
|
|
|
|
The application takes two command line arguments:
|
|
|
|
|
|
* `--base-url`
|
|
|
* `--token`
|
|
|
|
|
|
These arguments specify the location of the document service together with the user token. Both of these arguments must be supplied.
|
|
|
|
|
|
The repository contains two convenience scripts [rm_test_app.sh](https://gitlab.labs.nic.cz/labs/qdatovka/blob/develop/tests/records_management_app/rm_test_app.sh) and [rm_test_app.bat](https://gitlab.labs.nic.cz/labs/qdatovka/blob/develop/tests/records_management_app/rm_test_app.bat). Copy those scripts into a directory where the compiled binary is located. You may edit the scripts to pass different values into the application.
|
|
|
|
|
|
### Windows
|
|
|
|
|
|
*The application can be run but all the services will always fail. That's because it is missing OpenSSL libraries.* For more detail see [here](https://stackoverflow.com/questions/10846536/unresolved-functions-while-working-with-qsslsocket/35117483#35117483).
|
|
|
|
|
|
Locate the directory where the binary `spisovka.exe` has been created. Qt Creator usually creates a separate directory located outside the repository.
|
|
|
|
|
|
Copy the libraries `libeay32.dll` and `ssleay32.dll` into the same directory where `spisovka.exe` is located.
|
|
|
*It is crucial that you use the libraries that came bundled with you Qt installation.* The libraries can be found in the location such as `c:\Qt\Tools\mingw530_32\opt\bin`.
|
|
|
|
|
|
> On Windows the application does not generate any text output to command-line interface. |
|
|
\ No newline at end of file |