From 3fd1670363a8bbcb3bcd6e3a66f7324db283c66d Mon Sep 17 00:00:00 2001 From: eidheim Date: Thu, 31 Dec 2015 13:35:55 +0100 Subject: [PATCH] installation instructions improved, and got rid of a compilation warning --- docs/install.md | 9 ++++++--- src/window.cc | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/install.md b/docs/install.md index 4263fbf..a06f88e 100644 --- a/docs/install.md +++ b/docs/install.md @@ -10,11 +10,12 @@ - [MSYS 2](#windows-with-msys2-httpsmsys2githubio) ## Debian/Ubuntu 15 -Note that if you use a different libclang version, be sure to install the same version of lldb (dev package). +**Currently, if using another libclang version, the same version of lldb is needed.** Install dependencies: ```sh -sudo apt-get install git cmake make g++ libclang-dev liblldb-3.5-dev pkg-config libboost-system-dev libboost-thread-dev libboost-filesystem-dev libboost-log-dev libboost-regex-dev libgtksourceviewmm-3.0-dev aspell-en libaspell-dev +sudo apt-get install git cmake make g++ pkg-config libboost-system-dev libboost-thread-dev libboost-filesystem-dev libboost-log-dev libboost-regex-dev libgtksourceviewmm-3.0-dev aspell-en libaspell-dev +sudo apt-get install libclang-3.6-dev liblldb-3.6-dev || sudo apt-get install libclang-3.5-dev liblldb-3.5-dev sudo apt-get install clang-format-3.6 || sudo apt-get install clang-format-3.5 ``` @@ -45,6 +46,8 @@ sudo make install ``` ##Arch Linux +**lldb install instructions needed** + Package available in the Arch User Repository: https://aur.archlinux.org/packages/jucipp-git/ @@ -85,7 +88,7 @@ make install ``` ##Windows with MSYS2 (https://msys2.github.io/) -Note that MSYS2 does not yet support lldb, but you can still compile juCi++ without debug support. +**MSYS2 does not yet support lldb, but you can still compile juCi++ without debug support.** Install dependencies (replace `x86_64` with `i686` for 32-bit MSYS2 installs): ```sh diff --git a/src/window.cc b/src/window.cc index 58f53a1..388cb07 100644 --- a/src/window.cc +++ b/src/window.cc @@ -810,7 +810,7 @@ void Window::set_menu_actions() { auto end_line_iter=iter; while(!iter.ends_line() && iter.forward_char()) {} auto line=view->get_buffer()->get_text(iter, end_line_iter); - if(line_index>=line.bytes()) + if(static_cast(line_index)>=line.bytes()) line_index=0; view->get_buffer()->place_cursor(view->get_buffer()->get_iter_at_line_index(line_nr, line_index));