[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

HOWTO - Compile Subversion from source on Windows

From: John Barstow <John_Barstow_at_gfsg.co.nz>
Date: 2003-05-02 01:12:59 CEST

HOWTO - Compile Subversion from source on Windows
(sample script at bottom)

Since this is currently a common request, here's a HOWTO. Note that it onyl
covers compiling with VC6,as the VC7 files are not properly generated yet.

You will need:
The Apache 2.0.45 or later Win32 source (download from
  Install this anywhere you like.
The Neon source (download from http://www.webdav.org/neon/)
The BDB 4.0.x or 4.1.x source
Python 2.2 (for running the gen-make script)

Checkout the subversion source from "http://svn.collab.net/repos/svn/trunk"
(or check out your favorite branch)
Put the BDB source in the top-level directory.
Put the neon source in the top-level directory.

Unzip the Apache source.
Copy the Apache apr, apr-util, and apr-iconv directories from the Apache
srclib directory to the top-level subversion directory.

Set the HTTPD environment variable to point to your Apache source.
  I have mine set to "C:\Projects\apache\httpd-2.0.45"

Open the Apache.dsw file and build the Apache source.
  If you don't build this, mod_dav_svn will not build, and you will need to
build each project individually since mod_dav_svn is the first project in
the generated __ALL__ target.

Run "python gen-make.py -t dsp"
Open the subversion_msvc.dsw file gen-make creates in the top-level
Compile the __ALL__ target to compile everything, or select individual

Sample script:
(assumes you have installed Python 2.2 and downloaded the zips to the
Projects directory)
(gunzip, tar, and unzip are native win32 apps taken from

c:\Projects> svn co http://svn.collab.net/repos/svn/trunk subversion
C:\Projects> gunzip neon-0.23.9.tar.gz
c:\Projects> cd subversion
c:\Projects\subversion> tar -xvf ..\neon-0.23.9.tar
c:\Projects\subversion> ren neon-0.23.9 neon
c:\Projects\subversion> unzip ..\db-4.0.14-win32.zip
c:\Projects\subversion> cd ..
c:\Projects> md apache
c:\Projects> cd apache
c:\Projects\apache> unzip ..\httpd_2.0.45-win32-src.zip
c:\Projects\apache> cd ..
c:\Projects> xcopy /S apache\httpd-2.0.45\srclib\apr subversion
c:\Projects> xcopy /S apache\httpd-2.0.45\srclib\apr-util subversion
c:\Projects> xcopy /S apache\httpd-2.0.45\srclib\apr-iconv subversion
c:\Projects> set HTTPD=C:\Projects\apache\httpd-2.0.45
c:\Projects> msdev apache\httpd-2.0.45\apache.dsw /MAKE ALL
c:\Projects> cd subversion
c:\Projects\subversion> python gen-make.py -t dsp
c:\Projects\subversion> msdev subversion_msvc.dsw /MAKE __ALL__

John C Barstow

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri May 2 01:05:44 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.