Results 1 to 3 of 3

Thread: QtCrypto problem

  1. #1
    Join Date
    Nov 2009
    Location
    Argentina
    Posts
    16
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question QtCrypto problem

    Hi:
    I'm beginning with an encryption application, and I'm using the "QtCrypto" library. I installed it, and everything seems to be working, until I include the library in the source file.
    When I use #include <QtCrypto>, and then I compile, I get the following error:
    Qt Code:
    1. QtCrypto: No such file or directory
    To copy to clipboard, switch view to plain text mode 
    And a lot of other errors caused by it. I included a new line in the .pro file with QT+=crypto, and still don't work.

    Please, if someone can help me, I'll be really thanked.
    Thanks in advanced.

  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: QtCrypto problem

    I'm not familiar with this particular library.

    It does look like you need to put appropriate entries in your INCLUDEPATH so that the compiler can find the include file. You'll probably also need to play with LIBS so the linker can find the libraries. Something like this (for Qwt) could be adapted in your project.pro file;
    Qt Code:
    1. QWTPATH = /usr/local/qwt-5.2.0
    2. INCLUDEPATH += $$QWTPATH/include
    3. LIBS += -L$$QWTPATH/lib -lqwt
    To copy to clipboard, switch view to plain text mode 

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

    pucara_faa (17th January 2010)

  4. #3
    Join Date
    May 2010
    Posts
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QtCrypto problem

    Hello,

    I followed the above description and now I get more errors then before.

    I added the following to my *.pro file:
    Qt Code:
    1. QCAPATH = C:/Qt/qca-mingw-2.0.1
    2. INCLUDEPATH += $$QCAPATH/include/QtCrypto
    3. LIBS += -L$$QCAPATH/lib -lqca2
    To copy to clipboard, switch view to plain text mode 

    Now I get many compilation errors (see attachment).
    Did I forget anything? A path variable, ...?
    I have windows 7 (32 bit), mingw 5.1.6, eclipse, qt 4.6.2, qca mingw 2.0.1, qca ossl plugin 2.0.0 beta 3 and openssl 0.98n for windows.

    When I try "qcatool2 plugins", I get following error message:
    plugin: qca-ossl2.dll: failed to load. Cannot load library C:/Qt/4.6.2/plugins/crypto/qca-ossl2.dll
    And I don't know why.

    Has anyone an idea?
    Thanks for your help.
    jm
    Attached Files Attached Files

Similar Threads

  1. Problem with QAbstractListModel
    By eekhoorn12 in forum Qt Programming
    Replies: 3
    Last Post: 26th August 2009, 15:26
  2. Replies: 1
    Last Post: 23rd April 2009, 10:05
  3. Replies: 19
    Last Post: 4th April 2009, 00:17
  4. Grid Layout Problem
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2006, 13:45
  5. fftw problem
    By lordy in forum General Programming
    Replies: 1
    Last Post: 16th March 2006, 22:36

Tags for this Thread

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.