Unsolved CryptoPP in Qt Creator
-
Can anyone provide step-by-step instructions on how to build the latest version of CryptoPP with mingw64 and integrate the resulting library files and headers into Qt Creator? Nothing I've tried so far has worked and I'm starting to feel helpless...
-
Hi,
For the building part, you should contact the authors. Note that MinGW is not listed under the supported compilers list.
As for Qt, you can use the same technique as any other library you want to integrate to your project.
Qt Creator provides a dialog to help you with that.
-
Thanks, didn't realize it wasn't supported. I've compiled with MSVS 2018 and setup my .pro file as follows:
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../Downloads/cryptopp-master/cryptopp-master/x64/Output/release/ -lcryptlib
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../Downloads/cryptopp-master/cryptopp-master/x64/Output/debug/ -lcryptlibINCLUDEPATH += $$PWD/../../Downloads/cryptopp-master/cryptopp-master
DEPENDPATH += $$PWD/../../Downloads/cryptopp-master/cryptopp-masterHowever, when I run in Qt Creator, I get "mismatch detected for 'RuntimeLibrary'" errors. Do you know what's causing this?
-
Does it link against the static runtime ?
Visual Studio 2018 ? AFAIK there's only 2017 and 2019. -
Sorry, 2017 - typo...
Not sure what you mean. In Qt Creator I used "Add Library" and selected Dynamic for Linkage. -
Looks like I was able to get it to work by changing the Runtime Library to MDd in VS2017 and recompiling. Any idea why this worked?
-
Was it MT before ?
If so, you can't mix libraries built with the static and dynamic runtime.