~ubuntu-branches/ubuntu/saucy/curl/saucy-201307251546

« back to all changes in this revision

Viewing changes to winbuild/BUILD.WINDOWS.txt

  • Committer: Bazaar Package Importer
  • Author(s): Ramakrishnan Muthukrishnan
  • Date: 2011-02-28 19:35:36 UTC
  • mto: (3.6.1 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 47.
  • Revision ID: james.westby@ubuntu.com-20110228193536-p3a9jawxxofcsz7o
Tags: upstream-7.21.4
ImportĀ upstreamĀ versionĀ 7.21.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Building with Visual C++, prerequises
 
2
=====================================
 
3
   This document describes how to compile, build and install curl and libcurl
 
4
   from sources using the Visual C++ build tool. To build with VC++, you will
 
5
   of course have to first install VC++. The minimum required version of
 
6
   VC is 6 (part of Visual Studio 6). However using a more recent version like
 
7
   2008 (vc9) is strongly recommended.
 
8
 
 
9
   VC++ is also part of the Windows Platform SDK. You do not have to install
 
10
   the full Visual Studio or Visual C++ if all you want is to build curl.
 
11
 
 
12
   The Platform SDK can be fetched here, freely:
 
13
 
 
14
    http://msdn.microsoft.com/en-us/windows/bb980924
 
15
 
 
16
   If you wish to support zlib, openssl, ssh2, you will have to download
 
17
   them separately and copy them to the deps directory as shown below:
 
18
   
 
19
   somedirectory\
 
20
    |_curl-src
 
21
    | |_winbuild
 
22
    |
 
23
    |_deps
 
24
      |_ lib
 
25
      |_ include
 
26
      |_ bin
 
27
 
 
28
   It is also possible to create the deps directory in some other random
 
29
   places and tell the Makefile its location using the WITH_DEVEL option.
 
30
 
 
31
Building with Visual C++
 
32
========================
 
33
 
 
34
Open a Visual Studio Command prompt or the SDK CMD shell.
 
35
 
 
36
    Using the CMD Shell:
 
37
     choose the right environment via the setenv command (see setenv /?)
 
38
     for the full list of options. setenv /xp /x86 /release for example.
 
39
 
 
40
    Using the Visual Studio command prompt Shell:
 
41
     Everything is already pre-configured by calling one of the command
 
42
     prompt.
 
43
 
 
44
Once you are in the consonle, go to the winbuild directory in the Curl 
 
45
sources:
 
46
    cd curl-src\winbuild
 
47
 
 
48
Then you can call nmake /f makefile with the desired options (see below).
 
49
The builds will be in the top src directory, builds\ directory, in 
 
50
a directory named using the options given to the nmake call.
 
51
 
 
52
nmake /f makefile.vc mode=<static or dll> <options>
 
53
where <options> is one or many of:
 
54
  VC=<6,7,8,9,10>              - VC versions
 
55
  WITH_DEVEL=<path>            - Paths for the development files (SSL, zlib, etc.)
 
56
                                 Default to sibbling directory deps: ../deps
 
57
                                 Libraries can be fetched at http://pecl2.php.net/downloads/php-windows-builds/
 
58
                                 Uncompress them into the deps folder.
 
59
  WITH_SSL=<dll or static>     - Enable OpenSSL support, DLL or static
 
60
  WITH_ZLIB=<dll or static>    - Enable ZLib support, DLL or static
 
61
  WITH_SSH2=<dll or static>    - Enable LIbSSH2 support, DLL or static
 
62
  USE_SSSPI=<yes or no>        - Enable SSPI support, default to yes
 
63
  USE_IPV6=<yes or no>         - Enable IPV6, default to yes
 
64
  DEBUG=<yes or no>            - Debug builds
 
65
  USE_IDN=<yes or no>          - Wheter or not to use IDN Windows APIs. Requires Windows Vista or later.
 
66
                                 or to install http://www.microsoft.com/downloads/details.aspx?FamilyID=AD6158D7-DDBA-416A-9109-07607425A815
 
67
  GEN_PDB=<yes or no>          - Generate Program Database (debug symbols release build)
 
68