Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
Windows/ | 07-Sep-2024 | - | 24,720 | 24,700 | ||
README.md | D | 07-Sep-2024 | 5.9 KiB | 161 | 118 | |
build-openssl.bat | D | 07-Sep-2024 | 22.2 KiB | 740 | 639 | |
build-wolfssl.bat | D | 07-Sep-2024 | 12.2 KiB | 430 | 369 | |
checksrc.bat | D | 07-Sep-2024 | 7.7 KiB | 226 | 200 | |
generate.bat | D | 07-Sep-2024 | 12.9 KiB | 425 | 371 | |
wolfssl_options.h | D | 07-Sep-2024 | 7.1 KiB | 309 | 129 | |
wolfssl_override.props | D | 07-Sep-2024 | 2 KiB | 41 | 19 |
README.md
1<!-- 2Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 3 4SPDX-License-Identifier: curl 5--> 6 7Building via IDE Project Files 8============================== 9 10This document describes how to compile, build and install curl and libcurl 11from sources using an IDE based development tool such as Visual Studio. 12 13Project files are available for several different Visual C++ versions. The 14following directory structure has been used to cater for this: 15 16 somedirectory\ 17 |_curl 18 |_projects 19 |_<platform> 20 |_<ide> 21 |_lib 22 |_src 23 24This structure allows for side-by-side compilation of curl on the same machine 25using different versions of a given compiler (for example VC10 and VC12) and 26allows for your own application or product to be compiled against those 27variants of libcurl for example. 28 29Note: Typically this side-by-side compilation is generally only required when 30a library is being compiled against dynamic runtime libraries. 31 32## Dependencies 33 34The projects files also support build configurations that require third party 35dependencies such as OpenSSL, wolfSSL and libssh2. If you wish to support 36these, you will also need to download and compile those libraries as well. 37 38To support compilation of these libraries using different versions of 39compilers, the following directory structure has been used for both the output 40of curl and libcurl as well as these dependencies. 41 42 somedirectory\ 43 |_curl 44 | |_ build 45 | |_<architecture> 46 | |_<ide> 47 | |_<configuration> 48 | |_lib 49 | |_src 50 | 51 |_openssl 52 | |_ build 53 | |_<architecture> 54 | |_VC <version> 55 | |_<configuration> 56 | 57 |_libssh2 58 |_ build 59 |_<architecture> 60 |_VC <version> 61 |_<configuration> 62 63As OpenSSL and wolfSSL don't support side-by-side compilation when using 64different versions of Visual Studio, build helper batch files have been 65provided to assist with this. Please run `build-openssl -help` and/or 66`build-wolfssl -help` for usage details. 67 68## Building with Visual C++ 69 70To build with VC++, you will of course have to first install VC++ which is 71part of Visual Studio. 72 73Once you have VC++ installed you should launch the application and open one of 74the solution or workspace files. The VC directory names are based on the 75version of Visual C++ that you will be using. Each version of Visual Studio 76has a default version of Visual C++. We offer these versions: 77 78 - VC10 (Visual Studio 2010 Version 10.0) 79 - VC11 (Visual Studio 2012 Version 11.0) 80 - VC12 (Visual Studio 2013 Version 12.0) 81 - VC14 (Visual Studio 2015 Version 14.0) 82 - VC14.10 (Visual Studio 2017 Version 15.0) 83 - VC14.30 (Visual Studio 2022 Version 17.0) 84 85Separate solutions are provided for both libcurl and the curl command line 86tool as well as a solution that includes both projects. libcurl.sln, curl.sln 87and curl-all.sln, respectively. We recommend using curl-all.sln to build both 88projects. 89 90For example, if you are using Visual Studio 2022 then you should be able to 91use `VC14.30\curl-all.sln` to build curl and libcurl. 92 93## Running DLL based configurations 94 95If you are a developer and plan to run the curl tool from Visual Studio with 96any third-party libraries (such as OpenSSL, wolfSSL or LibSSH2) then you will 97need to add the search path of these DLLs to the configuration's PATH 98environment. To do that: 99 100 1. Open the 'curl-all.sln' or 'curl.sln' solutions 101 2. Right-click on the 'curl' project and select Properties 102 3. Navigate to 'Configuration Properties > Debugging > Environment' 103 4. Add `PATH='Path to DLL';C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem` 104 105... where 'Path to DLL` is the configuration specific path. For example the 106following configurations in Visual Studio 2010 might be: 107 108DLL Debug - DLL OpenSSL (Win32): 109 110 PATH=..\..\..\..\..\openssl\build\Win32\VC10\DLL Debug;C:\Windows\system32; 111 C:\Windows;C:\Windows\System32\Wbem 112 113DLL Debug - DLL OpenSSL (x64): 114 115 PATH=..\..\..\..\..\openssl\build\Win64\VC10\DLL Debug;C:\Windows\system32; 116 C:\Windows;C:\Windows\System32\Wbem 117 118DLL Debug - DLL wolfSSL (Win32): 119 120 PATH=..\..\..\..\..\wolfssl\build\Win32\VC10\DLL Debug;C:\Windows\system32; 121 C:\Windows;C:\Windows\System32\Wbem 122 123DLL Debug - DLL wolfSSL (x64): 124 125 PATH=..\..\..\..\..\wolfssl\build\Win64\VC10\DLL Debug;C:\Windows\system32; 126 C:\Windows;C:\Windows\System32\Wbem 127 128If you are using a configuration that uses multiple third-party library DLLs 129(such as DLL Debug - DLL OpenSSL - DLL LibSSH2) then 'Path to DLL' will need 130to contain the path to both of these. 131 132## Notes 133 134The following keywords have been used in the directory hierarchy: 135 136 - `<platform>` - The platform (For example: Windows) 137 - `<ide>` - The IDE (For example: VC10) 138 - `<architecture>` - The platform architecture (For example: Win32, Win64) 139 - `<configuration>` - The target configuration (For example: DLL Debug, LIB 140 Release - LIB OpenSSL) 141 142If you are using the source code from the git repository, rather than a 143release archive or nightly build, you will need to generate the project 144files. Please run "generate -help" for usage details. 145 146Should you wish to help out with some of the items on the TODO list, or find 147bugs in the project files that need correcting, and would like to submit 148updated files back then please note that, whilst the solution files can be 149edited directly, the templates for the project files (which are stored in the 150git repository) will need to be modified rather than the generated project 151files that Visual Studio uses. 152 153## Legacy Windows and SSL 154 155Some of the project configurations allow the use of Schannel, the native SSL 156library in Windows which forms part of Windows SSPI. However, Schannel in 157Windows <= XP is unable to connect to servers that no longer support the 158legacy handshakes and algorithms used by those versions. If you will be using 159curl in one of those earlier versions of Windows you should choose another SSL 160backend such as OpenSSL. 161