4. Download Clang for
x86_64 Ubuntu 14.04
5. Extract the content (the folders) into ~/ycm_temp/llvm_root_dir/
6. cd to ~/ycm_build.
7. Execute cmake -G "Unix Makefiles" -DPATH_TO_LLVM_ROOT=~/ycm_temp/llvm_root_dir . ~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp.
The output I got said that all went successful:
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
Your C++ compiler supports C++11, compiling in that mode.
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.9", minimum required is "2.6")
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.9", minimum required is "2.6")
Using libclang to provide semantic completion for C/C++/ObjC
Using external libclang: /home/patrick/ycm_temp/llvm_root_dir/lib/libclang.so
-- Found PythonInterp: /usr/bin/python2 (found version "2.7.9")
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: /home/patrick/ycm_build
(8). Execute make ycm_support_libs.
The output I got is basically:
Scanning dependencies of target BoostParts
[...]
Linking CXX static library libBoostParts.a
[ 75%] Built target BoostParts
Scanning dependencies of target ycm_client_support
Linking CXX shared library /home/patrick/.vim/bundle/YouCompleteMe/third_party/ycmd/ycm_core.so
[100%] Built target ycm_core
Scanning dependencies of target ycm_support_libs
[100%] Built target ycm_support_libs
(9). Open a .c file. You should see the message *The ycmd server SHUT DOWN[...]
Debug-Log:
-- Server crashed, no debug info from server
-- Server running at:
http://127.0.0.1:59344
-- Server process ID: 4787