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