Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. Required: Visual Studio 2015 or 2017 (or probably later works)
  2.  
  3. Setup
  4. 1. Clone/download OpenSSL 1.1.1 source to a folder
  5. 2. Download / install Perl (They recommend Active perl)
  6. I recommend using Chocolatey so for me: choco install activeperl
  7. 3. Ensure Perl is in the system path. (Choco appears to do this by default)
  8. 4. Download / install NASM
  9. I recommend using Chocolatey so for me: choco install nasm
  10. 5. Ensure NASM is in the system path. (For me the directory to add was C:\Program Files\NASM)
  11. 6. Duplicate the OpenSSL folder into one for x64 and one for x86
  12.  
  13. Building Debug/Release Static/Shared x64/x86
  14.  
  15. x86
  16. 1. Open a Visual Studio Build Tools Command Prompt (Start->All Programs->Visual Studio 20**->Visual Studio Tools->VC->x86 Native Tools Command Prompt for...)
  17. 2. cd to your OpenSSL x86 folder (you created in Setup.6)
  18. 3. Run: perl Configure VC-WIN32 (add no-shared if you just want a static build)
  19. 4. Run: nmake (this will take a bit)
  20. 5. Run: nmake test (this will take a bit too)
  21. 6. If everything went well, you have a binary in /apps and libs in the root of you x86 folder (both static and dynamic release)
  22. 7. Save off the built things you want to save (since they will be deleted in a moment)
  23. 8. Run: nmake clean
  24. 9: Run: perl Configure VC-WIN32 --debug (add no-shared if you just want a static build)
  25. 10. Run: nmake (this will take a bit)
  26. 11. Run: nmake test (this will take a bit too)
  27. 12. If everything went well, you have a binary in /apps and libs in the root of you x86 folder (both static and dynamic debug versions)
  28. 13. Save off the built things you want to save (I recommend putting them somewhere different from the release versions since they will have the same names)
  29.  
  30. For x64, follow the x86 steps except:
  31. 1. Replace x86 with x64 in: Steps 1,2,6,12
  32. 2. Replace VC-WIN32 with VC-WIN64A in steps 3 and 9
  33.  
  34. Note that there are (minor) differences in headers between x64 and x86 so you should save 2 include directories.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement