vs2013 mysql源码编译_vs2013编译zlib 1.2.8

原标题为【How to compile zLib 1.2.8 (WINAPI / WAPI / STDCALL version)】 来源于【http://www.tannerhelland.com/5076/compile-zlib-winapi-wapi-stdcall/】 摘录部分内容如下 【 compile zLib yourself: Extract the entire zLib file and navigate to t

原标题为【How to compile zLib 1.2.8 (WINAPI / WAPI / STDCALL version)】

来源于【http://www.tannerhelland.com/5076/compile-zlib-winapi-wapi-stdcall/】

摘录部分内容如下

compile zLib yourself:

Extract the entire zLib file and navigate to the /contrib/masmx86 folder. Open the “bld_ml32.bat” file in a text editor.

Add the “/safeseh” switch to both lines in that file (e.g. “ml /safeseh /coff /Zi /c /Flmatch686.lst match686.asm”). Then save and exit.

Navigate to the /contrib/vstudio/vc11/ folder. Open the zlibvc.sln file in your newly installed Visual Studio 2012 Express.

In the Solution Explorer (top-right by default), right-click “zlibstat” then select “Properties” at the bottom.

Go to Configuration Properties -> C/C++ -> Preprocessor, and in the Preprocessor Definitions line remove “ZLIB_WINAPI;” (don’t forget to remove the trailing semicolon).

Now, we need to fix a recently introduced problem that relies on Win8 functionality. In the Solution Explorer, navigate to zlibvc -> iowin32.c. Double-click to open the file.

Find the line of text that reads “#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)”. Change this line to “#if WINAPI_FAMILY_ONE_PARTITION(WINAPI_FAMILY_DESKTOP_APP, WINAPI_PARTITION_APP)”. (Thanks

to this link for this fix.)

zLib uses a Version number declaration that can cause the build process to fail. To fix this, go back to the Solution Explorer, then navigate to zlibvc -> zlibvc.def. Double-click to open.

Change the line that reads “VERSION 1.2.8″ to read “VERSION 1.28″.

Finally, go to the Build -> Configuration Manager menu and change the Active Solution Configuration to “Release”.

Exit that window and press F7 (or click the Build -> Build Solution menu). The project should successfully build.

You can find your newly compiled zlibwapi.dll file in the /contrib/vstudio/vc11/x86/ZlibDllRelease/ folder.

严格按照以上步骤可以编译成功,别轻视第9步

本文原创发布php中文网,转载请注明出处,感谢您的尊重!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
VS2013编译libcurl时,需要使用OpenSSL和zlib。libcurl是一个功能强大的开源网络库,能够实现跨平台的HTTP、FTP、SMTP等协议的数据传输。 OpenSSL是一个开源的加密库,提供了各种加密算法和安全协议的实现,可以用于SSL/TLS的加密和解密通信。在编译libcurl时,需要将OpenSSL的头文件和库文件加入到VS2013编译环境中。这样在编译libcurl时,可以使用OpenSSL提供的加密算法和安全协议进行网络通信的加密。 zlib是一个开源的数据压缩库,可以实现对数据的高效压缩和解压。在编译libcurl时,需要将zlib的头文件和库文件加入到VS2013编译环境中。这样在编译libcurl时,可以使用zlib提供的数据压缩和解压功能,提高数据传输的效率。 在编译过程中,应首先确保已正确安装了OpenSSL和zlib,并设置了相应的环境变量。然后,在VS2013中创建一个新的项目,将libcurl的源代码添加到项目中。接着,在项目属性中设置包含目录和库目录,指定OpenSSL和zlib的头文件和库文件的位置。 最后,进行编译和链接操作,生成libcurl的库文件和可执行文件。编译成功后,就可以在VS2013中使用libcurl的各种功能了。 总结来说,编译libcurl时需要使用OpenSSL和zlib,并确保已正确配置VS2013编译环境,包含相关的头文件和库文件。完成配置后,就可以在VS2013编译和使用libcurl库了。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值