| Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 5 | |
I'm using Qt 4.3.0 with Visual Studio 2002 on Windows XP, in the process of migrating an application from Qt 3 to Qt 4. I get the following errors while making a QHttp get request: Error:QtWarningMsg: QSslSocket: cannot find ssleay32 library: QLibrary::load_sys: Cannot load ssleay32 (The specified module could not be found.) QSslSocketBackendPrivate::ensureInitialized: unable to resolve all symbols I'm aware that these are coming from qsslsocket_openssl.cpp, but I don't really understand why I'm getting them. Before I continue with debugging and tracking down the source of the problem -- any ideas? I've found some threads in qt-interest that mention errors like these, but they don't really explain why the errors are happening in the first place. I can run the Qt network/http example without any problems. The following is in my .pro file, by the way: QT += network \ qt3support \ xml Sam Dutton SAM DUTTON SENIOR SITE DEVELOPER 200 GRAY'S INN ROAD LONDON WC1X 8XZ UNITED KINGDOM T +44 (0)20 7430 4496 F E SAM.DUTTON@xxxxxxxxx WWW.ITN.CO.UK Please Note: Any views or opinions are solely those of the author and do not necessarily represent those of Independent Television News Limited unless specifically stated. This email and any files attached are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error, please notify postmaster@xxxxxxxxx Please note that to ensure regulatory compliance and for the protection of our clients and business, we may monitor and read messages sent to and from our systems. Thank You. -- [ signature omitted ]
On Saturday 23 June 2007 03:17, Dutton, Sam wrote: > I'm using Qt 4.3.0 with Visual Studio 2002 on Windows XP, in the process > of migrating an application from Qt 3 to Qt 4. > > I get the following errors while making a QHttp get request: > > Error:QtWarningMsg: QSslSocket: cannot find ssleay32 library: > QLibrary::load_sys: > Cannot load ssleay32 (The specified module could not be found.) > QSslSocketBackendPrivate::ensureInitialized: unable to resolve all > symbols > > I'm aware that these are coming from qsslsocket_openssl.cpp, but I don't > really understand why I'm getting them. They are telling you that QtNetwork is built to use OpenSSL (through QSslSocket and friends) but that the necessary library (ssleay32) can't be found. I'm not sure I understand how you built your Qt 4.3.0, but if you used a binary and don't have OpenSSL installed, that could explain it. Otherwise, I can only suggest you need to change some Windows setting so Qt can find the right library. Can't suggest how you might do that though. Brad
Attachment:
Attachment:
pgpxD8QO8OO0T.pgp
Description: PGP signature
Message 3 in thread
>> I'm not sure I understand how you built your Qt 4.3.0, but if you
used a binary and don't have OpenSSL installed, that could explain it <<
I installed from the binary.
I haven't installed OpenSSL, but I'm puzzled why the network/http
example runs without error whereas my app (apparently) needs ssleay32.
Sam
SAM DUTTON
SENIOR SITE DEVELOPER
200 GRAY'S INN ROAD
LONDON
WC1X 8XZ
UNITED KINGDOM
T +44 (0)20 7430 4496
F
E SAM.DUTTON@xxxxxxxxx
WWW.ITN.CO.UK
-----Original Message-----
From: Brad Hards [mailto:bradh@xxxxxxxxxxxxx]
Sent: Monday 25 June 2007 09:21
To: qt-interest@xxxxxxxxxxxxx
Cc: Dutton, Sam
Subject: Re: QSslSocket errors while using QHttp subclass
On Saturday 23 June 2007 03:17, Dutton, Sam wrote:
> I'm using Qt 4.3.0 with Visual Studio 2002 on Windows XP, in the
> process of migrating an application from Qt 3 to Qt 4.
>
> I get the following errors while making a QHttp get request:
>
> Error:QtWarningMsg: QSslSocket: cannot find ssleay32 library:
> QLibrary::load_sys:
> Cannot load ssleay32 (The specified module could not be found.)
> QSslSocketBackendPrivate::ensureInitialized: unable to resolve all
> symbols
>
> I'm aware that these are coming from qsslsocket_openssl.cpp, but I
> don't really understand why I'm getting them.
They are telling you that QtNetwork is built to use OpenSSL (through
QSslSocket and friends) but that the necessary library (ssleay32) can't
be found.
I'm not sure I understand how you built your Qt 4.3.0, but if you used a
binary and don't have OpenSSL installed, that could explain it.
Otherwise, I can only suggest you need to change some Windows setting so
Qt can find the right library. Can't suggest how you might do that
though.
Brad
Please Note:
Any views or opinions are solely those of the author and do not necessarily represent
those of Independent Television News Limited unless specifically stated.
This email and any files attached are confidential and intended solely for the use of the individual
or entity to which they are addressed.
If you have received this email in error, please notify postmaster@xxxxxxxxx
Please note that to ensure regulatory compliance and for the protection of our clients and business,
we may monitor and read messages sent to and from our systems.
Thank You.
--
[ signature omitted ]
Message 4 in thread
Hi,
> I installed from the binary.
>
> I haven't installed OpenSSL, but I'm puzzled why the network/http
> example runs without error whereas my app (apparently) needs ssleay32.
Maybe your app attempts to use HTTPS, not HTTP. This could be caused either
explicitly by your code or implicitly by Qt code you're calling. It's hard to
tell more without an example that reproduces the problem.
--
[ signature omitted ]