source: git/INSTALL @ 0b3f35e

Last change on this file since 0b3f35e was fd0e32a, checked in by Olly Betts <olly@…>, 4 months ago

Raise wxWidgets requirement to >= 3.2.0

Previously it was >= 3.0.0 but it is starting to become hard to
keep everything working with 3.0.0 and the time and effort seems
better directed to other things.

The last 3.0.x release was 3.0.5.1 released 2020-05-02.

wx3.2.0 was released 2022-07-06 and it seems everywhere with wxWidgets
packages upgraded to 3.2.x some time ago.

  • Property mode set to 100644
File size: 2.6 KB
Line 
1Installing Survex on Unix
2=========================
3
4If you are using Debian Linux or Ubuntu Linux or a distribution based
5on one of these, you will find it easier to install one of the
6prepackaged versions of Survex.
7
8Otherwise you'll need to build from source.  These instructions assume you're
9building from released tar archive - if you want to build from by checking out
10code from the git repository then you'll need additional tools installed,
11documented at: https://survex.com/cvs.html
12
13First of all, you need to make sure you have the required libraries installed.
14Where possible it's usually easier to install these using your Linux
15distribution's package manager.
16
17Note that C/C++ library packages are usually split into runtime and
18development, usually with similar names but with a -dev or -devel or similar
19suffix on the development one.  You'll need both installed to build Survex,
20but typically installing the development package will automatically install
21the corresponding runtime package too.
22
23* The main dependency is wxWidgets 3.2 or later - if there's a suitable
24  wxWidgets package for your platform, then just use that.
25
26  Otherwise download the source code from https://wxwidgets.org/ and
27  follow their build instructions.  IMPORTANT: You must enable OpenGL
28  support by adding --with-opengl to the configure command line.
29
30  The last release to support wxWidgets 3.0 was Survex 1.4.17.
31
32* You'll also need a working C and C++ compiler (with support for C99 and
33  C++11), and also the OpenGL development libraries if these aren't pulled in
34  by installing wxWidgets.
35
36* Version 7.2.0 or later of the PROJ library is needed for coordinate
37  conversion functionality.
38
39* Optionally, GDAL is used to support reading geodata files.  If not available
40  this feature is disabled.
41
42* Optionally, FFMPEG is used if available to implement Aven's movie export
43  feature.  If not available this feature is disabled.
44
45Then at a shell prompt, unpack the source code, cd into the directory, and
46enter the following commands:
47
48./configure
49make
50make install
51
52By default 'make install' will try to install Survex under /usr/local,
53which means you'll probably need to become root for the 'make install' stage.
54If you use sudo to manage root access, then:
55
56sudo make install
57
58You can tell configure to install Survex elsewhere (e.g. under your home
59directory) like so:
60
61./configure --prefix=/home/olly/survex
62make
63make install
64
65If your wxWidgets installation isn't picked up automatically, or you
66have more than one version installed and want to select a particular
67one, then you can specify this like so:
68
69./configure WX_CONFIG=/opt/bin/wx-config
70
71You can use both --prefix and WX_CONFIG= if necessary.
Note: See TracBrowser for help on using the repository browser.