Results 1 to 2 of 2

Thread: QSslSocke::supportSsl() returns false

  1. #1
    Join Date
    Sep 2007
    Posts
    31
    Thanked 1 Time in 1 Post

    Default QSslSocke::supportSsl() returns false

    Hi,

    I've spent many time trying to make function SSL support working with QT 4.4.1 opensource edition without success.

    The function: QSslSocket::supportSsl() still returns false...

    Here is the minimalist tutorial I followed; I hope you'll notice something wrong:

    * download latest release of Qt:
    qt-win-opensource-x.x.x-mingw.exe

    * if you're on Vista, check that the line:

    set PATH=%PATH%;C:\MinGW\libexec\gcc\mingw32\3.4.2

    is in the file C:\Qt\4.3.3\bin\qtvars.bat

    * download and install SSL libraries. Pre compiled are available here:
    http://www.openssl.org/related/binaries.html
    Install the dlls into OpenSSL folder
    (don't take the "Light" release but the standard instead like:
    Win32 OpenSSL v0.9.8h
    Then copy the files ssleay32.dll and libeay32.dll into your executable folder

    * recompile Qt with OpenSSL support:
    configure.exe -openssl -I C:\OpenSSL\include -L C:\OpenSSL\lib\MinGW
    make
    The compilation went good. I noticed the line
    OpenSSl support ......... Yes
    when doing configure

    But when my program calls: QSslSocke::supportSsl()
    the method returns false! Grrr...

    Running my program under dependency walker to investiguate showed 2 errors:

    Loaded "SSLEAY32.DLL" at address 0x012F0000. Successfully hooked module.
    Unloaded "SSLEAY32.DLL" at address 0x012F0000.
    LoadLibraryW("ssleay32") returned NULL. Error: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more detail (14001).
    Error: The Side-by-Side configuration information for "c:\qt\4.4.1\examples\network\securesocketclient\r elease\SSLEAY32.DLL" contains errors. The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more detail (14001).

    Error: The Side-by-Side configuration information for "c:\qt\4.4.1\examples\network\securesocketclient\r elease\LIBEAY32.DLL" contains errors. The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more detail (14001).
    GetProcAddress(0x77A80000 [GDI32.DLL], "GetLayout") called from "USP10.DLL" at address 0x77845B74 and returned 0x77A87F10.
    GetProcAddress(0x77A80000 [GDI32.DLL], "GdiRealizationInfo") called from "USP10.DLL" at address 0x77845C21 and returned 0x77A88078.
    GetProcAddress(0x77A80000 [GDI32.DLL], "FontIsLinked") called from "USP10.DLL" at address 0x77845B39 and returned 0x77A8C8B9.
    GetProcAddress(0x77A80000 [GDI32.DLL], "GetTextFaceAliasW") called from "USP10.DLL" at address 0x778453E2 and returned 0x77A8C7F5.
    GetProcAddress(0x77A80000 [GDI32.DLL], "GetFontAssocStatus") called from "USP10.DLL" at address 0x77845BA9 and returned 0x77A8C8CD.
    GetProcAddress(0x77A80000 [GDI32.DLL], "GetTextFaceAliasW") called from "USP10.DLL" at address 0x77845776 and returned 0x77A8C7F5.
    GetProcAddress(0x77A80000 [GDI32.DLL], "GdiIsMetaPrintDC") called from "USP10.DLL" at address 0x778415FB and returned 0x77A897E1.
    LoadLibraryW("wintab32") called from "QTCORE4.DLL" at address 0x1015A83D.
    LoadLibraryW("wintab32") returned NULL. Error: The specified module could not be found (126).
    LoadLibraryW("wintab32.dll") called from "QTCORE4.DLL" at address 0x1015B102.
    LoadLibraryW("wintab32.dll") returned NULL. Error: The specified module could not be found (126).
    LoadLibraryW("user32") called from "QTCORE4.DLL" at address 0x1015A83D.
    LoadLibraryW("user32") returned 0x76680000.
    I don't think the second one is really important neither if the first one may be the reason why QSslSocket::supportSsl returns false.

    Thanks for your help.
    Best regards,
    Oscar
    Last edited by jacek; 8th September 2008 at 23:50. Reason: changed [code] to [quote]

  2. #2
    Join Date
    Sep 2007
    Posts
    31
    Thanked 1 Time in 1 Post

    Default Re: QSslSocke::supportSsl() returns false

    No one has an idea?

    Regards,
    Oscar

Similar Threads

  1. QSqlQuery::isValid returns false
    By mismael85 in forum Qt Programming
    Replies: 24
    Last Post: 7th September 2008, 23:43
  2. Replies: 0
    Last Post: 29th July 2008, 08:08
  3. Problem with connect()
    By mrnor3 in forum Qt Programming
    Replies: 3
    Last Post: 23rd July 2008, 14:05
  4. Replies: 4
    Last Post: 8th July 2007, 14:26
  5. connect returns false
    By krivenok in forum Qt Programming
    Replies: 6
    Last Post: 21st February 2006, 20:01

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.