monotone

monotone Mtn Source Tree

Root/INSTALL_windows_msys2_32.txt

1See INSTALL for general notes, such as running 'make' and 'make check'
2
3on Windows (using 32 bit MinGW64 via Msys2):
4
5Here we give sources for the various packages needed. We give
6directions to the download, rather than an exact URL, to make it easy
7to check for new versions.
8
9The versions given here may not be exactly the same versions as used to
10build the current release of monontone.
11
12These instructions work on a new computer, with only
1332 bit Windows 7 installed.
14
15Msys2 provides all of the tools required, and several of the packages.
16
17Package | Version | location
18--------------------------
19msys2 32 bit | | http://sourceforge.net/p/msys2/wiki/MSYS2%20installation/
20 | | Downloading | 32-bit | msys2-base-i686-20140216.tar.xz
21botan | 1.10.8 | http://botan.randombit.net/download.html
22 | "Source: >tar/bzip<" under "Current Stable Release"
23 | _not_ the "windows binary installer"
24Depends.exe | | http://www.dependencywalker.com/ ; also comes with Visual Studio
25
26The tools listed here are sufficient to build the monotone
27executable and html and info documentation. However, the
28'distcheck' target also builds the documentation in
29postscript format, which requires tools not (yet) available
30for MinGW. FIXME: verify
31
32The commands below assume you download files to ~/Downloads.
33
34FIXME: replace this file with an msys2 PKGBUILD
35
3601. MSYS2
37 following instructions at http://sourceforge.net/p/msys2/wiki/MSYS2%20installation/
38
39 more detailed instruction at http://sourceforge.net/p/msys2/tickets/32/?limit=10&page=1#216b
40
41 for more help, consult the mailing list at https://lists.sourceforge.net/lists/listinfo/msys2-users
42
43 Create directory c:/Msys2
44
45 using 7-zip or Cygwin tar, unpack msys2-base-i686-20140216.tar.xz to c:/Msys2
46
47 from cmd.exe (_not_ Windows Explorer), run c:\Msys2\msys32\msys2_shell.bat
48 that starts an msys shell; exit it.
49
50 start cmd.exe again, run c:\Msys2\msys32\msys2_shell.bat again
51
52 in the msys32 shell, run 'pacman -Syu'. that gives errors about rebase. Exit the shell.
53
54 in cmd.exe, run c:\Msys2\msys32\autorease.bat
55
56 in cmd.exe, run c:\Msys2\msys32\msys2_shell.bat
57
58 At this point, you can switch to another terminal emulator to run
59 msys32 bash; I prefer emacs. Just be sure to invoke bash with '-i
60 --login' to tell it to do the Msys2 path munging. Also 'export
61 MSYSTEM=MSYS' to tell various tools to use Msys paths.
62
63 in the msys shell:
64
65 $ pacman -S mingw-w64-i686-toolchain
66 # install all (just hit return)
67 # IMPROVEME; don't need all of that
68 # but 'pacman -Qo g++' gives 'error: No package owns /usr/mingw64/bin/g++'
69
70 $ pacman -S autoconf automake
71 $ pacman -S mingw32/mingw-w64-i686-sqlite3 mingw32/mingw-w64-i686-boost
72 $ pacman -S mingw32/mingw-w64-i686-lua mingw32/mingw-w64-i686-libidn
73 $ pacman -S mingw32/mingw-w64-i686-pcre
74 $ pacman -S msys/tar msys/make msys/python
75
7602. botan
77 $ mkdir /usr/src
78 $ cd /usr/src
79 $ export PATH=/mingw32/bin:$PATH
80 $ tar xf ~/Downloads/Botan-1.10.8.tbz
81 $ cd Botan-1.10.8
82 $ ./configure.py --prefix=/mingw32 --cc=gcc --os=mingw --cpu=i686
83 $ make install
84
8503. Depends.exe
86 If you have Visual Studio installed, you should be able to skip this.
87 If you don't, then download the appropriate depends*.zip and
88 unpack it someplace in your %PATH% (for example, C:\MinGW\bin\).
89 This is only used by the testsuite, in particular the empty_environment test.
90 If you just want to build monotone for your own use, you can skip this and
91 just ignore that test failing.
92
9304. build monotone
94 $ export PATH=/mingw32/bin:$PATH
95 $ cd /c/Projects/monotone
96 $ autoreconf -i # not needed if you use the distributed tarball
97 $ export botan_CFLAGS="-I/mingw32/include/botan-1.10"
98 $ export botan_LIBS="-lbotan-1.10"
99 $ ./configure
100 $ make
101
102See innosetup/README.txt for instructions on building the native Win32 installer.
103
104(ediff "INSTALL_windows_msys2_32.txt" INSTALL_windows_msys2_64.txt")

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status