Windows Curl SSL Version compilation

Source: Internet
Author: User
Tags openssl version

Compile Curl-ssl version hit a lot of pits, here to record. Hands-on testing, note version number!!!!!

1. Download curl-7.43.0 libssh2-1.3.0 openssl-1.0.0s ActivePerl5 zlib nasm

2. Compile OpenSSL, you can refer to this article at the time of compiling http://www.oschina.net/question/54100_138557

Compilation environment vs2010, OpenSSL version: openssl-1.0.0s (vs2010 compiled no problem, the rest of the version with vs2013 compile problems!!! High version will appear constructor what error )

VS2010 Command window into the OpenSSL directory, ms\32all.bat all compiled (if the use of vs2013 compilation will occur gethostbyname function problems, follow the prompts to define the macro or can not compile, can only be compiled with VS2010)

Wait for a lengthy process to compile successfully. The current directory below Out32 is what we need to compile it.

3. Compile libssh2-1.3.0, directly double-click the. dsw file, VS2010 automatically open the project, add the relevant files to the include (you can also set the header file path, more trouble, DLL Lib version is required, to add multiple times, Copying the header files directly into the include is very time-saving. Compiling is Libssh2.lib file and Libssh2.dll.

4. Go to the Projects directory, double-click Build-openssl.bat, and then go to directory CURL-7.43.0\PROJECTS\WINDOWS\VC12, double-click to open the project, which is used by vs2013 open. Copy the relevant library files to Lib for compilation. If you use vs2013, the "Linker tools error LNK2026 XXX module is unsafe for SAFESEH images" situation. Look at this link http://blog.csdn.net/zengraoli/article/details/11919307

can solve the problem.


Successful compilation took a day! Different version numbers appear in different pits!

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Windows Curl SSL Version compilation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.