1. Download stackless Python
Source code: http://www.stackless.com/binaries/stackless-262-export.tar.bz2
Library address: http://www.stackless.com/binaries/stackless-python-262.zip
2. decompress the stackless Python source code package (assuming that the directory after decompression is F: \ stackless-2.6.2)
3. decompress the dependent library package to the F: \ stackless-2.6.2 directory, and put the decompressed python26.dll and python26_d.dll to the windows \ system32 directory.
4. Download The nasm-0.98.39, decompress and copy the *. EXE file under the folder to the windows \ system32 directory.
Address: http://www.bairuitech.com/upimg/soft/nasm-0.98.39-win32.zip
5. Download OpenSSL (assuming the directory is D: \ openssl-0.9.8g after decompression)
SVN address: http://svn.python.org/projects/external/openssl-0.9.8g/
NOTE: If stackless python252 is used, download the openssl-0.9.8a
6. Set the environment variable openssldir to indicate the OpenSSL directory, as shown below:
7. compile OpenSSL. For details, refer to: OpenSSL compilation experience (Note: This article describes openssl0.9.8a (effective for stackless python2.5.2, we use version 0.9.8g this time (for version stackless python2.6.2 ))
8. Download sqlite-3.5.9
Address: http://svn.python.org/projects/external/sqlite-3.5.9
NOTE: If stackless python252 is used, you also need to download the sqlite-source-3.3.4
SVN address: http://svn.python.org/projects/external/sqlite-source-3.3.4/
9. Compile tcltk
1) You can choose to compile tcltk DLL by yourself. For details, refer to: Compile Tcl/TK.
2) You can also use the compiled DLL.
SVN: http://svn.slicer.org/Slicer3-lib-mirrors/trunk/Binaries/Windows/tcl85-build.
Download the package, decompress it to the same root directory of stackless python, change the folder name to tcltk, and add the include and Lib directories under the tcltk directory to VC ++.
In directories include files and library files (tools/options ../Projects and Solutions/VC ++ Directories)
NOTE: If stackless python252 is used, you also need tk84.lib/tcl84.lib/tclstub84.lib/tkstub84.lib. These files can be installed in the python installation directory.
In the python25 \ TCL directory.
Stackless Python: http://www.stackless.com/binaries/python-2.5.2-stackless.msi
10. Download The db-4.7.25.0, decompress it to the same root directory of stackless python, and compile.
SVN address: http://svn.python.org/projects/external/db-4.7.25.0
NOTE: If stackless python252 is used, download the db-4.4.20
11. Download The bzip2-1.0.5, decompress it to the same root directory of stackless python, and compile.
SVN address: http://svn.python.org/projects/external/bzip2-1.0.5
NOTE: If stackless python252 is used, download the bzip2-1.0.3
12. If there is no MSI. Lib in the VC \ platformsdk \ Lib folder under the installation directory of VC (not the Vc \ platformsdk \ Lib \ amd64 directory ),
1) You can download the Windows Server 2003 SP1 Platform SDK from the Windows Website.
Copy MSI. lib to the directory of Vc \ platformsdk \ Lib.
2) or copy stackless Python (2.5.2/2.6.2) to install MSI. Lib.
SDK address: http://download.microsoft.com/download/a/5/f/a5f0d781-e201-4ab6-8c6a-9bb4efed1e1a/PSDK-x86.exe
13. Open stackless-2.6.2 \ PC \ vs8.0 \ pcbuild. sln after you are ready to start compiling.
Note: If you compile a stackless-2.5.2 version, open the stackless-2.5.2 \ pcbuild. sln.
If the output information of "none of these versions appear suitable for building OpenSSL" appears during compilation, try to modify
In the build_ssl.py file, replace the red annotation code with the blue annotation code, and install Perl 5.8.7.815.
(Address: http://downloads.activestate.com/ActivePerl/Windows/5.8/ActivePerl-5.8.7.815-MSWin32-x86-211909.msi)
Def find_working_perl (Perls ):
For Perl in Perls:
FH = OS. popen (Perl + '-e "use Win32;"')-changed to 'configure VC-WIN32'
FH. Read ()
Rc = FH. Close ()
If RC:-changed to If RC is true:
...
Vibilin comment