Tutorial:Compiling & Installing SWORD on Windows: Difference between revisions

From CrossWire Bible Society
Jump to navigation Jump to search
m Reverted edits by DavidStrickland (Talk) to last revision by Osk
Line 5: Line 5:
# 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.
# 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 ===
=== Compiling cURL ===
# Download the latest release of [http://curl.haxx.se/download/curl-7.21.1.zip cURL]
# Download the latest release of [http://curl.haxx.se/metalink.cgi?curl=zip cURL]
# Extract the ZIP to $dir$
# Extract the ZIP to $dir$
# Rename the cURL directory to "curl" (with no version number)
# Rename the cURL directory to "curl" (with no version number)
# Open $dir$\curl\vc6curl.dsw
# Open $dir$\curl\vc6curl.dsw
# Allow Visual Studio to update the project files
# Allow Visual Studio to update the project files
# In Project Properties change the Configuration Type from DLL to LIB
# Build all
# Build all


===Step 2: Compile icu-sword ===
=== Compiling icu-sword ===


# Download the latest release of [http://crosswire.org/ftpmirror/pub/sword/source/icu-sword/ icu-sword]
# Download the latest release of [http://crosswire.org/ftpmirror/pub/sword/source/icu-sword/ icu-sword]
Line 21: Line 20:
# Build all
# Build all


===Step 3: Compile libsword ===
=== Compiling libsword ===
# Download the latest release of [http://www.crosswire.org/ftpmirror/pub/sword/source/v1.6/ The SWORD Project]
# Download the latest release of [http://www.crosswire.org/ftpmirror/pub/sword/source/v1.6/ The SWORD Project]
# Extract the tarball to $dir$
# Extract the tarball to $dir$
#:If you are building utilities or diatheke, the following steps are not necessary:
#:If you are building utilities or diatheke, the following steps are not necessary:
# Open $dir$\sword-$version$\lib\vcppmake\vc8\libsword.vcproj
# Open $dir$\sword-$version$\lib\vcppmake\vc8\libsword.vcproj
# In Project Properties add ../../../../curl/lib/DLL-Debug to Additional Library Directories
# Build all
# Build all


===Step 4: Compiling utilities ===
=== Compiling utilities ===
 


# Open $dir$\sword-$version$\utilities\vcppmake\utilities.sln
# Open $dir$\sword-$version$\utilities\vcppmake\utilities.sln
# Build all
# Build all


This step will not complete linking fails with Errors revolving around:
=== Compiling diatheke ===
Error LNK1181: cannot open input file 'icuuc.lib' C:\Code\LibSword\sword-1.6.1\lib\vcppmake\vc8\LINK libsword there isn't a file by that name in any of the downloads.
 
===Option 2: Compiling diatheke ===


# Open $dir$\sword-$version$\utilities\diatheke\diatheke.vcproj
# Open $dir$\sword-$version$\utilities\diatheke\diatheke.vcproj

Revision as of 23:48, 22 August 2010

For compiling on Linux, see Tutorial:Compiling & Installing SWORD.

Compiling The SWORD Project using MS Visual Studio 2008

  1. 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.

Compiling cURL

  1. Download the latest release of cURL
  2. Extract the ZIP to $dir$
  3. Rename the cURL directory to "curl" (with no version number)
  4. Open $dir$\curl\vc6curl.dsw
  5. Allow Visual Studio to update the project files
  6. Build all

Compiling icu-sword

  1. Download the latest release of icu-sword
  2. Extract the tarball to $dir$
  3. Open $dir$\icu-sword\source\allinone\allinone.sln
  4. Build all

Compiling libsword

  1. Download the latest release of The SWORD Project
  2. Extract the tarball to $dir$
    If you are building utilities or diatheke, the following steps are not necessary:
  3. Open $dir$\sword-$version$\lib\vcppmake\vc8\libsword.vcproj
  4. Build all

Compiling utilities

  1. Open $dir$\sword-$version$\utilities\vcppmake\utilities.sln
  2. Build all

Compiling diatheke

  1. Open $dir$\sword-$version$\utilities\diatheke\diatheke.vcproj
  2. Build all