Tutorial:Compiling & Installing SWORD on Windows
From CrossWire Bible Society
Revision as of 16:35, 22 August 2010 by DavidStrickland (talk | contribs) (→Step 4: Compiling utilities)
- For compiling on Linux, see Tutorial:Compiling & Installing SWORD.
Contents
Compiling The SWORD Project using MS Visual Studio 2008
- Create a build directory, hereafter referred to as $dir$. Much of the Sword build process expects that various downloads be unpacked to the same directory.
Step 1: Compile cURL
- Download the latest release of cURL
- Extract the ZIP to $dir$
- Rename the cURL directory to "curl" (with no version number)
- Open $dir$\curl\vc6curl.dsw
- Allow Visual Studio to update the project files
- In Project Properties change the Configuration Type from DLL to LIB
- Build all
Step 2: Compile icu-sword
- Download the latest release of icu-sword
- Extract the tarball to $dir$
- Open $dir$\icu-sword\source\allinone\allinone.sln
- Build all
Step 3: Compile libsword
- Download the latest release of The SWORD Project
- Extract the tarball to $dir$
- If you are building utilities or diatheke, the following steps are not necessary:
- Open $dir$\sword-$version$\lib\vcppmake\vc8\libsword.vcproj
- In Project Properties add ../../../../curl/lib/DLL-Debug to Additional Library Directories
- Build all
Step 4: Compiling utilities
- Open $dir$\sword-$version$\utilities\vcppmake\utilities.sln
- Build all
This step will not complete linking fails with Errors similar to: Error 1 error LNK1104: cannot open file 'libsword.lib' C:\Code\LibSword\sword-1.6.1\utilities\vcppmake\LINK vpl2mod Error 6 error LNK1181: cannot open input file 'icuuc.lib' C:\Code\LibSword\sword-1.6.1\lib\vcppmake\vc8\LINK libsword
Option 2: Compiling diatheke
- Open $dir$\sword-$version$\utilities\diatheke\diatheke.vcproj
- Build all