source: git/INSTALL @ 6b74d5c

RELEASE/1.2debug-cidebug-ci-sanitisersfaster-cavernloglog-selectstereostereo-2025walls-datawalls-data-hanging-as-warningwarn-only-for-hanging-survey
Last change on this file since 6b74d5c was cea3549, checked in by Olly Betts <olly@…>, 13 years ago

INSTALL,lib/INSTALL.OSX,src/,survex.spec.in: Require at least
wxWidgets 2.8.0 - it was released just over 6 years ago now,
and the wx developers consider even 2.8 to be rather long in
the tooth. I haven't test build with wx 2.6 for more than a year
and it's no longer packaged for Debian. Dropping support for
older wx allows a number of workarounds to be removed.

  • Property mode set to 100644
File size: 1.7 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
16Otherwise download the source code from http://www.wxwidgets.org/ and
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
[7a0710c]21You'll also need a working C and C++ compiler, and also the OpenGL development
22libraries if these aren't pulled in by installing wxWidgets.
[0211218a]23
24Then at a shell prompt, enter the following commands:
[55302e3]25
26./configure
27make
[8a64c35]28make install
29
[7a0710c]30By default 'make install' will try to install Survex under /usr/local,
31which means you'll probably need to become root for the 'make install' stage.
32If you use sudo to manage root access, then:
33
34sudo make install
35
36You can tell configure to install Survex elsewhere (e.g. under your home
[0211218a]37directory) like so:
[55302e3]38
[8a64c35]39./configure --prefix=/home/olly/survex
40make
41make install
[0211218a]42
43If your wxWidgets installation isn't picked up automatically, or you
44have more than one version installed and want to select a particular
45one, then you can specify this like so:
46
[4a320aa]47./configure WX_CONFIG=/opt/bin/wx-config
[0211218a]48
[4a320aa]49You can use both --prefix and WX_CONFIG= if necessary.
Note: See TracBrowser for help on using the repository browser.