Skip to main content

Neovim build on FreeBSD

Posted in

As of wirting this post neovim depends on:

- libtermkey (not yet in ports)
- libunibilium (no yet in ports)
- libvterm (no yet in ports)
- msgpack-c (/usr/ports/devel/msgpack has version 0.5.7, but neovim requires 1.0.0)
- lua-lpeg (port has just been added)
- lua-MessagePack (port is pending review)
- lua-bit (/usr/ports/devel/lua-bitlib)
- lua (lua interpreter binary on FreeBSD is called lua51/lua52, hence -DLUA_PRG)

Until corresponding port are added one of the ways to get neovim built on FreeBSD is:


$ cd neovim_repo
$ mkdir build
$ cd build
$ cmake \
-DLUA_PRG=/usr/local/bin/lua52 \
-DLIBTERMKEY_INCLUDE_DIR=$HOME/ws/GIT/libtermkey \
-DLIBTERMKEY_LIBRARY=$HOME/ws/GIT/libtermkey/.libs/libtermkey.so \
-DLIBTERMKEY_USE_STATIC=0 \
-DLIBUNIBILIUM_INCLUDE_DIR=$HOME/ws/GIT/unibilium \
-DLIBUNIBILIUM_LIBRARY=$HOME/ws/GIT/unibilium/.libs/libunibilium.a \
-DLIBVTERM_INCLUDE_DIR=$HOME/ws/GIT/libvterm/include \
-DLIBVTERM_LIBRARY=$HOME/ws/GIT/libvterm/.libs/libvterm.a \
-DMSGPACK_INCLUDE_DIR=$HOME/opt/msgpack-c/include \
-DMSGPACK_LIBRARY=$HOME/opt/msgpack-c/lib/libmsgpack.so \
..

As of 05-05-2015, the cmake invocation should look like this:


cmake \
-DLUA_PRG=/usr/local/bin/lua52 \
-DLIBTERMKEY_INCLUDE_DIR=$HOME/ws/GIT/libtermkey \
-DLIBTERMKEY_LIBRARY=$HOME/ws/GIT/libtermkey/.libs/libtermkey.so \
-DLIBTERMKEY_USE_STATIC=0 \
-DUNIBILIUM_INCLUDE_DIR=$HOME/ws/GIT/unibilium \
-DUNIBILIUM_LIBRARY=$HOME/ws/GIT/unibilium/.libs/libunibilium.a \
-DLIBVTERM_INCLUDE_DIR=$HOME/ws/GIT/libvterm/include \
-DLIBVTERM_LIBRARY=$HOME/ws/GIT/libvterm/.libs/libvterm.a \
-DMSGPACK_INCLUDE_DIR=$HOME/opt/msgpack-c/include \
-DMSGPACK_LIBRARY=$HOME/opt/msgpack-c/lib/libmsgpack.so \
..

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
                    o          `O               
o OooOOo O o .oOOo.
o o O O o
O O O o O
O O o ooOOo. o o o `oOOo' ooOO
o o O O O O O O o o
O O o o `o O o O' o O O
o' `OoOO `OooO' `OoO' `OoO' `OooO' OooO
o
OoO'
Enter the code depicted in ASCII art style.