| 1 |
# CMake based build system |
| 2 |
|
| 3 |
The file contains instructions to build libpano13 with CMake. |
| 4 |
|
| 5 |
1. DEPENDENCIES |
| 6 |
|
| 7 |
libpano13 depends on the following packages: |
| 8 |
|
| 9 |
libjpeg |
| 10 |
libtiff |
| 11 |
libpng |
| 12 |
zlib |
| 13 |
suitesparse (optional) |
| 14 |
|
| 15 |
To compile, cmake and a C compiler such as gcc are required |
| 16 |
|
| 17 |
2. COMPILING |
| 18 |
|
| 19 |
First, create a build directory and change into it: |
| 20 |
|
| 21 |
mkdir BUILD |
| 22 |
cd BUILD |
| 23 |
|
| 24 |
Configure, compile and install: |
| 25 |
|
| 26 |
cmake .. |
| 27 |
make |
| 28 |
sudo make install |
| 29 |
|
| 30 |
Optionally create a distributable archive package: |
| 31 |
|
| 32 |
make package_source |
| 33 |
|
| 34 |
The build process can be configured with different switches. These variables |
| 35 |
can be set with the -D command line parameter. Important variables include: |
| 36 |
|
| 37 |
CMAKE_INSTALL_PREFIX Destination directory of make install |
| 38 |
(default: /usr/local) |
| 39 |
|
| 40 |
CMAKE_BUILD_TYPE Specify the build type (Release (Default) or Debug) |
| 41 |
|
| 42 |
LIB_SUFFIX Specifies suffix used for library paths. For AMD64, |
| 43 |
usually 64 is used as prefix. Default: empty. |
| 44 |
Setting to 64 results in: $CMAKE_INSTALL_PREFIX/lib64 |
| 45 |
|
| 46 |
SUPPORT_JAVA_PROGRAMS Compile with Java API (default: OFF) |
| 47 |
|
| 48 |
USE_SPARSE_LEVMAR Compile with SuiteSparse optimisation (default: OFF) |
| 49 |
|
| 50 |
|
| 51 |
CMake offers also a ccmake TUI which makes setting these variables and checking |
| 52 |
the paths to the dependencies easier. |
| 53 |
|
| 54 |
Please report any problems to the hugin-ptx group at google: |
| 55 |
http://groups.google.com/group/hugin-ptx |