[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r8371: Updates to win32-mingw. libevent1.1b builds. openssl doesn't (tor/trunk/doc)



Author: phobos
Date: 2006-09-11 22:58:33 -0400 (Mon, 11 Sep 2006)
New Revision: 8371

Modified:
   tor/trunk/doc/tor-osx-dmg-creation.txt
   tor/trunk/doc/tor-rpm-creation.txt
   tor/trunk/doc/tor-win32-mingw-creation.txt
Log:
Updates to win32-mingw.  libevent1.1b builds.  openssl doesn't.


Modified: tor/trunk/doc/tor-osx-dmg-creation.txt
===================================================================
--- tor/trunk/doc/tor-osx-dmg-creation.txt	2006-09-12 02:50:14 UTC (rev 8370)
+++ tor/trunk/doc/tor-osx-dmg-creation.txt	2006-09-12 02:58:33 UTC (rev 8371)
@@ -1,3 +1,6 @@
+## Instructions for building the official dmgs for OSX.
+##
+
 The following steps are the exact steps used to produce the "official"
 OSX builds of tor
 

Modified: tor/trunk/doc/tor-rpm-creation.txt
===================================================================
--- tor/trunk/doc/tor-rpm-creation.txt	2006-09-12 02:50:14 UTC (rev 8370)
+++ tor/trunk/doc/tor-rpm-creation.txt	2006-09-12 02:58:33 UTC (rev 8371)
@@ -1,3 +1,5 @@
+## Instructions for building the official rpms.
+## 
 These are instructions for building Tor binaries in the rpm format on
 various cpu architectures and operating systems.  Each rpm will require
 glibc on the target system.  It is believed that any rpm-based linux

Modified: tor/trunk/doc/tor-win32-mingw-creation.txt
===================================================================
--- tor/trunk/doc/tor-win32-mingw-creation.txt	2006-09-12 02:50:14 UTC (rev 8370)
+++ tor/trunk/doc/tor-win32-mingw-creation.txt	2006-09-12 02:58:33 UTC (rev 8371)
@@ -1,17 +1,71 @@
-Instructions for building Tor with MinGW (http://www.mingw.org/)
+## Instructions for building Tor with MinGW (http://www.mingw.org/)
+##
 
 Stage One:  Download and Install MinGW.
 ---------------------------------------
 
 Download mingw:
+http://prdownloads.sf.net/mingw/MinGW-5.0.3.exe?download
+
+
+Download msys:
 http://prdownloads.sf.net/mingw/MSYS-1.0.10.exe?download
 
 Download the mingw developer tool kit:
 http://prdownloads.sf.net/mingw/msysDTK-1.0.1.exe?download
 
-Install mingw and mingw-dtk.
+Download the mingw win32api:
+http://prdownloads.sf.net/mingw/w32api-3.6.tar.gz?download
 
-Stage Two: Download, extract, and patch libevent-1.1b.
+Install mingw, msys and mingw-dtk.
+
+Stage Two:  Download, extract, compile openssl
+----------------------------------------------
+
+Download openssl:
+http://www.openssl.org/source/openssl-0.9.8c.tar.gz
+
+Extract openssl:
+cp openssl-0.9.8c.tar.gz tor-mingw/
+cd tor-mingw/
+tar zxf openssl-0.9.8c.tar.gz
+
+Make openssl.dll:
+cd tor-mingw/openssl-0.9.8c/
+./Configure mingw
+cp crypto/*.h ./include/openssl/
+cp e_os2.h ./include/openssl/
+cp ssl/*.h ./include/openssl/
+make
+
+Note: this fails in test due to: 
+make[1]: *** No rule to make target `sha256t.o', needed by `sha256t.exe'.  Stop.
+--need to research this - phobos
+
+Alternatively:
+Download the pre-compiled openssl for win32.
+Install and proceed.
+
+
+Stage Three:  Download, extract, compile zlib
+---------------------------------------------
+
+Download zlib source:
+http://www.zlib.net/zlib-1.2.3.tar.gz
+
+Extract zlib:
+cp zlib-1.2.3.tar.gz tor-mingw/
+cd tor-mingw/
+tar zxf zlib-1.2.3.tar.gz
+
+Make zlib1.dll:
+cd tor-mingw/zlib-1.2.3/
+make -f win32/Makefile.gcc
+
+Done.
+
+
+Stage Four: Download, extract, and patch libevent-1.1b.
 ------------------------------------------------------
 
 Download libevent-1.1b:
@@ -76,13 +130,29 @@
 patching file `event.c'
 patching file `log.c' "
 
-Stage 3:  Build libevent-1.1b DLL
----------------------------------
+--This is a complete hack right now:
+remove from event.c and log.c:
+#ifdef __GNUC__
+#include "WIN32-Code/misc.h"
+#else
+#include "misc.h"
+#endif
 
 Run "aclocal && autoheader && automake && autoconf".
 There may be WARNING messages.  There will be no output if all runs successfuly.
 
 Run "./configure"
 Run "make"
+Run "make install"
 
-(magic happens here and a complete tor-alpha.exe is created)
+Stage Five:  Build Tor
+----------------------
+
+Extract the latest tor from svn in tor-mingw dir:
+tar zxf latest-tor-alpha.tar.gz
+
+cd tor-alpha
+./autogen.sh
+./configure 
+
+(less magic happens here and a complete tor-alpha.exe is created)