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: Wed, 20 Apr 2005 11:48:32 +0200
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

Hi,

An updated (and slightly simplified) version, having confirmed that Boost 1.32.0 works as expected:

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
("c:/mingw" by standard)
3. Install the MSYS DTK.
4. Install gettext and libiconv.
5. Copy the autoconf tar.bz2 file to c:\msys\1.0\home\<username>
6. Start msys
7. cd /
8. tar -jxf ~/msys-autoconf-2.59.tar.bz2
9. cd ~
10. Get the boost 1.32.0 .tar.bz2 file from www.boost.org
11. In MSYS, untar boost
12. Open a windows command window (cmd.exe), then:
13. set PATH=%PATH%;c:\mingw\bin (or wherever your mingw is)
14. cd c:\msys\1.0\home\<username>\boost_1_32_0\tools\build\jam_src
15. build.bat mingw
16. Back in MSYS: cd ~/boost_1_32_0
17. tools/build/jam_src/bin.ntx86/bjam.exe -sTOOLS=mingw
'-sBUILD=release <threading>single <optimization>speed <runtime-link>static'
(Note the apostrophes here!  They're important!)
18. find . -name libboost*.lib -a -type f |awk -F / --
'{a=$NF;gsub("-mgw-s-1_32.lib",".a",a);system("cp " $0 " /mingw/lib/" a);}'
     (All on one line.  This copies the boost libraries, renaming them
      appropriately, to the MinGW lib dir)
19. cp -a boost /mingw/include
20. Get the monotone source (whether by extracting a tarball or fetching
from off.net, or whatever), into ~/monotone
21. If you got it by pulling from off.net, 'autoreconf --install'.
This is liable to throw a couple of errors, but it works in the end.
22. ./configure
23. make
24. You're done.  To run the testsuite, carry on.
25. Get http://reality.sgiweb.org/freeware/source/metamail/mm2.7.tar.gz
26. cd ~
27. tar zxvf mm2.7.tar.gz
28. cd mm2.7/src/metamail
29. With your text editor, edit mmencode.c.  Replace every occurence of
#ifdef MSDOS
with
#if defined(MSDOS) || defined(WIN32)
(should be three occurences)
30. CC=gcc make -e mmencode
31. cp mmencode /mingw/bin/mimencode   (Note the name change here)
32. cd back to your monotone directory
33. make check

The unit tests should pass, and all of the integration tests should
return the expected value.

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




_______________________________________________
Monotone-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/monotone-devel

!DSPAM:416ff1ee27571144070292!




_______________________________________________
Monotone-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/monotone-devel




reply via email to

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