|
|
Home » Developing U++ » Documentation » Help Topic "Installing OpenSSL"
Help Topic "Installing OpenSSL" [message #34739] |
Fri, 09 December 2011 13:22  |
Wolfgang
Messages: 146 Registered: November 2011 Location: Germany
|
Experienced Member |
|
|
Hi, tried to install OpenSSL for AES en/decryption and wanted to follow the step by step guide out of the Help Topic "Installing OpenSSL" but it refers to openssl-0.9.8l and the lastest release is 1.0.0e. I think it wouldn't be bad to update the Help Topic.
I've installed for MSC9:
Downloads:
Extracted it to c:\temp\openssl-1.0.0e\
Now opened command shell (cmd):
cd C:\temp\openssl-1.0.0e\
perl Configure VC-WIN32 --prefix=c:/temp/openssl-bin/
cd C:\temp\openssl-1.0.0e\
%comspec% /k ""c:\Program Files\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat"" x86
cd C:\temp\openssl-1.0.0e\
ms\do_ms.bat
nmake -f ms\nt.mak
nmake -f ms\ntdll.mak
( http://www.ultimatepp.org/forum/index.php?t=msg&goto=256 17&#msg_25617)
Hope it helps!
best regards
Wolfgang
|
|
|
Re: Help Topic "Installing OpenSSL" [message #38637 is a reply to message #34739] |
Mon, 31 December 2012 14:25   |
lectus
Messages: 329 Registered: September 2006 Location: Brazil
|
Senior Member |
|
|
Hello!
Thanks for this thread. To use SMTP with U++, OpenSSL is required.
I built the latest version (1.0.1c) following this method:
0) Install VC++ 2012 Express (you should already have it if you use U++)
1) Install ActivePerl.
2) Download https://www.openssl.org/source/openssl-1.0.1c.tar.gz
3) Extract openssl-1.0.1c.tar.gz with 7zip to C:\Temp\openssl-1.0.1c. Create a folder named C:\Temp\openssl-bin.
4) Open Start/Microsoft Visual Studio 2012/Visual Studio Tools/VS2012 x86 Native Tools Command Prompt (or x64 if you want it)
5) Type the commands:
Quote: | cd C:\Temp\openssl-1.0.1c
perl Configure VC-WIN32 --prefix=c:/temp/openssl-bin/
ms/do_nt.bat
nmake -f ms/nt.mak
|
It seems the the openssl-bin folder was ignored despite the --prefix command. Anyway it doesn't matter.
6) Wait for it to build. This the static lib. To build as DLL you'd change ms/nt to ms/ntdll.
7) Create a MyApps/OpenSSL folder.
Copy C:\Temp\openssl-1.0.1c\inc32 to C:\MyApps\OpenSSL as C:\MyApps\OpenSSL\openssl
9) Copy C:\Temp\openssl-1.0.1c\out32 to C:\MyApps\OpenSSL as C:\MyApps\OpenSSL\lib
10) From the command prompt type the following commands:
Quote: | cd C:\MyApps\OpenSSL\lib
del *.exe *.pdb
xcopy libeay32.lib libeay32mtd.lib
xcopy ssleay32.lib ssleay32mtd.lib
|
This will delete all exe and pdb files leaving only the required lib files. This will also create the debug libraries (I'm too lazy to build one and this works fine).
11) Open TheIde with the SMTP example. Go to Setup/Build Methods, select your MSC11 compiler configuration, add these paths:
INCLUDE: C:\MyApps\OpenSSL
LIB: C:\MyApps\OpenSSL\lib
12) Hit Ctrl-F5 to build and run the SMTP example. Test it. It works.
[Updated on: Mon, 31 December 2012 14:33] Report message to a moderator
|
|
|
Re: Help Topic "Installing OpenSSL" [message #39228 is a reply to message #38637] |
Sat, 02 March 2013 08:09   |
 |
deep
Messages: 266 Registered: July 2011 Location: Bangalore
|
Experienced Member |
|
|
Hello,
I recently installed OpenSSL 1.01e from
http://slproweb.com/products/Win32OpenSSL.html
1. Follow the instructions. It is Installable file.
2. Install Visual C++ 2008 Redistributables. Use links from the same page. Select 32bit/64bit VC++ 2008 Redistributable as per your system.
I installed OpenSSL-32bit. On Win 7 64bit. VC++redist 64bit.
3. Add include/lib paths in U++ setup. I installed OpenSSL in "C:\OpenSSL-Win32\" folder
U++ settings
Setup->Build Methods.
For MinGW
C:\OpenSSL-Win32\lib\MinGW -- lib folder path
C:\OpenSSL-Win32\include -- Include folder path
For MSC10/MSC12/MSC12-64
C:\OpenSSL-Win32\lib\VC -- lib folder path
C:\OpenSSL-Win32\include -- Include folder path
Project->Package organizer
[B]For MSC[/B]
Select AESStream -> Libraries section
When MSC -- libeay32.lib gdi32.lib
[B]For MinGW[/B]
When WIN32 !MSC -- libeay32.a
With this setup I could compile and run Bazaar->DeEncrypter with MSC10 and MINGW both.
Warm Regards
Deepak
[Updated on: Wed, 24 September 2014 14:51] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Fri Apr 25 18:59:29 CEST 2025
Total time taken to generate the page: 0.04822 seconds
|
|
|