Hi Alexander76,
Sorry for the late reply. We are still in the process of finishing up building the Qt compatibility layer and merging it into wolfSSL’s master branch. It may be better to wait for when Qt support has been fully integrated and full documentation has been released. However, If you still want to get started now, we can list the build steps for the development version and post the patch file required for Qt. If you come across any issues, please let us know and we can get them sorted out.
Clone the qtBranch of wolfSSL: https://github.com/MJSPollard/wolfssl and build the library with the following commands.
$ cd wolfssl
$ ./autogen.sh
$ ./configure --enable-qt
$ make
$ sudo make install
Now follow the instructions here: https://wiki.qt.io/Building_Qt_5_from_Git to download Qt and any needed dependencies. Use the latest Qt version and apply the git generated patch file to your Qt repository. Note that this patch file is subject to change as wolfSSL integration into Qt progresses. Now execute the following commands.
$ export QT_CONFIGS="-openssl-linked -opensource -silent -confirm-license -developer-build -no-feature-dtls"
$ export OPENSSL_PATH="-I/usr/local/include/wolfssl -I/usr/local/include"
$ export OPENSSL_LIBS="-L/usr/local/lib -lwolfssl"
$ cd qt5
$ ./configure $QT_CONFIGS $OPENSSL_PATH
$ make
$ make install
Note: if you have installed wolfSSL somewhere else, you will have to specify the location to that directory within OPENSSL_PATH and OPENSSL_LIBS
If you want to speed up the build time and exclude building the examples and tests, you can execute the following command and then reconfigure, including the EXCLUDE_TESTS environment variable in the ./configure line.
$ export EXCLUDE_TESTS="-nomake examples -nomake tests"
To clean up after building if there are errors or you just want to reconfigure, run the following commands.
$ git submodule foreach --recursive "git clean -dfx"
$ rm config.cache
Let us know if you have any further questions!
- Mike Pollard