Results 1 to 3 of 3

Thread: CryptoPP 5.6.1 and latest Qt (5.1 / MinGW 4.8)

  1. #1
    Join Date
    May 2010
    Posts
    5
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60

    Default CryptoPP 5.6.1 and latest Qt (5.1 / MinGW 4.8)

    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).

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: CryptoPP 5.6.1 and latest Qt (5.1 / MinGW 4.8)

    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 or mailing list.

    The instructions I found here (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:
    Qt Code:
    1. QMAKE_CXXFLAGS += -Wno-unused-parameter
    To copy to clipboard, switch view to plain text mode 
    to the modified PRO file.

  3. The following user says thank you to ChrisW67 for this useful post:

    Threepwood (6th August 2013)

  4. #3
    Join Date
    May 2010
    Posts
    5
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: CryptoPP 5.6.1 and latest Qt (5.1 / MinGW 4.8)

    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:
    Qt Code:
    1. ################ CryptoPP 5.6.2 ################
    2. INCLUDEPATH += "D:/Coding/Libraries/CryptoPP-5.6.2"
    3. QMAKE_CXXFLAGS += -Wno-unused-parameter
    4. debug {
    5. LIBS += -L"D:/Coding/Libraries/CryptoPP-5.6.2/CryptoPP/Debug"
    6. }
    7. release {
    8. LIBS += -L"D:/Coding/Libraries/CryptoPP-5.6.2/CryptoPP/Release"
    9. }
    10. LIBS += -lCryptoPP
    To copy to clipboard, switch view to plain text mode 

    Thank you very much for your answer!

Similar Threads

  1. HELP! Need to run cryptopp from Qt Creator
    By irin.gen in forum Qt Programming
    Replies: 3
    Last Post: 24th April 2013, 23:06
  2. Include cryptopp windows
    By Cyrebo in forum Qt Programming
    Replies: 2
    Last Post: 24th April 2013, 10:55
  3. Cryptopp Help
    By ttimt in forum General Programming
    Replies: 1
    Last Post: 17th March 2013, 04:50
  4. Problem with qt5 and cryptopp
    By januszmk in forum Newbie
    Replies: 0
    Last Post: 25th January 2013, 10:12
  5. HELP! cryptopp.dso file is missing
    By taufikardi in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 30th July 2012, 15:59

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.