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

Re: Problem compiling rc1 & 5346 from source

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2006-01-05 19:33:53 CET

Arne Moor wrote:

> I'm trying to build TSVN from source. Initialy I started with the RC1 sources and followed the steps in build.txt
> Below are all the steps and problems I ran into, may somebody (Stefan?) can help me to get it working.
>
> - Created a new VM with XP Pro and SP2
> - Installed VS.NET2005 Teamsuite edition.
> - Installed java runtime 5.0 Update 6
> - Installed python-2.4.2.msi to E:\dev\Python24
> - Added E:\dev\Python24 to global environment
> - Installed libxml2-python-2.6.22.win32-py2.4.exe
> - Installed ActivePerl-5.8.7.815-MSWin32-x86-211909.msi to E:\dev\Perl
> - Unzipped WIX_binaries-2.0.3309.0.zip to E:\dev\WiX
> - Added path E:\dev\WiX to global environment
> - Installed nsis-2.12-setup.exe to E:\dev\NSIS
> - Unzipped nant-0.85-rc3-bin.zip to E:\dev\nant
> - Added E:\dev\nant\bin to global environment.
> (To be constistent with the WiX steps I would write down the same steps for nant)
> - Did no logoff -> started a cmd.exe
>> path
> PATH=E:\dev\nant\bin;E:\dev\WiX;E:\dev\Python24;E:\dev\Perl\bin\;C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
> - Created e:\dev\svn
> - Checked out http://tortoisesvn.tigris.org/svn/tortoisesvn/tags/version_1.3.0RC1 on the VM host.
> - Created common folder
> - Unzipped opensll from openssl-0.9.8a.tar.gz
> - Unzipped zlib from with zlib123.zip
> - Installed en_US.aff, en_US.dic, en_GB.aff and en_GB.dic.
> (To be constistent, I would mention the URL to download here too, not only on top of the file).
> BTW: Can the theasaurus files also be downloaded?

Yes, but make sure you take the ones for OO2, not OO1.x!

> - Moved the SVN folder to the guest VM.
> - Downloaded the tools.zip
> (Is it a good idea from copyright view to include hhc.exe?)

If MS complains, we'll remove it.

> - Created a default.build.user from templatre with that part changed
> <target name="env">
> <setenv>
> <variable name="PATH" value="E:\dev\SVN\TortoiseSVN\Tools\;%PATH%" />
> <variable name="PATH" value="E:\dev\SVN\TortoiseSVN\Tools\fop\;%PATH%" />
> <variable name="PATH" value="E:\DEV\WIX\;%PATH%" />
> <variable name="PATH" value="E:\DEV\NSIS\;%PATH%" />
> <variable name="HHLOC" value="E:\dev\SVN\TortoiseSVN\Tools\hhc.exe" />
> <variable name="XSLROOT" value="E:/DEV/SVN/TortoiseSVN/Tools/xsl" />
> </setenv>
> </target>
> - Unzipped WTL75_5333_Final.zip to E:\dev\WTL
> - Started VS.net 2005, went to Tools -> Options, choose "Projects and Solutions -> VC++ Directories
> - Choose "Platform Win32" and "Show diretories for" -> "Include files"
> - Insert as a new first line with the content "E:\dev\WTL\include"
> - Press "OK" and close VS.Net
> - Started a cmd.exe
> E:\>"C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat"
> Setting environment for using Microsoft Visual Studio 2005 x86 tools.
> E:\>cd /d E:\dev\SVN\TortoiseSVN
> E:\dev\SVN\TortoiseSVN>nant >building.log setup
>
> - SubWCrev.exe complained about required a DLL at startup....
> Researched this and found that I need to add:
> <variable name="PATH" value="E:\DEV\SVN\TortoiseSVN\ext\apr\Release\;%PATH%" />
> <variable name="PATH" value="E:\DEV\SVN\TortoiseSVN\ext\apr-util\Release\;%PATH%" />
> <variable name="PATH" value="E:\DEV\SVN\TortoiseSVN\ext\apr-iconv\Release\;%PATH%" />
> <variable name="PATH" value="D:\SVN\TortoiseSVN\ext\svn-win32-libintl\bin\;%PATH%" />

I think that last step isn't really needed. Ok, I admit the build script
  seems broken. But if you build it a second time, SubWCRev will find
those dll's because they get copied there after the build.

> - Build went through. I recognized that there are errors in the building.log and
> that the msi had a different size that rc1-msi from the website.

You will actually see always a lot of errors.
Reasons:
- we build Subversion twice (all libs), but once without network/BDB
support. In that build, you'll get linker errors a lot - but we only use
those libs from that build which build successfully.
- while generating the docs, there are also a lot of 'errors', but you
can ignore those - the pdf will get built anyway.

The different filesize of the msi is completely expected:
We build TSVN with debug information. And that debug information also
contains the full paths to the sourcefiles. So if you don't have the
*exact* same paths as I do, you'll get slightly different filesizes.

> - Switched to http://tortoisesvn.tigris.org/svn/tortoisesvn/branches/1.3.x Revision 5346
> - Moved the sources to the VM, restarted the build process.
> - Got an exception in hhc.exe together with the question from VS.net if I want to debug hhc.exe...

I sometimes get that one too. If you get it all the time, you must
install language support for eastern languages (you might need to insert
the XP installation CD, so have it ready).

> - Made a copy of the building.log and answered afterwards with "no", the build was continuing.
>
> Result:
> Nightly build 5346 -> 7'206'912 bytes
> My build 5346 -> 7'203'840 bytes

That difference is due to different paths where our sources live - see
my comments above.

> My Questions:
> 1. Is it normal that the DLL's are missing? Do those of you who are able to build just have those DLL's in any version (by mistake?) in the windows path?
> 2. Does anybody know why hhc.exe crashs?

hhc crashes quite often. I learned to live with it :)

> 3. Why get I twice 104 errors in the log while the libsvn_ra_dav-1.lib was linked, all of them started with "error LNK2019: unresolved external symbol _ne_........" or with "error LNK2001: unresolved external symbol _ne_"
> Directly after the second linking I saw "[exec] 'svn' failed to start." in the log
> 4. There are a lot of other errors, most likely releated to the documentations. Are those also normal?

See my comments above about this.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Jan 5 20:21:41 2006

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