Results 1 to 2 of 2

Thread: Problem installing QCA-OSSL (part of the Qt Cryptographic Architecture) plugin

  1. #1
    Join Date
    Jan 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Problem installing QCA-OSSL (part of the Qt Cryptographic Architecture) plugin

    Hi there.

    I have been trying to use QCA on my Windows 7 PC for a couple of days now, works fine on my linux box, just can't get it working with Windows.

    So i followed all the instructions for installing QCA and then the ossl plugin for QCA. The QCA works fine but for some reason the plugin isn't showing up in my Qt Creator nor am I able to use some of the functions in the plugin.

    I used the qcatool2.exe that comes with QCA to check my plugins using

    Qt Code:
    1. qcatool2 plugins --debug
    To copy to clipboard, switch view to plain text mode 

    and get this error message:

    Qt Code:
    1. plugin: qca-ossl2.dll: failed to load: The plugin 'C:/Qt/2010.05/qt/plugins/crypto/qca-ossl2.dll' uses incompatible Qt library. Expected build key "Windows mingw debug full-config", got "Windows mingw release full-config"
    To copy to clipboard, switch view to plain text mode 
    Now this seems to me as if qt requires the plugin to be compiled in debug mode (as to get the build key to contain debug rather than release) so I added

    Qt Code:
    1. CONFIG += debug
    To copy to clipboard, switch view to plain text mode 

    to my plugin's project file and ran qmake and mingw32-make as ussual but this seems to have had no effect.

    My project file for the plugin is now:

    Qt Code:
    1. TEMPLATE = lib
    2. CONFIG += plugin
    3. QT -= gui
    4. DESTDIR = lib
    5.  
    6. VERSION = 2.0.0
    7.  
    8. unix:include(conf.pri)
    9. windows:CONFIG += crypto
    10. windows:include(conf_win.pri)
    11.  
    12. CONFIG += create_prl
    13.  
    14. SOURCES = qca-ossl.cpp
    15.  
    16. windows:{
    17. load(winlocal.prf)
    18. isEmpty(WINLOCAL_PREFIX) {
    19. error("WINLOCAL_PREFIX not found. See http://delta.affinix.com/platform/#winlocal")
    20. }
    21.  
    22. OPENSSL_PREFIX = $$WINLOCAL_PREFIX
    23. DEFINES += OSSL_097
    24.  
    25. INCLUDEPATH += $$OPENSSL_PREFIX/include
    26. LIBS += -L$$OPENSSL_PREFIX/lib
    27. LIBS += -llibeay32 -lssleay32
    28. LIBS += -lgdi32 -lwsock32
    29. }
    30.  
    31. !debug_and_release|build_pass {
    32. CONFIG(debug, debug|release) {
    33. mac:TARGET = $$member(TARGET, 0)_debug
    34. windows:TARGET = $$member(TARGET, 0)d
    35. }
    36. }
    37.  
    38. CONFIG += debug
    To copy to clipboard, switch view to plain text mode 

    Has anyone got any ideas? If you need anymore details just ask, I've tried to be as thorough as possible. Thanks

    Tom

  2. #2
    Join Date
    Mar 2011
    Posts
    5
    Thanked 4 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem installing QCA-OSSL (part of the Qt Cryptographic Architecture) plugin

    I've been running into something similar, but I've had much more success with the current QCA in kdesupport/qca and CMake. Here is a snippet from my documentation on how to reproduce what I've done:

    Install The OpenSSL-Win32 (0.9.8r) into the path C:/OpenSSL-Win32-0.9.8r/

    Run the following from the Qt SDK 1.1b command prompt (run with administrator
    privileges):

    C:\workspace> svn checkout svn://anonsvn.kde.org/home/kde/trunk/kdesupport/qca
    C:\workspace> mkdir qca-build
    C:\workspace> set CMAKE_INCLUDE_PATH=C:\OpenSSL-Win32\include
    C:\workspace> set CMAKE_LIBRARY_PATH=C:\OpenSSL-Win32\lib
    C:\workspace> cd qca-build
    C:\workspace\qca-build> cmake
    -G"MinGW Makefiles"
    -DOPENSSL_EAY_LIBRARIES=C:/OpenSSL-Win32-0.9.8r/lib/libeay32.lib
    -DOPENSSL_INCLUDE_DIR=C:/OpenSSL-Win32-0.9.8r/include
    -DOPENSSL_LIBRARIES=C:/OpenSSL-Win32-0.9.8r/lib/ssleay32.lib
    -DCMAKE_BUILD_TYPE=Release
    -DCMAKE_INSTALL_PREFIX=C:\QtSDK\Desktop\Qt\4.7.2\mi ngw ../qca
    C:\workspace\qca-build> mingw32-make
    C:\workspace\qca-build> mingw32-make install

    Although it's worth mentioning that I'm still having troubles myself:
    http://www.qtcentre.org/threads/3950...315#post181315


    Added after 13 minutes:


    You should also be able to do a "mingw32-make test" after you've installed and you should be able to see everything pass.
    Last edited by pocketchange; 9th March 2011 at 23:24.

Similar Threads

  1. MinGW and qca-ossl
    By December in forum Qt Programming
    Replies: 5
    Last Post: 9th March 2011, 22:42
  2. Plugin Architecture
    By jtaylor108 in forum Newbie
    Replies: 2
    Last Post: 8th April 2008, 06:32
  3. Replies: 1
    Last Post: 30th November 2007, 11:55
  4. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15
  5. Qt Cryptographic Architecture
    By derick in forum Qt Programming
    Replies: 2
    Last Post: 16th February 2006, 12:10

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.