forked from cryos/avogadro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
63 lines (41 loc) · 1.69 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Requirements
============
-- CMake 2.6.0 or later
-- Qt 4.4.x or later
-- OpenBabel 2.2.0 or later
-- Eigen 2.0.0_beta6 or later
Basic Installation
==================
These instructions give a very basic overview of how to configure, compile and
install Avogadro on most systems. If you are using unique install locations
and/or libraries are not automatically detected please consult the 'Advanced'
section.
1. Create a 'build' directory in the package source directory.
mkdir build
cd build
2. Configure the build system
cmake ../
3. Compile
make -j2
4. Install
sudo make install
Advanced
========
The build system (CMake) provides mechanisms for specifying non-standard
installation locations.
-DCMAKE_INSTALL_PREFIX : specify the installation prefix
(default /usr/local)
-DLIB_INSTALL_DIR : specify the install location for libraries
(default ${CMAKE_INSTALL_PREFIX}/lib)
-DOPENBABEL2_LIBRARIES : specify the OpenBabel2 libraries
-DOPENBABEL2_INCLUDE_DIR : specify the OpenBabel2 include directory
-DEIGEN2_INCLUDE_DIR : specify the Eigen include directory
-DENABLE_PYTHON : specify whether to build Boost.Python interpreter
(default = TRUE)
For more information please consult the CMake documentation.
Avogadro uses a few environment variables to find things at runtime. If Avogadro
is installed to the location specified at compile time none of these variables
need to be set.
AVOGADRO_PLUGINS - the base location of Avogadro plugins, e.g. export
AVOGADRO_PLUGINS="/usr/local/lib/avogadro:/home/user/build/avogadro/libavogadro/src"
AVOGADRO_TRANSLATIONS - the location of the translation files.