-
Notifications
You must be signed in to change notification settings - Fork 64
/
Copy pathINSTALL
47 lines (33 loc) · 1.5 KB
/
INSTALL
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
Installation Instructions
*************************
This package uses CMake to generate a Makefile (on Linux) or
MS Visual Studio project file (on Windows).
For information on using CMake, see www.cmake.org.
A more extensive guide on how to compile and link the SISL library and
applications build upon it can be found in the reference manual.
--------------------------------------------------------------------------------
LINUX
As a Quick Start Guide, on Linux, make a build directory inside the source
directory
$ cd <path_to_source_code>
$ mkdir build
$ cd build
Run the cmake program to setup the build process, selecting Debug or Release
as build type, optionally selecting a local install folder:
$ cmake .. -DCMAKE_BUILD_TYPE=Release (-DCMAKE_INSTALL_PREFIX=$HOME/install)
For a gui-like cmake interface use ccmake (from cmake-ncurses-gui).
Build the library:
$ make
Install the library to a local folder (requires the use of
-DCMAKE_INSTALL_PREFIX with a local folder in the previous step):
$ make install
If the -DCMAKE_INSTALL_PREFIX in the cmake step was omitted or was set to a
system folder (like /usr/local) the user needs elevated privileges to install
the library:
$ sudo make install
--------------------------------------------------------------------------------
WINDOWS
On Windows, add a new build folder somewhere. Start the CMake
executable and fill in the paths to the source and build folders. When
you run CMake, a Visual Studio project solution file will be generated
in the build folder.