monotone

monotone Mtn Source Tree

Root/INSTALL_windows_msys2_64.txt

1See INSTALL for general notes, such as running 'make' and 'make check'
2
3on Windows (using MinGW64 64 bit 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
1364 bit Windows 7 installed.
14
15Msys2 provides all of the tools required, and several of the packages.
16
17Package | Version | location
18--------------------------
19msys2 64 bit | | http://sourceforge.net/p/msys2/wiki/MSYS2%20installation/
20 | | Downloading | 64-bit | latest version
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-x86_64-20140216.tar.xz to c:/Msys2
46
47 from cmd.exe (_not_ Windows Explorer), run c:\Msys2\msys64\msys2_shell.bat
48 that starts an msys shell; exit it.
49
50 start cmd.exe again, run c:\Msys2\msys64\msys2_shell.bat again
51
52 in the msys64 shell, run 'pacman -Syu'. that gives errors about rebase. Exit the shell.
53
54 in cmd.exe, run c:\Msys2\msys64\autorebase.bat
55
56 in cmd.exe, run c:\Msys2\msys64\msys2_shell.bat
57
58 in the msys shell:
59
60 $ pacman -S mingw-w64-x86_64-toolchain
61 # install all (just hit return)
62 # IMPROVEME; don't need all of that
63 # but 'pacman -Qo g++' gives 'error: No package owns /usr/mingw64/bin/g++'
64
65 $ pacman -S autoconf automake
66 $ pacman -S mingw64/mingw-w64-x86_64-sqlite3 mingw64/mingw-w64-x86_64-boost
67 $ pacman -S mingw64/mingw-w64-x86_64-lua mingw64/mingw-w64-x86_64-libidn
68 $ pacman -S mingw64/mingw-w64-x86_64-pcre
69 $ pacman -S msys/tar msys/make
70
7102. botan
72 $ mkdir /usr/src
73 $ cd /usr/src
74 $ export PATH=/mingw32/bin:$PATH
75 $ tar xf ~/Downloads/Botan-1.10.8.tbz
76 $ cd Botan-1.10.8
77 $ ./configure.py --prefix=/mingw64 --cc=gcc --os=mingw --cpu=x86_64
78 $ make install
79
8003. Depends.exe
81 If you have Visual Studio installed, you should be able to skip this.
82 If you don't, then download the appropriate depends*.zip and
83 unpack it someplace in your %PATH% (for example, C:\MinGW\bin\).
84 This is only used by the testsuite, in particular the empty_environment test.
85 If you just want to build monotone for your own use, you can skip this and
86 just ignore that test failing.
87
8804. build monotone
89 $ export PATH=/mingw32/bin:$PATH
90 $ cd /c/Projects/monotone
91 $ autoreconf -i # not needed if you use the distributed tarball
92 $ export botan_CFLAGS="-I/mingw64/include/botan-1.10"
93 $ export botan_LIBS="-lbotan-1.10"
94 $ ./configure
95 $ make
96
97See innosetup/README.txt for instructions on building the native Win32 installer.
98
99(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