mirror of https://github.com/moparisthebest/curl
re-arranged the win32 section and added a pointer to the INSTALL.devcpp
document
This commit is contained in:
parent
80f481a5f7
commit
b259c9c535
109
docs/INSTALL
109
docs/INSTALL
|
@ -132,64 +132,33 @@ UNIX
|
||||||
Win32
|
Win32
|
||||||
=====
|
=====
|
||||||
|
|
||||||
Without SSL:
|
MingW32
|
||||||
|
-------
|
||||||
|
|
||||||
MingW32 (GCC-2.95) style
|
Run the 'mingw32.bat' file to get the proper environment variables set,
|
||||||
------------------------
|
then run 'make mingw32' in the root dir. Use 'make mingw32-ssl' to build
|
||||||
Run the 'mingw32.bat' file to get the proper environment variables
|
curl SSL enabled.
|
||||||
set, then run 'make mingw32' in the root dir.
|
|
||||||
|
|
||||||
If you have any problems linking libraries or finding header files, be
|
If you have any problems linking libraries or finding header files, be sure
|
||||||
sure to verify that the provided "Makefile.m32" files use the proper
|
to verify that the provided "Makefile.m32" files use the proper paths, and
|
||||||
paths, and adjust as necessary.
|
adjust as necessary.
|
||||||
|
|
||||||
Cygwin style
|
Cygwin
|
||||||
------------
|
------
|
||||||
Almost identical to the unix installation. Run the configure script in
|
|
||||||
the curl root with 'sh configure'. Make sure you have the sh
|
Almost identical to the unix installation. Run the configure script in the
|
||||||
executable in /bin/ or you'll see the configure fail towards the end.
|
curl root with 'sh configure'. Make sure you have the sh executable in
|
||||||
|
/bin/ or you'll see the configure fail towards the end.
|
||||||
|
|
||||||
Run 'make'
|
Run 'make'
|
||||||
|
|
||||||
Microsoft command line style
|
Dev-Cpp
|
||||||
----------------------------
|
-------
|
||||||
Run the 'vcvars32.bat' file to get the proper environment variables
|
|
||||||
set, then run 'nmake vc' in the root dir.
|
|
||||||
|
|
||||||
The vcvars32.bat file is part of the Microsoft development
|
See the separate INSTALL.devcpp file for details.
|
||||||
environment.
|
|
||||||
|
|
||||||
IDE-style
|
MSVC from command line
|
||||||
-------------------------
|
----------------------
|
||||||
If you use VC++, Borland or similar compilers. Include all lib source
|
|
||||||
files in a static lib "project" (all .c and .h files that is).
|
|
||||||
(you should name it libcurl or similar)
|
|
||||||
|
|
||||||
Make the sources in the src/ drawer be a "win32 console application"
|
|
||||||
project. Name it curl.
|
|
||||||
|
|
||||||
For VC++ 6, there's an included Makefile.vc6 that should be possible
|
|
||||||
to use out-of-the-box.
|
|
||||||
|
|
||||||
|
|
||||||
With SSL:
|
|
||||||
|
|
||||||
MingW32 (GCC-2.95) style
|
|
||||||
------------------------
|
|
||||||
Run the 'mingw32.bat' file to get the proper environment variables
|
|
||||||
set, then run 'make mingw32-ssl' in the root dir.
|
|
||||||
|
|
||||||
If you have any problems linking libraries or finding header files, be
|
|
||||||
sure to look at the provided "Makefile.m32" files for the proper
|
|
||||||
paths, and adjust as necessary.
|
|
||||||
|
|
||||||
Cygwin style
|
|
||||||
------------
|
|
||||||
Haven't done, nor got any reports on how to do. It should although be
|
|
||||||
identical to the unix setup for the same purpose. See above.
|
|
||||||
|
|
||||||
Microsoft command line style
|
|
||||||
----------------------------
|
|
||||||
|
|
||||||
Run the 'vcvars32.bat' file to get a proper environment. The
|
Run the 'vcvars32.bat' file to get a proper environment. The
|
||||||
vcvars32.bat file is part of the Microsoft development environment and
|
vcvars32.bat file is part of the Microsoft development environment and
|
||||||
|
@ -232,22 +201,14 @@ Win32
|
||||||
at runtime.
|
at runtime.
|
||||||
Run 'nmake vc-ssl-zlib' to build with both ssl and zlib support.
|
Run 'nmake vc-ssl-zlib' to build with both ssl and zlib support.
|
||||||
|
|
||||||
Microsoft / Borland style
|
Borland C++ compiler
|
||||||
-------------------------
|
---------------------
|
||||||
If you have OpenSSL, and want curl to take advantage of it, edit your
|
|
||||||
project properties to use the SSL include path, link with the SSL libs
|
|
||||||
and define the USE_SSLEAY symbol.
|
|
||||||
|
|
||||||
Using Borland C++ compiler version 5.5.1 (available as free download
|
|
||||||
from Borland's site)
|
|
||||||
---------------------------------------------------------------------
|
|
||||||
|
|
||||||
compile openssl
|
compile openssl
|
||||||
|
|
||||||
Make sure you include the paths to curl/include and openssl/inc32 in
|
Make sure you include the paths to curl/include and openssl/inc32 in
|
||||||
your bcc32.cnf file
|
your bcc32.cnf file
|
||||||
|
|
||||||
|
|
||||||
eg : -I"c:\Bcc55\include;c:\path_curl\include;c:\path_openssl\inc32"
|
eg : -I"c:\Bcc55\include;c:\path_curl\include;c:\path_openssl\inc32"
|
||||||
|
|
||||||
Check to make sure that all of the sources listed in lib/Makefile.b32
|
Check to make sure that all of the sources listed in lib/Makefile.b32
|
||||||
|
@ -268,7 +229,23 @@ Win32
|
||||||
-L c:\openssl\out32\ssleay32.lib
|
-L c:\openssl\out32\ssleay32.lib
|
||||||
simplessl.c
|
simplessl.c
|
||||||
|
|
||||||
Disabling Specific Protocols:
|
|
||||||
|
MSVC IDE
|
||||||
|
--------
|
||||||
|
|
||||||
|
If you use VC++, Borland or similar compilers. Include all lib source
|
||||||
|
files in a static lib "project" (all .c and .h files that is).
|
||||||
|
(you should name it libcurl or similar)
|
||||||
|
|
||||||
|
Make the sources in the src/ drawer be a "win32 console application"
|
||||||
|
project. Name it curl.
|
||||||
|
|
||||||
|
For VC++ 6, there's an included Makefile.vc6 that should be possible
|
||||||
|
to use out-of-the-box.
|
||||||
|
|
||||||
|
|
||||||
|
Disabling Specific Protocols in Win32 builds
|
||||||
|
--------------------------------------------
|
||||||
|
|
||||||
The configure utility, unfortunately, is not available for the Windows
|
The configure utility, unfortunately, is not available for the Windows
|
||||||
environment, therefore, you cannot use the various disable-protocol
|
environment, therefore, you cannot use the various disable-protocol
|
||||||
|
@ -294,10 +271,12 @@ Win32
|
||||||
in the curllib.dsw/curllib.dsp Visual C++ 6 IDE project.
|
in the curllib.dsw/curllib.dsp Visual C++ 6 IDE project.
|
||||||
|
|
||||||
|
|
||||||
Important (with SSL or not):
|
Important static libcurl usage note
|
||||||
When building an application that uses the static libcurl library, you
|
-----------------------------------
|
||||||
must add '-DCURL_STATICLIB' to your CFLAGS. Otherwise the linker will
|
|
||||||
look for dynamic import symbols.
|
When building an application that uses the static libcurl library, you must
|
||||||
|
add '-DCURL_STATICLIB' to your CFLAGS. Otherwise the linker will look for
|
||||||
|
dynamic import symbols.
|
||||||
|
|
||||||
|
|
||||||
IBM OS/2
|
IBM OS/2
|
||||||
|
|
Loading…
Reference in New Issue