Trolltech Home | Qt-solutions Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-solutions Archive, July 2006
Visual Studio, OpenSSL QTsslSocket


Message 1 in thread

Is anyone using Visual Studio.Net 2003 and the QTsslSocket solution and
openssl?

I cant seem to get the right version of the ssleay32.lib into the visual
studio folders.

I tried to build the source, but had to download perl and then compile
from the command line and the perl scripts came up with errors.

HELP!!!!

Charley Burns

--
 [ signature omitted ] 

Message 2 in thread

Charley Burns wrote:
> Is anyone using Visual Studio.Net 2003 and the QTsslSocket solution and
> openssl?
> 
> I cant seem to get the right version of the ssleay32.lib into the visual
> studio folders.
> 
> I tried to build the source, but had to download perl and then compile
> from the command line and the perl scripts came up with errors.

Hi,

We're doing it like this:

** Perl

Install ActivePerl 5.8 (latest MSI package from ActiveState). Make sure it's
in the path. (Other Perls would probably work as well, but I can't say I've
tried).


** OpenSSL debug build (for Qt built in debug mode)

Extract the OpenSSL source into c:\libs\vc71-qt33-debug\openssl. Go into that
directory. Edit util\pl\VC-32.pl so that the "/MD" flag in $cflags becomes
"/MDd". (Note that there is a code block to amend $cflags to use /MDd if
$debug is set, but that doesn't work with this build process).

Then run:

   C:\libs\vc71-qt33-debug\openssl>perl Configure VC-WIN32

   C:\libs\vc71-qt33-debug\openssl>ms\do_masm.bat

   C:\libs\vc71-qt33-debug\openssl>nmake -f ms\ntdll.mak


** OpenSSL release build

Repeat the entire procedure from scratch (ie fresh extraction of the TAR) in
c:\libs\vc71-qt33-release\openssl, but this time don't edit util\pl\VC-32.pl.


** qtsslsocket build

Make sure that the following are in the .pri file for qtsslsocket, or that you
otherwise enable these paths:

OPENSSL_PATH = <<<path to c:\libs\....\openssl>>>
win32 {
          INCLUDEPATH += $${OPENSSL_PATH}/inc32
          LIBS += -L$${OPENSSL_PATH}/out32dll libeay32.lib ssleay32.lib
}

-- 
 [ signature omitted ] 

Message 3 in thread

good point john, here's the gory detail:
 
I am on QT 4.0.1 and QTSolutions  qtsslsocket-2.4-commercial, Visual
Studio .NET 2003, Integration Package.
 
I have downloaded and installed the OpenSSL binaries and per the
instructions that came with them, copied the OpenSSL\lib\VC\*.* to the
ProgramFiles\Microsoft Visual Studio >NET 2003\SDK\V1.1\lib folder.
 
I unzipped the qtsslsocket-2.4-commercial package under the C:\QT\4.0.1
folder.
 
I used the Visual Studio QT menu "Open Solution from .pro file" and used
Examples\Server\server.pro
 
I then did a "rebuild all".
 
The program compiled fine but I got a link error "LNK1181: cannot open
input file 'ssleay32.lib'
 
I searched for ssleay32.lib and found it under the openssl\lib\builder5
(not mentioned in the open ssl installation instructions). But i copied
the file ssleay32.lib to the Visual studio folder with the other
libraries.
 
Now when I attempt to build i get the message: "LNK1136: invalid or
corrupt file".
 
What do i need to do?
 
I also tried to build the open ssl source but i got nowhere trying to
follow the instructions. some env variables were not set and there were
no instructions on what to set them to. Luckily I found the binaries,
but now I can't link.
 
Help!!!
 
Thanks in advance,
 
Charley

-----Original Message-----
From: John Vilburn 
Sent: Saturday, July 29, 2006 10:44 PM
To: Charley Burns
Subject: Re: Visual Studio, OpenSSL QTsslSocket


Charley,

I was using QtSslSocket, but had too many instances where it would not
work 
on my customer's machines. I have switched to using CurlLib, which
handles 
everything so much cleaner. I still had to compile openssl for that, but

that was not too big a problem. Perhaps if you posted the error
messages, 
people could be of more help.

Aloha,
John

----- Original Message ----- 
From: "Charley Burns" <CharleyBurns@xxxxxxxxxxxxxxxxxxxx>
To: <qt-solutions@xxxxxxxxxxxxx>
Sent: Saturday, July 29, 2006 4:58 PM
Subject: Visual Studio, OpenSSL QTsslSocket


> Is anyone using Visual Studio.Net 2003 and the QTsslSocket solution
and
> openssl?
>
> I cant seem to get the right version of the ssleay32.lib into the
visual
> studio folders.
>
> I tried to build the source, but had to download perl and then compile
> from the command line and the perl scripts came up with errors.
>
> HELP!!!!
>
> Charley Burns
>
> --
> To unsubscribe - send "unsubscribe" in the subject to 
> qt-solutions-request@xxxxxxxxxxxxx 


--
 [ signature omitted ]