-
Notifications
You must be signed in to change notification settings - Fork 1
Building
Riccardo edited this page May 1, 2016
·
9 revisions
- Compiler: MSVC, MinGW, GCC, Clang
- Libraries: Qt 5.x
There are several ways to compile the QtCryptoHash library:
- using QtCreator
- using the python script
build.py
- manually calling
qmake
and then the compiler (e.g.make
,nmake
,mingw32-make
, etc...)
In order to build QtCryptoHash using the build.py
script, the compiler and qt paths must be in the PATH environment variable (note for MSVC: before running build.py
, you should also run vcvarsall
, specifying the correct target architecture, x86 or x64)
usage: build.py [-h] [-c {msvc,mingw}] [-a {x64,x86}] [-d] [-s]
Builds QtCryptoHash
optional arguments:
-h, --help shows this help message and exit
-c {msvc,mingw}, --compiler {msvc,mingw}
compiler to be used (Windows only - default: msvc)
-a {x64,x86}, --arch {x64,x86}
target architecture (default: x64)
-d, --debug compiles with debug symbols
-s, --static compiles as static library
Note: before running this script, be sure that the target architecture of the compiler and of the qt libraries is the same of the -a
argument.
set PATH=%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC;C:\path\to\qt\msvc\x64
vcvarsall x64
build.py
To build QtCryptoHash as a static library, you must first run qmake "CONFIG += static"
on the project file QtCryptoHash.pro
or, if you are using build.py
, you can use the -s
argument.
Copyright © 2015 - 2016 @rikyoz