diff options
author | Yang Tse <yangsita@gmail.com> | 2011-01-12 23:28:19 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2011-01-12 23:28:19 +0100 |
commit | 6aa5206042e18d5f2ad3e85c7abd61504f049db6 (patch) | |
tree | 2d195c527f2f30127796bff3a4dd0e9957c4139d /docs/INSTALL | |
parent | 61623b74e3337c9be44a7865eeb558f64c00576f (diff) |
docs - update BCC INSTALL section
Diffstat (limited to 'docs/INSTALL')
-rw-r--r-- | docs/INSTALL | 53 |
1 files changed, 36 insertions, 17 deletions
diff --git a/docs/INSTALL b/docs/INSTALL index 1fd83dafd..babd1d171 100644 --- a/docs/INSTALL +++ b/docs/INSTALL @@ -377,30 +377,49 @@ Win32 Borland C++ compiler --------------------- - compile openssl + Ensure that your build environment is properly set up to use the compiler + and associated tools. PATH environment variable must include the path to + bin subdirectory of your compiler installation, eg: c:\Borland\BCC55\bin - Make sure you include the paths to curl/include and openssl/inc32 in - your bcc32.cnf file + It is advisable to set environment variable BCCDIR to the base path of + the compiler installation. - eg : -I"c:\Bcc55\include;c:\path_curl\include;c:\path_openssl\inc32" + set BCCDIR=c:\Borland\BCC55 - Check to make sure that all of the sources listed in lib/Makefile.b32 - are present in the /path_to_curl/lib directory. (Check the src - directory for missing ones.) + In order to build a plain vanilla version of curl and libcurl run the + following command from curl's root directory: - Make sure the environment variable "BCCDIR" is set to the install - location for the compiler eg : c:\Borland\BCC55 + make borland - command line: - make -f /path_to_curl/lib/Makefile-ssl.b32 + To build curl and libcurl with zlib and OpenSSL support set environment + variables ZLIB_PATH and OPENSSL_PATH to the base subdirectories of the + already built zlib and OpenSSL libraries and from curl's root directory + run command: - compile simplessl.c with appropriate links + make borland-ssl-zlib + + libcurl library will be built in 'lib' subdirectory while curl tool + is built in 'src' subdirectory. In order to use libcurl library it is + advisable to modify compiler's configuration file bcc32.cfg located + in c:\Borland\BCC55\bin to reflect the location of libraries include + paths for example the '-I' line could result in something like: + + -I"c:\Borland\BCC55\include;c:\curl\include;c:\openssl\inc32" + + bcc3.cfg '-L' line could also be modified to reflect the location of + of libcurl library resulting for example: + + -L"c:\Borland\BCC55\lib;c:\curl\lib;c:\openssl\out32" + + In order to build sample program 'simple.c' from the docs\examples + subdirectory run following command from mentioned subdirectory: + + bcc32 simple.c libcurl.lib cw32mt.lib + + In order to build sample program simplessl.c an SSL enabled libcurl + is required, as well as the OpenSSL libeay32.lib and ssleay32.lib + libraries. - c:\curl\docs\examples\> bcc32 -L c:\path_to_curl\lib\libcurl.lib - -L c:\borland\bcc55\lib\psdk\ws2_32.lib - -L c:\openssl\out32\libeay32.lib - -L c:\openssl\out32\ssleay32.lib - simplessl.c OTHER MSVC IDEs --------------- |