Finished the "Compiling OpenSSL" section.

This commit is contained in:
sledgehammer999 2012-09-15 12:11:26 -07:00
parent 5ea2072963
commit 4f48b82002

View File

@ -10,4 +10,20 @@ This page describes how to compile qBittorrent using MSVC 2008 under Windows. Th
* Latest release of the [http://www.boost.org/ Boost libraries]. Download version 1.51.0 [http://sourceforge.net/projects/boost/files/boost/1.51.0/boost_1_51_0.7z/download here].
* Latest release of [http://www.rasterbar.com/products/libtorrent/ libtorrent(rasterbar)]. Download version 0.16.3 [https://libtorrent.googlecode.com/files/libtorrent-rasterbar-0.16.3.tar.gz here].
* Latest release of the [http://qt-project.org/ Qt libraries] source. Download version 4.8.3 [http://releases.qt-project.org/qt4/source/qt-everywhere-opensource-src-4.8.3.tar.gz here].
* Latest release of [http://www.qbittorrent.org qBittorrent]. Download version 3.0.2 [http://sourceforge.net/projects/qbittorrent/files/qbittorrent/qbittorrent-3.0.2/qbittorrent-3.0.2.tar.xz/download here].
* Latest release of [http://www.qbittorrent.org qBittorrent]. Download version 3.0.2 [http://sourceforge.net/projects/qbittorrent/files/qbittorrent/qbittorrent-3.0.2/qbittorrent-3.0.2.tar.xz/download here].
Let's assume that the working directory for our compilation will be '''C:\qBittorrent'''
=== Compiling OpenSSL ===
* Make sure you have installed perl and nasm.
* Extract the OpenSSL source inside our working dir.
* Open the MSVC2008 command shell. Start->Programs->Microsoft Visual C++ 2008 Express Edition->Visual Studio Tools->Visual Studio 2008 Command Prompt
* Navigate to the OpenSSL source folder. eg ''cd C:\qBittorrent\openssl-1.0.1c''
* Now we will build a static version of OpenSSL. Issue the following commands:
perl Configure VC-WIN32 no-shared no-zlib-dynamic threads --prefix=C:\qBittorrent\openssl-1.0.1c\my_build
ms\do_nasm
nmake -f ms\nt.mak
nmake -f ms\nt.mak install
xcopy /s "my_build\include\*" "C:\Program Files\Microsoft Visual Studio 9.0\VC\include\*"
xcopy "my_build\lib\*" "C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\*"
The last 2 commands will copy the necessary files to MSVC's directories so openssl can be picked up by libtorrent, asio, qbittorrent and any other program that needs it.