monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] Windows build


From: Jon Bright
Subject: [Monotone-devel] Windows build
Date: Fri, 15 Oct 2004 18:03:41 +0200
User-agent: Mozilla Thunderbird 0.8 (Windows/20040913)

Hi,

Having just built the Changesets branch on a shiny, fresh system, here's an update to my original build instructions for Windows. I plan on looking into the failing parts of the test suite on Windows over the course of the next week.

1. Download the MinGW exe, the MSYS exe, the gettext exe, the
libiconv exe, the MSYS DTK and the autoconf .tar.bz2 file from http://www.mingw.org/download.shtml
2. Install MinGW, then MSYS.  After install, MSYS will ask if you have a
MinGW install.  Tell it yes, give it the path of your MinGW install.
3. Install the MSYS DTK.
4. Install gettext and libiconv.
5. Get popt-1.7.tar.gz from ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.1.x/
and copy it to c:\msys\1.0\home\<username>
6. Copy the autoconf tar.bz2 file to c:\msys\1.0\home\<username>
7. Start msys
8. cd /
9. tar -jxf ~/msys-autoconf-2.59.tar.bz2
10. cd ~
11. tar zxvf popt-1.7.tar.gz
12. Using your favourite text editor, edit popt-1.7/intl/localename.c
13. Search for LANG_SORBIAN, delete the line on which it appears.  Not
doing so results in a compile error.
14. In MSYS again, cd into the popt-1.7 directory
15. ./configure --prefix=/mingw && make && make install
16. Get boost 1.31.0 from www.boost.org.
17. In MSYS, untar it
18. Open a windows command window (cmd.exe), then:
19. set PATH=%PATH%;c:\mingw\bin (or wherever your mingw is)
20. cd c:\msys\1.0\home\<username>\boost_1_31_0\tools\build\jam_src
21. build.bat mingw
22. Back in MSYS:
23. cd ~/boost_1_31_0
24. tools/build/jam_src/bin.ntx86/bjam.exe -sTOOLS=mingw
'-sBUILD=release <threading>single <optimization>speed <runtime-link>static'
25. find . -name libboost*.lib -a -type f |awk -F / --
'{a=$NF;gsub("-mgw-s-1_31.lib",".a",a);system("cp " $0 " /mingw/lib/" a);}'
     (this copies the boost libraries, renaming them appropriately, to
     the MinGW lib dir)
26. cp -a boost /mingw/include
27. Get the monotone source (whether by extracting a tarball or fetching from off.net, or whatever), into ~/monotone 27a. If you got it from off.net, 'autoreconf --install'. This is liable to throw a couple of errors, but it works in the end.
23. ./configure
24. make

--
Jon Bright
Silicon Circus Ltd.
http://www.siliconcircus.com






reply via email to

[Prev in Thread] Current Thread [Next in Thread]