| 1 |
neo works with Linux other UNIX-like operating systems such as macOS |
| 2 |
and FreeBSD. Native Windows is not supported, but neo can work with WSL. |
| 3 |
|
| 4 |
The following packages are required to build and run neo: |
| 5 |
|
| 6 |
- autoconf: neo is built using autotools |
| 7 |
- build-essential: make and g++ are used for building |
| 8 |
- libncurses-dev: neo uses ncursesw to control the terminal |
| 9 |
|
| 10 |
Ensure that your C++ compiler supports C++11 and that your autoconf |
| 11 |
version is at least 2.61. g++ and clang++ should both work for |
| 12 |
compilation. |
| 13 |
|
| 14 |
To build neo, run the following shell commands from the main directory: |
| 15 |
|
| 16 |
./autogen.sh |
| 17 |
./configure |
| 18 |
make |
| 19 |
sudo make install |
| 20 |
|
| 21 |
|
| 22 |
For developers, the original author strongly recommends creating a "build" |
| 23 |
directory and running most of the steps from there. This avoids having |
| 24 |
autotools clutter the "src" directory with build artifacts. |
| 25 |
The .gitignore might not be ignoring everything that it needs to... |
| 26 |
|
| 27 |
./autogen.sh |
| 28 |
mkdir -p build |
| 29 |
cd build |
| 30 |
make clean make -j3 |
| 31 |
sudo make install |
| 32 |
|
| 33 |
|
| 34 |
If you wish to work on neo or debug it, the following configure options |
| 35 |
may help: |
| 36 |
|
| 37 |
./configure CXXFLAGS='-g -O0 -Wall -Werror' |
| 38 |
|
| 39 |
|
| 40 |
Here is a build recipe for users who want a smaller install size. |
| 41 |
In the original author's experience, clang++ produces a slightly smaller |
| 42 |
executable for neo. |
| 43 |
|
| 44 |
./configure CXXFLAGS="-Os -march=native -mtune=native -DNDEBUG -fno-exceptions -ffunction-sections -fdata-sections -flto" LDFLAGS="-Wl,--gc-sections -flto" CXX="clang++" |
| 45 |
make -j3 |
| 46 |
sudo make install-strip |
| 47 |
|
| 48 |
|
| 49 |
To uninstall neo, run the following command from the directory where you built neo: |
| 50 |
|
| 51 |
sudo make uninstall |
| 52 |
|
| 53 |
neo can also be manually uninstalled by simply deleting the installed neo executable and neo.6 man page. |