- Qt5(5.14.1 or above. Environment variables
QT
andPath
must be setted on windows) - OpenSSL(1.1.1 or above)
- cmake
- gcc/mingw/visual studio
- doxygen(Optional)
- Code documents can be found in
doc/
and executable files can be found inbin/
.
md build
cd build
cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_BUILD_TYPE=Release ..
(You should change the-G
option to the version of the Vsiual Studio on your computer).cmake --build . --config Release
- Arch Linux
- Qt5
sudo pacman -S qt5
- OpenSSL
sudo pacman -S openssl
- cmake
sudo pacman -S cmake
- gcc
sudo pacman -S gcc
- Qt5
- Ubuntu
- Qt5
- Download and install qt5 from https://download.qt.io/archive/qt/(the version must be greater than 5.14.0).
- Append the path of
gcc_64/lib
in your qt5 installalion path to environment variableLD_LIBRARY_PATH
. - Set the path of
gcc_64
in your qt5 installalion path to environment variableQT
. - Restart your computer.
- Replace the 3rd command in the build commands to
cmake -DCMAKE_PREFIX_PATH=${QT} -DCMAKE_BUILD_TYPE=Release ..
.
- OpenSSL
sudo apt-get install libssl-dev
- cmake
sudo apt-get install cmake
sudo apt-get install make
- gcc
sudo apt-get install gcc
sudo apt-get install g++
- Qt5
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build .