wrowe 2004/08/28 18:56:30 Modified: docs compiling_win32.html Log: Add several good points about VC++ 5.0 v.s. 6.0, the need for /r/n line endings and reorganize and fix typos. Revision Changes Path 1.2 +40 -21 apr-site/docs/compiling_win32.html Index: compiling_win32.html =================================================================== RCS file: /home/cvs/apr-site/docs/compiling_win32.html,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- compiling_win32.html 26 Sep 2003 04:00:22 -0000 1.1 +++ compiling_win32.html 29 Aug 2004 01:56:30 -0000 1.2 @@ -28,6 +28,10 @@
"c:\Program Files\DevStudio\VC\Bin\vcvars32.bat"+ Note: only the .zip distribution file can be used for command + line builds under Visual C++ 5.0, the .tar.gz files don't contain exported + .mak versions of the .dsp project files, and Visual C++ 6.0 is the first + version which is capable of .dsp based builds from the command line.
First, unpack the APR distribution into an appropriate directory. The directory will contain the apr, apr-iconv and apr-util directories. Open a command-line prompt and cd to the apr-util - directory. Simply use one of the following commands to compiled the - static or dynamic libraries, respectively, on Visual C++ 6.0 or later:+ directory. + +
If you obtained the .zip distribution, the files have \r\n (CR/LF) line + endings. The .tar (.gz & .Z) distribtions do not, the contents must be + unpacked as DOS Text, otherwise use the following command from the working + directory containing apr, apr-iconv and apr-uilt to convert the files to text: +
+ perl apr\build\lineends.pl apr apr-iconv apr-util ++
Then, from the apr-util working directory, simply use one of the following commands to compile the static or dynamic libraries, respectively, on +Visual C++ 6.0 or later:
msdev aprutil.dsw /MAKE \ - "apriconv - Win32 Release" \ "apr - Win32 Release" \ - "libapr - Win32 Release" \ - "gen_uri_delims - Win32 Release" \ - "xml - Win32 Release" \ - "aprutil - Win32 Release" \ + "apriconv - Win32 Release" \ + "aprutil - Win32 Release" msdev aprutil.dsw /MAKE \ "libapr - Win32 Release" \ "libapriconv - Win32 Release" \ - "gen_uri_delims - Win32 Release" \ - "xml - Win32 Release" \ - "libaprutil - Win32 Release" \ - + "libaprutil - Win32 Release"
Either command will compile APR. The latter will build the libraries as @@ -89,7 +101,9 @@
Debug to include debugging
information in the resulting files, making it easier to find bugs and
- track down problems.
Releasebuilds, but due to optimizations + they are sometimes less than helpful.