Compiling Subversion and related binaries with MinGW ==================================================== DOWNLOADS ========= You need to download the following packages MinGW/Msys (with all the "Current" contents of http://www.mingw.org/download.shtml) The following packages are suffixed with tar.gz and or tar.bz2: zlib-1.2.1 db-4.2.52 OpenSSL-0.9.7c (OpenSSH-3.7.1p2) neon-0.24.4 apache-2.0.48 Subversion-0.35.1.tar.gz MINGW and MSYS ============== Install MinGW and Msys MAKING PACKAGES =============== Fire up msys and cd to where you have your source packages: ZLIB ---- 1) Unpack zlib in msys and cd to the top source dirctory. 2) $ make -f win32/Makefile.gcc 3) a) copy zlib1.dll to your somwhere in your path (i.e MinGW/bin) b) copy libzdll.a and libz.a to your MinGW/lib c) copy zlib.h and zconf.h to MinGW/include BERKELEY DB ----------- 1) Unpack db in msys and cd to build_unix 2) Configure and make db (--enable-cxx is optional): $ ../dist/configure --enable-cxx --enable-mingw && make 3) Make dlls (see: http://www27.brinkster.com/meilof/ if you want more info) a) Make c dlls: $ dllwrap -o .libs/libdb.dll --def ../build_win32/libdb.def util_sig.o util_log.o util_cache.o .libs/libdb-4.2.a b) Make c++ dlls (if you did --enable-cxx on ../dist/configure): cd to .libs and: $ echo EXPORTS > libdb_cxx.def $ nm libdb_cxx-4.2.a | grep 'T _' | sed 's/.* T _//' >> libdb_cxx.def $ dllwrap -o libdb_cxx.dll --def libdb_cxx.def libdb_cxx-4.2.a --driver-name=g++ 4) Install db (adapt the paths to your system): a) Do this if you want the files aviable for your Windows system, if not then go to step b $ cp *.exe /e/mingw/mingw/bin $ cp *.a /e/mingw/mingw/lib $ cp *.h /e/mingw/mingw/include $ cp .libs/*.dll /e/mingw/mingw/bin $ cp .libs/*.a /e/mingw/mingw/lib b) $ make install This will install db to /usr/local/BerkeleyDB.4.2 OPENSSL ------- 1) cd to source directory of openssh 2) Open a native Windows console window (a so called DOS box) from the source directory of openssh and run: > ms\mingw32 exit the console window. 3) cd to source directory of openssh with msys and install the goodies: $ cp *.dll /e/mingw/mingw/bin $ cp out/*.exe /e/mingw/mingw/bin $ cp out/*.a /e/mingw/mingw/lib $ cp include/openssl/* /e/mingw/mingw/include/openssl/ 4) NEON ---- I tried this from msys and did not manage to make it work: $ ./configure --prefix=/usr --with-ssl --disable-debug --enable-shared=yes