View Full Version : CryptoPP 5.6.1 and latest Qt (5.1 / MinGW 4.8)
Threepwood
5th August 2013, 19:29
Hi,
has anyone already successfully compiled CryptoPP (5.6.2 or lower) with the latest release of Qt (5.1 / MinGW 4.8)?
I´ve been trying for 2 days now but won´t get it working :(
All examples i found on the internet describe how to do it by using older Versions of MinGW!
The binaries, I used to link against with older Versions of Qt won´t work as well.
I will appreciate any help (like example or hint or link).
ChrisW67
6th August 2013, 00:39
Qt is not a compiler. Qt is a library. Your question is, "How do I compile CryptoPP with GCC 4.8 (MingW) on Windows?" This is best asked in a CryptoPP forum (https://groups.google.com/forum/#!forum/cryptopp-users) or mailing list (http://www.cryptopp.com/#lists).
The instructions I found here (http://www.babaei.net/blog/2013/02/15/how-to-build-cpp-cryptographic-library-cryptopp/#CryptoMinGW) (with minimal Google-foo) use Qt's qmake to write a non-Qt Makefile for you: that Makefile compiles CryptoPP successfully albeit with huge numbers of warnings. You might want to add:
QMAKE_CXXFLAGS += -Wno-unused-parameter
to the modified PRO file.
Threepwood
6th August 2013, 11:47
Hi Chris,
I´m sorry for being unprecisely. I didn´t know how to describe my problem correctly, that´s why I wrote down all Version-Numbers.
The Link you posted above was the first attempt that I tried, but the compiler always aborted with errors.
Now, after some refreshing hours of sleep, I finally got it working - by the approach that is mentioned in your link.
Additionally, I added these lines to the .pro File:
################ CryptoPP 5.6.2 ################
INCLUDEPATH += "D:/Coding/Libraries/CryptoPP-5.6.2"
QMAKE_CXXFLAGS += -Wno-unused-parameter
debug {
LIBS += -L"D:/Coding/Libraries/CryptoPP-5.6.2/CryptoPP/Debug"
}
release {
LIBS += -L"D:/Coding/Libraries/CryptoPP-5.6.2/CryptoPP/Release"
}
LIBS += -lCryptoPP
Thank you very much for your answer!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.