Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » Documentation » Help Topic "Installing OpenSSL"
Re: Help Topic "Installing OpenSSL" [message #38637 is a reply to message #34739] Mon, 31 December 2012 14:25 Go to previous messageGo to previous message
lectus is currently offline  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.

Cool 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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: translations
Next Topic: Fixes to "Callback macros" documentation
Goto Forum:
  


Current Time: Fri May 17 20:16:19 CEST 2024

Total time taken to generate the page: 0.02297 seconds