[Qt-interest] Getting Openssl working in windows
Simarillion
simarillion at gmx.de
Tue Dec 1 10:44:04 CET 2009
Thanks, but I wasn't successful.
I want to use openssl with QtCreator on Windows, so I have to compile with
MinGW I think. Is there any tutorial for that? I have only found Tutorials for
Visual Studio, ...
Do I have to recompile entire Qt or can I somehow only recompile QNetwork?
In my Openssl installation I have the following libs and I don't know whitch I
have to use:
C:\OpenSSL\
libeay32.dll
libssl32.dll
ssleay32.dll
C:\OpenSSL\lib
libeay32.lib
ssleay32.lib
C:\OpenSSL\lib\MinGW
libeay32.a
ssleay32.a
libeay32.def
ssleay32.def
C:\OpenSSL\lib\VC
libeay32MD.lib
libeay32MDd.lib
libeay32MT.lib
libeay32MTd.lib
ssleay32MD.lib
ssleay32MDd.lib
ssleay32MT.lib
ssleay32MTd.lib
C:\OpenSSL\lib\VC\static
libeay32MD.lib
libeay32MDd.lib
libeay32MT.lib
libeay32MTd.lib
ssleay32MD.lib
ssleay32MDd.lib
ssleay32MT.lib
ssleay32MTd.lib
Greets
Michael
Am Montag, 30. November 2009 11:46:33 schrieb Paul Colby:
> AFAIK, -openssl causes the Qt libs to try to delay-load the OpenSSL
> libs at runtime... there are many reasons that could fail (not Qt's
> fault, but mostly Windows DLL hell, etc).
>
> Then there's -openssl-linked which statically links the OpenSSL libs
> into the Qt libs... however, depending on which OpenSSL libs you
> statically link (ie the default libs?), the linked code can simply
> require (as opposed to delay-load) the OpenSSL DLLs at runtime - which
> is worse in a way, in that it can fail just as easily, but failures
> mean that the app won't even load if there's a problem using the
> OpenSSL libs.
>
> So, personally, I find it most reliable to statically link the
> *static* OpenSSL libraries... something like this:
>
> configure -openssl-linked OPENSSL_LIBS="-lssl -lcrypto -lgdi32
> -lWs2_32" -I C:\OpenSSL\include -L C:\OpenSSL\lib
>
> Note that the gdi and ws2 libs may or may not be required depending on
> your version of OpenSSL, compiler, etc.
>
> ... sorry about the lack of detailed explanation (going to bed now)...
> but hopefully that will help you out a bit ;)
>
> paul.
>
> > Hi,
> >
> > I'm trying to get openssl working in Qt windows. What I did:
> >
> > 1. I installed the binaries of Qt 4.5.3 with the installer
> >
> > 2. I installed openssl (Win32 OpenSSL v0.9.8l) from
> > http://www.slproweb.com/products/Win32OpenSSL.html
> >
> > 3. I set environment variables:
> > LIB C:\OpenSSL\lib
> > INCLUDE C:\OpenSSL\include
> >
> > 4. I went to directory C:\Qt\2009.04\qt
> >
> > 5. run: configure -openssl
> >
> > 6. run: mingw32_make
> >
> > 7. everything compiled fine without errors
> >
> > But when I call QSslSocket::supportsSsl(); I still get FALSE.
> >
> > Did I forget something? Do I have to change anything in
> > .../network/ssl/ssl.pri? Any idea?
> >
> > Greets
> > Michael
> > _______________________________________________
> > Qt-interest mailing list
> > Qt-interest at trolltech.com
> > http://lists.trolltech.com/mailman/listinfo/qt-interest
>
More information about the Qt-interest-old
mailing list