File: INSTALL

package info (click to toggle)
eigen 1.0.5-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 452 kB
  • ctags: 476
  • sloc: cpp: 4,012; ansic: 224; sh: 17; makefile: 2
file content (73 lines) | stat: -rw-r--r-- 2,285 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
*** HOW TO INSTALL ***********************************************************

This file describes how to install Eigen using the CMake build-system. If
you don't want to (or can't) install CMake, don't worry: as Eigen is a pure
template library, it consists only of header files (*.h) and there's nothing
to compile. So it is enough to copy Eigen's header files to your favorite
include directory, and you're done. Ignore the tests/ subdirectory.

*** INSTALLATION USING CMAKE *************************************************

Like the rest of KDE4, Eigen uses CMake as build-system. You can use CMake to
install Eigen, as follows:

1. Install CMake
  There should exist packages for your favorite operating system, as CMake is
  getting quite widely used.

2. Enter the Eigen source directory (where this INSTALL file is)

3. Run the following command:

        cmake -DCMAKE_INSTALL_PREFIX=/where/to/install/

  where /where/to/install/ is the installation prefix. The actual directory to
  which the Eigen include files will be copied is:

        /where/to/install/include/eigen/

  Thus, if you wish to install Eigen to /usr/include/eigen, do:

        cmake -DCMAKE_INSTALL_PREFIX=/usr/

4. Run the following command with sufficient privileges:

        make install

  Here, "with sufficient privileges" means that depending on the installation
  directory, this command might require e.g. root privileges. On most
  operating systems, you can do:

        su
        make install

  while Ubuntu/Kubuntu users can do:

        sudo make install

*** HOW TO BUILD TESTS AND EXAMPLES ******************************************

You should first create an out-of-source build directory. In the sequel, we
will call $SOURCEDIR the source directory (where this INSTALL file is) and
$BUILDDIR the build directory.

1. Enter the build directory

  cd $BUILDDIR

2. Run CMake, tell it to build the tests and/or the examples.

  For the tests, do:
    cmake -DBUILD_TESTS=ON $SOURCEDIR

  For the examples, do:
    cmake -DBUILD_EXAMPLES=ON $SOURCEDIR

  If it complains that it can't find Qt or qmake, then check that you have
  Qt4 installed, and check that your environment variables are properly
  set up. In particular, Qt4's qmake should be in your PATH.

3. Run make

  make