-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathINSTALL
69 lines (50 loc) · 2.58 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
64
65
66
67
68
69
Installing Survex on Unix
=========================
If you are using Debian Linux or Ubuntu Linux or a distribution based
on one of these, you will find it easier to install one of the
prepackaged versions of Survex.
Otherwise you'll need to build from source. These instructions assume you're
building from released tar archive - if you want to build from by checking out
code from the git repository then you'll need additional tools installed,
documented at: https://survex.com/cvs.html
First of all, you need to make sure you have the required libraries installed.
Where possible it's usually easier to install these using your Linux
distribution's package manager.
Note that C/C++ library packages are usually split into runtime and
development, usually with similar names but with a -dev or -devel or similar
suffix on the development one. You'll need both installed to build Survex,
but typically installing the development package will automatically install
the corresponding runtime package too.
* The main dependency is wxWidgets 3.0 or later - if there's a suitable
wxWidgets package for your platform, then just use that.
Otherwise download the source code from https://wxwidgets.org/ and
follow their build instructions. IMPORTANT: You must enable OpenGL
support by adding --with-opengl to the configure command line.
* You'll also need a working C and C++ compiler (with support for C99 and
C++11), and also the OpenGL development libraries if these aren't pulled in
by installing wxWidgets.
* Version 7.2.0 or later of the PROJ library is needed for coordinate
conversion functionality.
* Optionally, GDAL is used to support reading geodata files. If not available
this feature is disabled.
* Optionally, FFMPEG is used if available to implement Aven's movie export
feature. If not available this feature is disabled.
Then at a shell prompt, unpack the source code, cd into the directory, and
enter the following commands:
./configure
make
make install
By default 'make install' will try to install Survex under /usr/local,
which means you'll probably need to become root for the 'make install' stage.
If you use sudo to manage root access, then:
sudo make install
You can tell configure to install Survex elsewhere (e.g. under your home
directory) like so:
./configure --prefix=/home/olly/survex
make
make install
If your wxWidgets installation isn't picked up automatically, or you
have more than one version installed and want to select a particular
one, then you can specify this like so:
./configure WX_CONFIG=/opt/bin/wx-config
You can use both --prefix and WX_CONFIG= if necessary.