Skip to content

Instantly share code, notes, and snippets.

@jstaursky
Last active March 16, 2021 14:46
Show Gist options
  • Save jstaursky/1777cb535daef2201d955fcee1bc5be1 to your computer and use it in GitHub Desktop.
Save jstaursky/1777cb535daef2201d955fcee1bc5be1 to your computer and use it in GitHub Desktop.

First make sure you install the dependencies

  • cmake
  • sudo apt install llvm-11 libclang-11-dev llvm-11 llvm-11-dev llvm-11-runtime llvm-11-tools

(may or may not be missing one, but they are all in the repositories, no need to manually install or build from src)

  1. git clone https://github.com/Andersbakken/rtags
  2. git submodule init
  3. git submodule update

and finally,

./configure --prefix $HOME/.local --cmake-argument \
-DLIBCLANG_LLVM_CONFIG_EXECUTABLE=/usr/lib/llvm-11/bin/llvm-config \ 
--cmake-argument -DCMAKE_EXPORT_COMPILE_COMMANDS=1 \
--cmake-argument -DRTAGS_NO_ELISP_BYTECOMPILE=1

from here follow the rest of the instructions from https://eklitzke.org/using-emacs-and-rtags-with-autotools-c++-projects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment