Skip to content
Richard Ulmer edited this page Sep 29, 2019 · 3 revisions

Building

Use GNU's make and the clang compiler to build:

cd kakoune/src
CXX=clang++ gmake 

Installing

After building Kakoune you can install it as root:

cd kakoune/src
CXX=clang++ doas gmake install

Depenpencies

setsid

For Kakoune's :new command you will need a setsid executable. Unfortunately there is no port available for this tool, but you can paste this script into $HOME/bin/setsid as a substitute:

#!/usr/bin/env perl

use POSIX;

setsid;
exec @ARGV;

Make this script executable using chmod +x "$HOME/bin/setsid" and make sure $HOME/bin is included in your $PATH.

Debugging

# Build with debugging symbols:
CXX=clang++ gmake debug=yes
CXX=clang++ doas gmake install

# Start Kakoune as usual and prepare the problem you'll debug.
# Make sure you have the `gdb` package installed. It provides `egdb`.
# Then find the PID of the Kakoune process and start gdb with it:
doas egdb /usr/local/bin/kak 2514
Clone this wiki locally