• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            牽著老婆滿街逛

            嚴(yán)以律己,寬以待人. 三思而后行.
            GMail/GTalk: yanglinbo#google.com;
            MSN/Email: tx7do#yahoo.com.cn;
            QQ: 3 0 3 3 9 6 9 2 0 .

            Building OpenSSL with Visual Studio

            轉(zhuǎn)載自:http://p-nand-q.com/programming/windows/building_openssl_with_visual_studio_2013.html

            Building OpenSSL with Visual Studio

            New:

            • Now supports both the 1.0.1 and 1.0.2 branch
            • Now supports Visual Studio 2010, 2013 and 2015
            • Now supports both static and dynamic libraries

            Downloads

            I provide downloads for Visual Studio 2010 and 2015. I had to remove my 2013 installation due to space constraints, but the build files are still there so you can do it, too.

            VersionVisual Studio 2010Visual Studio 2015
            OpenSSL 1.0.2d32-Bit Release DLL32-Bit Release DLL
             32-Bit Debug DLL32-Bit Debug DLL
             32-Bit Release Static Library32-Bit Release Static Library
             32-Bit Debug Static Library32-Bit Debug Static Library
             64-Bit Release DLL64-Bit Release DLL
             64-Bit Debug DLL64-Bit Debug DLL
             64-Bit Release Static Library64-Bit Release Static Library
             64-Bit Debug Static Library64-Bit Debug Static Library
            OpenSSL 1.0.1p32-Bit Release DLL32-Bit Release DLL
             32-Bit Debug DLL32-Bit Debug DLL
             32-Bit Release Static Library32-Bit Release Static Library [broken]
             32-Bit Debug Static Library32-Bit Debug Static Library [broken]
             64-Bit Release DLL64-Bit Release DLL
             64-Bit Debug DLL64-Bit Debug DLL
             64-Bit Release Static Library64-Bit Release Static Library [broken]
             64-Bit Debug Static Library64-Bit Debug Static Library [broken]

            Building OpenSSL automatically

            Because the process of building OpenSSL is time consuming and error prone, I wrote a couple of batch scripts that simplify the process significantly. You can download them here. Inside, you will find three batch files:

            • rebuild_openssl_vs2010.cmd for use with Visual Studio 2010
            • rebuild_openssl_vs2013.cmd for use with Visual Studio 2013
            • rebuild_openssl_vs2015.cmd for use with Visual Studio 2015

            Prerequisites

            • The script assumes you are on Windows.
            • The script assumes you have Visual Studio 2010, 2013 or 2015 installed in all the usual places. Important: If you have a different installation folder, your mileage may vary
            • The script assumes you have downloaded an OpenSSL tarball, like this one.
            • The script assumes you have Python (2.7 or 3.x) installed and on your PATH
            • The script assumes you have 7-zip installed (doesn't need to be on your PATH)
            • Choose the script you want to use and edit it. For example, let's take a look at the top of rebuild_openssl_vs2015.cmd:
              T:
              set OPENSSL_VERSION=1.0.1p
              set SEVENZIP="C:\Program Files\7-Zip\7z.exe"
              set VS2015="C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\vcvars32.bat"
              set VS2015_AMD64="C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\vcvars64.bat"
              
              so it is pretty easy to see: you must enter the OpenSSL version manually, the rest should have sensible defaults...
            • Note: The script uses the SUBST T:\ drive for building OpenSSL.

            Building the OpenSSL binaries

            • Place the tar.gz file (not the unpacked .tar) in the root of T:\
            • Double-click on one of the rebuild_openssl-vs*.cmd.

            That's it, it will do all the hard work for you and present nicely packaged binaries. Great fun!

            Building OpenSSL manually

            OK, so you don't trust me. Right. Well, here is how you can do it manually.... Note: This article wouldn't have been possible without the invaluable help of this article. However, it was obviously not built on a Windows 8 machine, and it didn't include any binaries. So this article follows the same basic structure, but it has some important differences:

            • The instructions default to the DLL build
              Why? because that is the one used by Python. And because I was rebuilding Python, I was rebuilding OpenSSL in the first place. So there.
            • Debug build uses .PDBs

            Prerequisites

            • You need Visual Studio 2010, 2013 or 2015.
            • You need to install Perl. I used ActivePerl 5.16.3 for Windows (x86).
            • You need the OpenSSL sourcecode. In the following, both the 1.0.1 and 1.0.2 branches are supported.
            • Unzip the sourcecode.
            • Create two different copies of the sourcecode. I am going to follow the conventions of the original article and create T:\openssl-src-32 and T:\openssl-src-64.
            • You need a development prompt. This varies based on your compiler:
              • Visual Studio 2010, 32-bit: Open Visual Studio Command Prompt (2010)
              • Visual Studio 2010, 64-bit: Open Visual Studio x64 Win64 Command Prompt (2010)
              • Visual Studio 2013, 32-bit: Open CMD.EXE and run C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\vcvars32.bat
              • Visual Studio 2013, 64-bit: Open CMD.EXE and run C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\vcvars64.bat
              • Visual Studio 2015, 32-bit: Open CMD.EXE and run C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\vcvars32.bat
              • Visual Studio 2015, 64-bit: Open CMD.EXE and run C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\vcvars64.bat

            Building the 32-bit Release DLL

            • Change to the source directory, for example T:\openssl-src-32
            • Run perl Configure VC-WIN32 --prefix=T:\Build-OpenSSL-VC32-Release-DLL. This will make T:\Build-OpenSSL-VC32-Release-DLLyour output directory; it should be fairly obvious how you can change that.
            • Run ms\do_ms
            • If you are on the 1.0.2 branch, you must do the following: Run ms\do_nasm.
              This step is not necessary if you are on 1.0.1
            • Run nmake -f ms\ntdll.mak
            • Run nmake -f ms\ntdll.mak install

            Building the 32-bit Debug DLL

            • Change to the source directory, for example T:\openssl-src-32
            • Run perl Configure debug-VC-WIN32 --prefix=T:\Build-OpenSSL-VC32-Debug-DLL
            • Run ms\do_ms
            • If you are on the 1.0.2 branch, you must do the following: Run ms\do_nasm.
              This step is not necessary if you are on 1.0.1
            • Run nmake -f ms\ntdll.mak
            • Run nmake -f ms\ntdll.mak install

            Building the 32-bit Release Static Library

            • Change to the source directory, for example T:\openssl-src-32
            • Run perl Configure VC-WIN32 --prefix=T:\Build-OpenSSL-VC32-Release-DLL. This will make T:\Build-OpenSSL-VC32-Release-DLLyour output directory; it should be fairly obvious how you can change that.
            • Run ms\do_ms
            • If you are on the 1.0.2 branch, you must do the following: Run ms\do_nasm.
              This step is not necessary if you are on 1.0.1
            • Run nmake -f ms\nt.mak
            • Run nmake -f ms\nt.mak install

            Building the 32-bit Debug Static Library

            • Change to the source directory, for example T:\openssl-src-32
            • Run perl Configure debug-VC-WIN32 --prefix=T:\Build-OpenSSL-VC32-Debug-DLL
            • Run ms\do_ms
            • If you are on the 1.0.2 branch, you must do the following: Run ms\do_nasm.
              This step is not necessary if you are on 1.0.1
            • Run nmake -f ms\nt.mak
            • Run nmake -f ms\nt.mak install

            Building the 64-bit Release DLL

            • Change to the source directory, for example T:\openssl-src-64
            • Run perl Configure VC-WIN64A --prefix=T:\Build-OpenSSL-VC64-Release-DLL. This will make T:\Build-OpenSSL-VC64-Release-DLL your output directory; it should be fairly obvious how you can change that.
            • Run ms\do_win64a
            • Run nmake -f ms\ntdll.mak
            • Run nmake -f ms\ntdll.mak install

            Building the 64-bit Debug DLL

            • Change to the source directory, for example T:\openssl-src-64
            • Run perl Configure debug-VC-WIN64A --prefix=T:\Build-OpenSSL-VC64-Debug-DLL
            • Run ms\do_win64a
            • Run nmake -f ms\ntdll.mak
            • Run nmake -f ms\ntdll.mak install

            Building the 64-bit Release Static Library

            • Change to the source directory, for example T:\openssl-src-32
            • Run perl Configure VC-WIN64A --prefix=T:\Build-OpenSSL-VC64-Release-Static. This will make T:\Build-OpenSSL-VC64-Release-Static your output directory; it should be fairly obvious how you can change that.
            • Run ms\do_win64a
            • Run nmake -f ms\nt.mak
            • Run nmake -f ms\nt.mak install

            Building the 64-bit Debug Static Library

            • Change to the source directory, for example T:\openssl-src-64
            • Run perl Configure debug-VC-WIN64A --prefix=T:\Build-OpenSSL-VC64-Debug-DLL
            • Run ms\do_win64a
            • Run nmake -f ms\nt.mak
            • Run nmake -f ms\nt.mak install

            FAQ

            Why did I need to create two different copies of the sourcecode

            Because the OpenSSL build scripts will use the folder outdll32 for both the 32-bit and the 64-bit output, so there is no easy way to distinguish both builds.


            GK, December 12, 2015

            Note: Special thanks to Alex (see https://github.com/CpServiceSpb/OpenSSLOcsp) for pointing out some mistakes in the documentation of the 64-bit build. Should be fine now.

            posted on 2016-06-16 19:06 楊粼波 閱讀(599) 評(píng)論(0)  編輯 收藏 引用

            午夜精品久久久内射近拍高清| 欧美日韩精品久久免费| 三级韩国一区久久二区综合| 久久亚洲国产最新网站| 99国产欧美精品久久久蜜芽| 无码任你躁久久久久久| 久久91精品久久91综合| 精品久久久久久久久免费影院| 91久久精品视频| 无遮挡粉嫩小泬久久久久久久| 日本亚洲色大成网站WWW久久| 国产精品天天影视久久综合网| 国产精品久久久久久久人人看| 国产午夜电影久久| 国产精品久久久久久久久| 亚洲国产成人精品久久久国产成人一区二区三区综 | 婷婷久久综合九色综合九七| 精品久久久久久久久午夜福利| 久久久高清免费视频| 久久久免费观成人影院| 国产精品九九久久精品女同亚洲欧美日韩综合区 | 日韩人妻无码精品久久久不卡| 欧美一级久久久久久久大| 国产成人久久精品麻豆一区| 99久久国产综合精品麻豆| 色欲综合久久躁天天躁蜜桃| 久久综合亚洲色一区二区三区| 青青久久精品国产免费看| 精品久久久久久国产免费了| 免费观看久久精彩视频| 国产成人久久激情91| 99精品久久精品| 国产精品久久久久久久久| 久久精品国产亚洲AV高清热| 久久无码人妻一区二区三区| 久久精品国产亚洲AV高清热 | 久久精品人妻中文系列| 国产精品久久久久久五月尺| 久久香综合精品久久伊人| 国产美女亚洲精品久久久综合| 亚洲中文字幕久久精品无码APP|