compile openssl on windows

1. download SSL http://www.cnblogs.com/sliencer/admin/ftp://ftp.openssl.org/snapshot/openssl-1.0.2-stable-SNAP-20120920.tar.gz

2. unpack to a folder

3. download nasm from http://www.nasm.us/pub/nasm/releasebuilds/2.10.05/win32/

   based on instructions of INSTALL.W32 under SSL

4. put nasm to PATH : set path=%PATH%; x:\temp\nasm-2.10.05

5. Perl already installed and in path, use for %i in (perl.exe) do echo %~$PATH:i to verify the location of perl

6. create an folder as the installation folder of OpenSSL, like x:\openssl_inst

7. run: perl Configure VC-WIN32 --prefix=x:\openssl_inst

8. run ms\do_nasm.bat

    Here: an error reported, I googled and found a solution at https://groups.google.com/forum/?fromgroups#!topic/mailing.openssl.users/QqjyJvH8J58

    , just add a line  

        s/\r$//; #remove carriage return too!

      to mk1mf.pl, line 331, before "($key,$val)=/^([^=]+)=(.*)/;"

9. run ms\do_nasm.bat again ==> no error or warning reported

10. run nmake -f ms\ntdll.mak to make the binaries

11. run nmake -f ms\ntdll.mak test to do some tests, (errors found said that some file missing, I simply igore them :)

12. run name -f ms\ntdll.mak intall ==> to do the installation

13. end

 

btw, there are some other mak files under ms\ folder, which is also generated using perl, I didn't test it yet.

 


 

posted on 2012-09-20 14:43  learner  阅读(321)  评论(0编辑  收藏  举报

导航