I am a user of "YouCompleteME"..
while I try to recompile it with :"./install.sh --clang-completer", i get a error like this:
"no pre-built Clang 3.5 binaries for 32 bit linux. "
"You'll have to compile Clang 3.5 from source. "
"See the YCM docs for details on how to use a user-compiled libclang."
But I have installed the clang-3.5 with apt in my ubuntu 14.04. After going through the "ycmd" plugin, I find i have to set some environment variables manually,
set(EXTERNAL_LIBCLANG_PATH "/usr/lib/llvm-3.5/lib/")
set(PATH_TO_LLVM_ROOT "/usr/bin")
set(USE_SYSTEM_LIBCLANG "ON")
and find a comment like this:
# Clang 3.3 is the last version with pre-built x86 binaries upstream.
# That's too old now.
Actually, clang-3.5 is in ubuntu repo. I am not sure if you are aware of that.
if it's ok , i can provide a patch to fix it by adding piece of code as follow:
if (APPLE)
.......
elseif( UBUNTU14.04)
check_if_clang_3.5_installed()
set(EXTERNAL_LIBCLANG_PATH "/usr/lib/llvm-3.5/lib/")
set(PATH_TO_LLVM_ROOT "/usr/bin")
set(USE_SYSTEM_LIBCLANG "ON")
If you have installed on you system libclang 3.5 you could try to use ./install.sh --clang-completer --system-libclang
er...sorry , seems I miss the option...thanks.
if it worked, please close the issue.
Most helpful comment
If you have installed on you system libclang 3.5 you could try to use
./install.sh --clang-completer --system-libclang