This document describes building LeechCraft with pretty much all the plugins for Win32. This is still highly experimental, so the result is not guaranteed.
Leeches for Sale. Buy Hirudo Verbana. Online Shop Website. Worldwide Shipping! Galvanized Wade Bucket - 2 Quart. A classic favorite for wading stream angling and pond jumping. Compact flask shape holds two full quarts of water or worm bedding. Generations choose it for minnows worms crayfish and more. Features: Snap-on shoulder strap; Galvanized steel; Lid snaps in/ out for one-handed access; 2 quart capacity; 6.5' x 6.5.
Intro
This build guide assumes Windows 7 with Microsoft Visual Studio 2010 SP1. We will use Qt 4.7.3, Boost 1.46.1, Libtorrent 0.15.6, CMake 2.8.4, qxmpp-dev snapshot and fresh enough OpenSSL.
We will use E:LeechCraft
path for LeechCraft source and we will store third-party libraries in E:libs
throughout the guide. Adjust the paths accordingly.
Leech 3 1 4 Quart Pot
Installing Qt
Seems like it is safe to use Qt binaries shipped by Nokia for MSVS 2008 with the 2010 version. The binaries could be found at Qt download page, and here's the direct link that works at the time of writing the guide: http://qt.nokia.com/downloads/windows-cpp-vs2008.
So, download the installer and install Qt into E:LibsQt4.7.3
(note the version at the end, it may be different for you).
After you've installed Qt, open E:LibsQt4.7.3binqtvars.bat
and add the following line there, adjusting the paths necesserily:
Quarkxpress 2019 15 2 14.
This way, opening Qt command prompt would also set up MSVS compiler properly.
Note: while I tried to follow this guide myself, the precompiled binaries of Qt weren't working with MSVS 2010, so I had to compile them manually.
Note: if you choose to compile Qt yourself, make sure you do it after installing SSL, and that Qt can find your OpenSSL installation.
Building Boost
Download the freshiest version of Boost, for example, from https://sourceforge.net/projects/boost/files/boost/1.46.1/ for 1.46.1. Unpack it into E:Libsboost_1_46_1
. Open MSVS command line prompt and issue the following sequence of commands:
This would build shared-only version of Boost libraries, both release and debug. After this, issue copy bjam.exe C:WindowsSystem32
to make bjam available later — it will be used for Libtorrent.
If you, for some reason, want static version of Boost binaries, just omit the link=shared
part from the last command. If you want only release or debug versions, append the corresponding parameter to bjam
, for example:
for building both static and shared release-only libraries.
Building Boost takes a while, from several minutes on a pretty modern Core i7 system to hours on older systems. My Athlon 64 X2 4000+ managed to build in 24 minutes, for example. So, we may move on to installing other dependencies while Boost is being built.
Installing OpenSSL
Thankfully, OpenSSL comes in precompiled form for Win32, so it's unnecessary to build it (though you can, of course, but for that you'd need Perl). Binaries could be downloaded from here, and at the time of writing the OpenSSL 1.0.0d version was actual, so we download the corresponding installer. Avoid light versions of installer, since they don't contain development files that are required to build software that uses OpenSSL. The needed installer is typically around 8 MB in size, or maybe even more.
Once again, we install OpenSSL into E:Libs
, so that the installer would create E:LibsOpenSSL-Win32
.
The installer may ask whether to install the libraries into System32 folder or into installation folder. Choose the second.
Installing CMake
That's pretty simple, just download CMake binary installer from the official site. Install it into standard program files folder (since it's not a binary) and choose to register it in PATH for you.
Installing NSIS
Though optional, this step is also recommended. Download and install NSIS from their Download page.
Installing git
You will need git to checkout fresh sources of LeechCraft, qxmpp and Qross. Download the freshiest installer of msysgit whose name begins with 'Git-' from the msysgit page. At the time of writing, a preview version of git 1.7.4 was actual.
Run the installer. It's recommended to add git to the system path.
Building speex
Speex is needed for Jingle support in LeechCraft Azoth.
Download sources from Speex site. At the time of writing, 1.2rc1 version was actual. Unpack the sources to E:Libsspeex
.
Load the VS2003 (later ones would cause you problems) solution from E:Libsspeexwin32VS2008libspeex.sln
. MSVS2010 may ask to convert it, so accept and convert.
Having successfully converted the project, select Release build type and build the libspeex project.
Building QXmpp
Open the Qt command prompt and issue the following:
Leech 3 1 4 Quarts Equals How Many Cups
Though optional, this step is also recommended. Download and install NSIS from their Download page.
Installing git
You will need git to checkout fresh sources of LeechCraft, qxmpp and Qross. Download the freshiest installer of msysgit whose name begins with 'Git-' from the msysgit page. At the time of writing, a preview version of git 1.7.4 was actual.
Run the installer. It's recommended to add git to the system path.
Building speex
Speex is needed for Jingle support in LeechCraft Azoth.
Download sources from Speex site. At the time of writing, 1.2rc1 version was actual. Unpack the sources to E:Libsspeex
.
Load the VS2003 (later ones would cause you problems) solution from E:Libsspeexwin32VS2008libspeex.sln
. MSVS2010 may ask to convert it, so accept and convert.
Having successfully converted the project, select Release build type and build the libspeex project.
Building QXmpp
Open the Qt command prompt and issue the following:
Leech 3 1 4 Quarts Equals How Many Cups
This will build the release version of QXmpp. If you want debug version as well, substitute nmake release
with nmake
.
Building QJson
Get QJson sources (0.7.1 is actual at the time of writing). Unpack it into E:Libsqjson
, make sure MSVS isn't running and issue:
Then, open E:Libsqjsonbuildqjson.sln
and build the MinSizeRel configuration.
Create directory E:Libsqjsonqjson
and copy all *.h
and *.hh
files from src
directory there.
Building libtorrent
By the time you get here, Boost should have already been compiled, so now libtorrent, which depends on Boost, can be built.
First, get the source. At the time of writing, 0.15.6 was the latest version.
Then, extract the archive into E:Libslibtorrent
. Open MSVS command prompt and issue:
This will build release version of libtorrent with support for OpenSSL and without GeoIP (LC doesn't use it anyway), with dynamic linking to Boost.
Building Qross
Qross library is required for LeechCraft scripting plugin, Qrosp. Basically, only the JS backend is required to be built, and we won't consider building Python support now.
So, open the Qt command line prompt and issue:
Open E:LibsQrossbuildProject.sln
with Visual Studio, select the MinSizeRel configuration and build the solution.
Building LeechCraft
Open the Qt command line prompt and issue:
Run E:leechcrafttoolswin32build32.bat
script. Open E:leechcrafttoolswin32build32leechcraft.sln
, select RelWithDebInfo configuration and build the solution.
Then, after it builds, use the E:leechcrafttoolswin32collect32.bat
to collect all LeechCraft-related libraries and executables into single directory, ready to be packed.