On Sat, Apr 13, 2013 at 8:46 PM, Ben Reser <b...@reser.org> wrote:

> The result is the build-svn-deps-win.pl script that I've commited in r1467714.
>
> This script is far from perfect.  It still needs some work on it, but
> it's probably about 90% of the way there to turning setting up a
> Windows development environment into about an hour effort from a
> couple day slog that you have no hope of being able to reproduce.

Giving this a try with 1.8.x RC1

> a) Pick a location to do the build and make a directory to build the
> deps, in my case I put it in C:\Users\breser\svn-trunk-deps.  Download
> the script at 
> http://svn.apache.org/repos/asf/subversion/trunk/tools/dev/build-svn-deps-win.pl
> and put it in this directory.  Open the script in a text editor and
> make sure you install the few dependencies you'll need (Perl, Python,
> 7-Zip and CMake).  Python actually may not be needed for this but it's
> needed for the Subversion build itself.  If presented the option to
> add the commands to your path accept it (Python and Perl will do this
> by default, CMake you have to explicitly decide to do this).  7-zip
> doesn't have one so make a note of where you installed it for later.
> Once you have the dependencies downloaded open the "VS2012 x86 Native
> Tools Command Prompt" (usually found in the Visual Studio Tools
> group).  cd to your directory and run build-svn-deps-win.pl.  If
> 7z.exe is not in "C:\Program Files\7-Zip\7z.exe" you can override this
> by passing "SEVEN_ZIP=C:\Path\To\7z.exe" to the script.  The script
> will then download and build the dependencies for you.  For me on my
> VM setup it takes about 45 minutes for this to run.

I used this option.  Ran into two quick problems that were easy to solve:

1) Script got a 404 when downloading zlib 1.2.7.  I recall seeing
messages about 1.2.8 on the list here so I changed the version in the
script and that solved that problem.

2) Got an error about invalid command line option when it tried to use
7-zip to unpack the tarballs.  Turned out I had an old version
installed.  I installed the latest and that resolved it.

I like that the script can be re-run.

The script then started chugging along and building.  It looks like it
failed at the end of building httpd.  Not really sure why or what is
wrong:

========== Build: 7 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Build: 118 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0
\Common7\IDE\devenv.COM"' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0
\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
Failed building/installing httpd/apr/apu/api (exit code: 512) at build-svn-deps-
win.pl line 245.

Any ideas?  I searched the output for what Failed and do not see
anything referenced.

Searching for all instanced of "Error".  It might be this:

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.ta
rgets(347,5): error MSB6003: The specified task executable "CL.exe" could not be
 run. The process cannot access the file 'C:\SVN\deps-1.8.x\build\httpd\modules\
proxy\balancers\Release\cl.write.1.tlog' because it is being used by another pro
cess.


--
Thanks

Mark Phippard
http://markphip.blogspot.com/

Reply via email to