青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

牽著老婆滿街逛

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

Building OpenSSL for Visual Studio

轉載自:http://developer.covenanteyes.com/building-openssl-for-visual-studio/

Building OpenSSL for Visual Studio on Windows is mostly straight-forward, but it has some quirks. I’ll document the results of my wrestling here so that future attempts will be less painful.

What you need

You need to install…

Setting up for the build

Unzip3 the OpenSSL source code into two different folders, one for the 32-bit build and one for the 64-bit build4. So, for example, you might end up with C:\openssl-src-32 and C:\openssl-src-64.

Building the 32-bit static libraries

  1. Open the Visual Studio Command Prompt (2010)5.
  2. cd to your OpenSSL source folder for 32-bit (e.g. cd C:\openssl-src-32).
  3. Run the following: 6
perl Configure VC-WIN32 --prefix=C:\Build-OpenSSL-VC-32
ms
\do_ms
nmake 
-f ms\nt.mak 
nmake 
-f ms\nt.mak install

Your outputs will be in C:\Build-OpenSSL-VC-32.

Building the 32-bit static libraries with debug symbols

These steps will embed the debug symbols directly into the .lib files. Don’t expect to see any .pdb files.

  1. Open the Visual Studio Command Prompt (2010).
  2. cd to your OpenSSL source folder for 32-bit (e.g. cd C:\openssl-src-32).
  3. Run the following:
    perl Configure debug-VC-WIN32 --prefix=C:\Build-OpenSSL-VC-32-dbg
    ms
    \do_ms
  4. In a text editor (like Notepad), open ms\nt.mak and replace all occurrences of /Zi with /Z7. There should be three replacements.7
  5. Run the following:
    nmake -f ms\nt.mak       
    nmake 
    -f ms\nt.mak install

Your outputs will be in C:\Build-OpenSSL-VC-32-dbg. Make sure you rename them to something likelibeay32-debug.lib and ssleay32-debug.lib.

Building the 64-bit static libraries

  1. Open the Visual Studio x64 Win64 Command Prompt (2010) (in the Start menu).
  2. cd to your OpenSSL source folder for 64-bit (e.g. cd C:\openssl-src-64).
  3. Run the following:
    perl Configure VC-WIN64A --prefix=C:\Build-OpenSSL-VC-64
    ms
    \do_win64a
    nmake 
    -f ms\nt.mak   
    nmake 
    -f ms\nt.mak install

Your outputs will be in C:\Build-OpenSSL-VC-64.

Note: The outputs of the 64-bit build are still named libeay32.lib and ssleay32.lib. You’ll have to rename them more sensibly yourself.

Building the 64-bit static libraries with debug symbols

These steps will embed the debug symbols directly into the .lib files. Don’t expect to see any .pdb files.

  1. Open the Visual Studio x64 Win64 Command Prompt (2010).
  2. cd to your OpenSSL source folder for 64-bit (e.g. cd C:\openssl-src-64).
  3. Run the following:
    perl Configure debug-VC-WIN64A --prefix=C:\Build-OpenSSL-VC-64-dbg
    ms
    \do_win64a
  4. In a text editor (like Notepad), open ms\nt.mak and replace all occurrences of /Zi with /Z7 except on the line starting with ASM. There should be two replacements. 8
  5. Run the following:
    nmake -f ms\nt.mak
    nmake 
    -f ms\nt.mak install

Your outputs will be in C:\Build-OpenSSL-VC-64-dbg. Make sure you rename them to something likelibeay64-debug.lib and ssleay64-debug.lib.

What not to do

I tried every method under the sun to get a Windows build of OpenSSL that would link against Visual Studio projects. I learned a great deal along the way. Here’s what I learned not to do:

  • Don’t blindly follow the Windows 32-bit/64-bit installation instructions provided in the OpenSSL source folder. Get guidance online.
  • Don’t build OpenSSL in Cygwin. It’s easy. It won’t link against Visual Studio.
  • Don’t build OpenSSL in MSYS or MinGW. It’s hard. It won’t link against Visual Studio.
  • Don’t try to use NASM like the Windows installation instructions mention. It’s not necessary for Visual Studio builds. (It only supports 32-bit anyway.)
  • Strawberry Perl doesn’t always work in these weird configurations. ActivePerl seemed more stable.
  • Don’t try to build 32-bit and 64-bit OpenSSL in the same folder. The first build will leave artifacts that will mess up the second build. (Running a clean isn’t enough, apparently.)
  • Don’t try to build 32-bit OpenSSL inside of Visual Studio’s 64-bit command prompt and vice versa. It doesn’t work.

References

These were very helpful places:

Footnotes:
1. Strawberry Perl has been less reliable historically, but I see the comments for success stories.
2. OpenSSL version 1.0.1c was the latest at the time of writing.
37-zip is good for unzipping .tar.gz files on Windows. It’s a two-step process.
4. OpenSSL’s build scripts are not clever enough to handle two different platform builds in sequence. Separate platform builds must start from scratch.
5. You can find it somewhere in the Start menu.
6. Using ms\\ntdll.mak will build the shared library instead.
7. The /Zi option works, but it’s hard to find the right .pdb file without specifying more options. For the sake of simplicity, the /Z7 option just embeds all the debug symbols into the .lib files. Read more here.
8. For the 64-bit build, Visual Studio uses MASM (ml64.exe) to compile assembly code. According to MASM’s documentation, the /Z7 option is not supported.

posted on 2016-06-16 18:23 楊粼波 閱讀(535) 評論(0)  編輯 收藏 引用


只有注冊用戶登錄后才能發表評論。
網站導航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <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>
            久久婷婷色综合| 国产精品久久99| 艳妇臀荡乳欲伦亚洲一区| 欧美v日韩v国产v| 女仆av观看一区| 欧美国产日本| 日韩午夜av| 亚洲一区免费| 久久福利毛片| 欧美sm重口味系列视频在线观看| 模特精品在线| 欧美日韩亚洲一区二区三区在线 | 欧美一区二区三区在线| 先锋影音国产精品| 另类欧美日韩国产在线| 亚洲国产天堂网精品网站| 免费高清在线一区| 亚洲精品国精品久久99热| 日韩午夜电影av| 欧美尤物一区| 欧美日韩另类丝袜其他| 国内外成人免费视频| 亚洲欧洲日本国产| 性欧美激情精品| 亚洲第一久久影院| 午夜精品免费视频| 欧美精品aa| 国产日韩欧美三区| 亚洲视频免费| 欧美大秀在线观看| 亚洲欧美激情四射在线日| 欧美成黄导航| 国语自产偷拍精品视频偷| 亚洲视频精品| 欧美大片在线看免费观看| 亚洲网友自拍| 欧美日韩成人综合| 久久一区二区三区av| 日韩特黄影片| 久久综合一区| 亚洲在线一区二区| 欧美黄色片免费观看| 韩曰欧美视频免费观看| 亚洲免费综合| 亚洲人成亚洲人成在线观看图片 | 久久免费黄色| 国产精品美女在线| 亚洲深夜福利视频| 亚洲国产日韩综合一区| 久久狠狠亚洲综合| 国产精品美女一区二区| av成人免费| 亚洲国产精品一区二区第四页av| 欧美一区二区三区成人| 国产精品自拍网站| 欧美一级成年大片在线观看| 亚洲精品日韩欧美| 欧美激情一区二区三区高清视频 | 亚洲欧美第一页| 欧美亚一区二区| 亚洲综合精品一区二区| 中文无字幕一区二区三区| 欧美日韩一区二区精品| 亚洲视频欧洲视频| 亚洲午夜精品久久| 国产精品尤物| 久久人人97超碰精品888 | 欧美性大战久久久久久久| 日韩网站在线| 99国内精品久久久久久久软件| 欧美日韩一区二区在线观看视频 | 欧美激情按摩在线| 欧美电影免费观看网站| 在线视频中文亚洲| 亚洲一二三区在线观看| 国产一区二区三区高清播放| 久久综合九色综合久99| 免费成人美女女| 夜夜嗨av一区二区三区| 中文高清一区| 国产在线日韩| 亚洲动漫精品| 国产精品高潮呻吟视频 | 一本久道久久综合狠狠爱| 国产精品国产三级国产普通话三级 | 久久久久久9999| 午夜伦理片一区| 在线观看日韩一区| 亚洲激情影院| 国产精品视频yy9099| 久久九九精品99国产精品| 久久亚洲私人国产精品va| 99国产精品久久久久老师| 亚洲淫性视频| 91久久久久久久久久久久久| 在线一区二区三区四区五区| 国产女主播一区二区| 欧美成人免费在线观看| 国产精品成人观看视频国产奇米| 久久这里只有| 国产精品进线69影院| 欧美成人一区在线| 国产精品视区| 亚洲人成毛片在线播放| 国产欧美日韩| 亚洲日本在线视频观看| 国内精品久久久久影院色| 91久久国产综合久久蜜月精品 | 欧美日韩高清一区| 久久精品最新地址| 国产精品va在线播放我和闺蜜| 久久资源在线| 国产精品免费在线| 亚洲三级色网| **欧美日韩vr在线| 午夜欧美精品| 亚洲自拍电影| 欧美激情1区2区| 欧美sm视频| 狠狠v欧美v日韩v亚洲ⅴ| 亚洲一区在线视频| 一本一本久久| 欧美国产另类| 欧美黄色成人网| 在线成人激情视频| 欧美主播一区二区三区| 午夜精品国产更新| 欧美性猛交xxxx乱大交退制版| 亚洲国产精品精华液2区45| 狠狠色综合日日| 久久国产精品99国产精| 欧美中文字幕久久| 国产欧美一区二区精品婷婷| 亚洲一区二区三区中文字幕| 亚洲一区二区三区免费视频| 欧美日韩亚洲视频| 一区二区三区视频观看| 亚洲专区欧美专区| 国产精品一级| 午夜精品久久久久久久久久久| 亚洲欧美日韩精品在线| 国产精品久久久久久久久久直播 | 伊人影院久久| 久久精品一区二区国产| 久久一二三四| 在线免费观看欧美| 蜜桃av久久久亚洲精品| 亚洲黄色在线看| 在线视频你懂得一区| 国产精品免费在线| 久久国产主播| 亚洲福利视频专区| 亚洲亚洲精品三区日韩精品在线视频 | 一本色道久久综合亚洲精品不卡 | 亚洲激情网站免费观看| 日韩午夜电影| 国产精品久久久久久久久久三级 | 欧美日韩国产首页在线观看| 一本色道婷婷久久欧美| 欧美影院精品一区| 18成人免费观看视频| 欧美另类综合| 午夜久久久久| 亚洲电影av| 性久久久久久久久久久久| 激情文学一区| 欧美日本亚洲| 校园春色综合网| 欧美激情精品久久久久久蜜臀 | 在线不卡免费欧美| 欧美三区不卡| 久久婷婷国产综合国色天香| 亚洲人成免费| 久久美女性网| 亚洲天堂网在线观看| 一区二区三区在线免费视频| 欧美精品一区二区高清在线观看| 亚洲综合99| 亚洲国产精品久久精品怡红院| 午夜精品久久久久久99热软件| 一区视频在线播放| 国产精品久久久久久久久搜平片 | 欧美一区二区三区四区高清| 亚洲激情第一区| 国产精品亚洲欧美| 欧美精品v日韩精品v国产精品| 欧美与欧洲交xxxx免费观看| 亚洲国产精品毛片| 久久久久九九视频| 亚洲欧美综合国产精品一区| 91久久精品网| 在线观看日韩www视频免费| 欧美亚州韩日在线看免费版国语版| 久久香蕉国产线看观看网| 亚洲午夜免费视频| 亚洲精品激情| 欧美国产三级| 免费观看成人| 久久免费高清视频| 久久精精品视频|