How to build Tor for Win32

While fiddling with Tor in the last days I was wondering if I can compile the latest source code myself for a Win32 environment. The Tor FAQ gives a hint. Unfortunately the mentioned document is no longer available. It was withdrawn for a revision and a new one is not yet available. Google found a mirror and I took this as a starter. I found the document not complete and useful for the actual source code versions so I wrote an update during my build process (download below). The document is based on the source code versions available in June 2014. The whole build process was performed on a Windows 7 32bit OS running in VirtualBox. Note, the missing Tor specification documents for the package builder are not included in the source code. There is a ticket about this, obviously not yet fixed. The build process was changed for the following thinks:

a) Making of Tor uses the –disable-gcc-hardening flag to  remove the requirement for libssp-0.dll.

b) In openssl the flag -DOPENSSL_NO_RDRAND disables the default Intel RDRAND RNG because it considered insecure.

c) Uses -DOPENSSL_NO_HEARTBEATS to prevent usage of the memory leakage bug discovered on 7th April 2014.

d) Openssl and Tor building with static libraries only, so no extra DLLs are required.

Here is a screen video from the build process:

Version: 05th June 2014
7.7 KB

6 thoughts on “How to build Tor for Win32

  1. I followed all your instruction, and tor has succsessfully compilled on my windows7 x64, many thanks,.. 🙂

  2. Hi,
    Any luck with Tor It appears to build OK but then fails to run correctly spewing out warnings like:

    [warn] Warning from libevent: event_add: event has no event_base set.

    This is with libevent 2.0.21-stable, openssl 1.0.1.i and zlip 1.2.8 on Windows 7 64bit


      • Thanks for the info. I built just fine and it´s running as windows service fine too. Have not yet checked for warnings. I will look into this and update the manual as required.

Leave a Reply

Your email address will not be published. Required fields are marked *

Comments will be moderated! Spam deleted immediately!
Before you submit form:
Human test by Not Captcha