source: git/INSTALL @ 1c80bef

RELEASE/1.2debug-cidebug-ci-sanitisersfaster-cavernlogstereowalls-datawalls-data-hanging-as-warning
Last change on this file since 1c80bef was 4a7c2f0d, checked in by Olly Betts <olly@…>, 7 years ago

Probe for options required to enable C++11 support

At this point it seems reasonable to assume the C++ compiler can
support C++11 (Debian wheezy and Ubuntu trusty both have a recent
enough GCC), so we just need to probe for any options required to
enable this.

Fixes building 1.2.31 with GCC < 6, reported by Wookey.

  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[64d37a3]1Installing Survex on Unix
2=========================
[8a64c35]3
[4a320aa]4If you are using Debian Linux or Ubuntu Linux or a distribution based
[0211218a]5on one of these, you will find it easier to install one of the
6prepackaged versions of Survex.
[6c7fbd5]7
[0211218a]8Otherwise building from source is very easy.  First of all, you need
9to make sure you have the required libraries installed.  The main
[cea3549]10dependency is wxWidgets 2.8 or later - if there's a suitable wxWidgets
[4a320aa]11package for your platform, then just use that (note: library packages
12are usually split into runtime and development, usually with the same
13name but with a -dev or -devel or similar suffix on the latter - you'll
[0211218a]14need both to build Survex).
15
[2c1c52e]16Otherwise download the source code from https://wxwidgets.org/ and
[0211218a]17follow their build instructions.  IMPORTANT: You must enable OpenGL
[7a0710c]18support by adding --with-opengl to the configure command line, and
19you probably want to use --enable-unicode too.
[0211218a]20
[4a7c2f0d]21You'll also need a working C and C++ compiler (with support for C++11), and
22also the OpenGL development libraries if these aren't pulled in by installing
23wxWidgets.
[0211218a]24
25Then at a shell prompt, enter the following commands:
[55302e3]26
27./configure
28make
[8a64c35]29make install
30
[7a0710c]31By default 'make install' will try to install Survex under /usr/local,
32which means you'll probably need to become root for the 'make install' stage.
33If you use sudo to manage root access, then:
34
35sudo make install
36
37You can tell configure to install Survex elsewhere (e.g. under your home
[0211218a]38directory) like so:
[55302e3]39
[8a64c35]40./configure --prefix=/home/olly/survex
41make
42make install
[0211218a]43
44If your wxWidgets installation isn't picked up automatically, or you
45have more than one version installed and want to select a particular
46one, then you can specify this like so:
47
[4a320aa]48./configure WX_CONFIG=/opt/bin/wx-config
[0211218a]49
[4a320aa]50You can use both --prefix and WX_CONFIG= if necessary.
Note: See TracBrowser for help on using the repository browser.