-
Notifications
You must be signed in to change notification settings - Fork 26
/
INSTALL
53 lines (35 loc) · 1.64 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
neo works with Linux other UNIX-like operating systems such as macOS
and FreeBSD. Native Windows is not supported, but neo can work with WSL.
The following packages are required to build and run neo:
- autoconf: neo is built using autotools
- build-essential: make and g++ are used for building
- libncurses-dev: neo uses ncursesw to control the terminal
Ensure that your C++ compiler supports C++11 and that your autoconf
version is at least 2.61. g++ and clang++ should both work for
compilation.
To build neo, run the following shell commands from the main directory:
./autogen.sh
./configure
make
sudo make install
For developers, the original author strongly recommends creating a "build"
directory and running most of the steps from there. This avoids having
autotools clutter the "src" directory with build artifacts.
The .gitignore might not be ignoring everything that it needs to...
./autogen.sh
mkdir -p build
cd build
make clean make -j3
sudo make install
If you wish to work on neo or debug it, the following configure options
may help:
./configure CXXFLAGS='-g -O0 -Wall -Werror'
Here is a build recipe for users who want a smaller install size.
In the original author's experience, clang++ produces a slightly smaller
executable for neo.
./configure CXXFLAGS="-Os -march=native -mtune=native -DNDEBUG -fno-exceptions -ffunction-sections -fdata-sections -flto" LDFLAGS="-Wl,--gc-sections -flto" CXX="clang++"
make -j3
sudo make install-strip
To uninstall neo, run the following command from the directory where you built neo:
sudo make uninstall
neo can also be manually uninstalled by simply deleting the installed neo executable and neo.6 man page.