Results 1 to 6 of 6

Thread: MinGW and qca-ossl

  1. #1
    Join Date
    Sep 2006
    Posts
    68
    Thanks
    15
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default MinGW and qca-ossl

    Hi All,

    I am have real problems with the qca, openssl and the qca-ossl plugin, been on it for about 40 hours over the last 2 weeks and am about ready to give up, I've tried every which way to get it working!

    I am working with Qt 4.3.5 and the latest MinGW / msys and QCA stuff. My program works great on Linux (wow, using QCA in QT4 on Linux is soo easy, it rocks!)

    After numerous problems compiling both OpenSSL and QCA2, I finally got them working.

    Now I can't get the qca-ossl plugin source to produce a .dll, it only seems to make .o and .a files. All the instructions on the web ( like http://psi-im.org/wiki/Build_Instruc...8qca-ossl.29_2 ) indicated I should end up with a DLL, but I never seem to.

    I tried a pre-compiled one I found on the web but it won't load ( qcatool2 shows: plugin: qca-ossl2.dll: failed to load: The file 'C:/qca2/bin/crypto/qca-ossl2.dll' is not a valid
    Qt plugin.)

    Does anyone know I I would not be getting a .dll (no errors at compile time), and how I could make one out of the .a and .o files?

    Thanks loads

  2. #2
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    517
    Thanks
    21
    Thanked 66 Times in 62 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: MinGW and qca-ossl

    r u using a pro file for it? if yes, can we see it?

  3. #3
    Join Date
    Sep 2006
    Posts
    68
    Thanks
    15
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: MinGW and qca-ossl

    I'm using the source (including .pro file) from here:

    http://delta.affinix.com/download/qc...-beta3.tar.bz2

  4. #4
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    517
    Thanks
    21
    Thanked 66 Times in 62 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: MinGW and qca-ossl

    can you show the pro file here?

  5. #5
    Join Date
    Sep 2006
    Posts
    68
    Thanks
    15
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: MinGW and qca-ossl

    qca-ossl.pro:
    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. }
    To copy to clipboard, switch view to plain text mode 

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

    Default Re: MinGW and qca-ossl

    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

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.