view INSTALL @ 28:ef264c1e9ee5

fix msvc build
author Administrator@jodogne-w01
date Wed, 29 Aug 2012 11:07:55 +0200
parents 7908a4c25a18
children 0a04c70747d9
line wrap: on
line source

Palantir - A Lightweight, RESTful DICOM Server
==============================================


Dependencies
------------

1) CMake: Palantir uses CMake (http://www.cmake.org/) to automate its
   building process. 

2) Python: Some code is autogenerated through Python
   (http://www.python.org/).

3) Mercurial: To use the cutting edge code, a Mercurial client must be
   installed (http://mercurial.selenic.com/). We recommand TortoiseHg.

W) 7-Zip: For the native build under Windows, the 7-Zip tool is used
   to uncompress the third-party packages (http://www.7-zip.org/).

You thus have to download and install CMake, Python, Mercurial and
possibly 7-Zip first. The path to their executable must be in the
"PATH" environment variable.

The other third party dependencies are automatically downloaded by the
CMake scripts. The downloaded packages are stored in the
"ThirdPartyDownloads" directory.


Building Palantir at a glance
-----------------------------

To build Palantir, you must:

1) Download the source code (either using Mercurial, or through the
   released versions). For the examples below, we assume the source
   directory is "~/Palantir".

2) Create a build directory. For the examples below, we assume the
   build directory is "~/PalantirBuild".



Native Linux Compilation
------------------------

To build binaries with debug information:

# cd ~/PalantirBuild
# cmake -DCMAKE_BUILD_TYPE=DEBUG ~/Palantir
# make
# make doc


To build a release version:

# cd ~/PalantirBuild
# cmake -DCMAKE_BUILD_TYPE=RELEASE ~/Palantir
# make
# make doc


Under Linux, you have the possibility to dynamically link Palantir
against the shared libraries of your system, provided their version is
recent enough. This greatly speeds up the compilation:

# cd ~/PalantirBuild
# cmake -DSTATIC_BUILD=OFF -DCMAKE_BUILD_TYPE=DEBUG ~/Palantir
# make

 

Cross-Compilation for Windows under Linux
-----------------------------------------

To cross-compile Windows binaries under Linux using MinGW, please use
the following command:

# cd ~/PalantirBuild
# cmake -DCMAKE_TOOLCHAIN_FILE=~/Palantir/Resources/MinGWToolchain.cmake -DCMAKE_BUILD_TYPE=DEBUG ~/Palantir
# make



Native Windows build with MinGW (VERY SLOW)
-------------------------------------------

# cd [...]\PalantirBuild
# cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=DEBUG [...]\Palantir
# mingw32-make



Native Windows build with Microsoft Visual Studio 2005
------------------------------------------------------

# cd [...]\PalantirBuild
# cmake -G "Visual Studio 8 2005" [...]\Palantir

Then open the "[...]/PalantirBuild/Palantir.sln" with Visual Studio.

NOTES:
* More recent versions of Visual Studio should also work.
* You might have to install the Platform SDK (version 6 or above):
  http://en.wikipedia.org/wiki/Microsoft_Windows_SDK.
  Read the CMake FAQ: http://goo.gl/By90B