CMake Error: The following variables are used in this project, but they are set to NOTFOUND.

1,998 views
Skip to first unread message

SpiritedAway

unread,
Aug 9, 2013, 8:39:46 AM8/9/13
to ycm-...@googlegroups.com
when I generate makefile, the list errors is shown below:


 $cmake -G "Unix Makefiles" -DUSE_SYSTEM_LIBCLANG=ON . ~/.vim/bundle/YouCompleteMe/cpp
-- The C compiler identification is GNU 4.7.3
-- The CXX compiler identification is GNU 4.7.3
-- 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.4", minimum required is "2.5") 
Using libclang to provide semantic completion for C/C++/ObjC
Using external libclang: TEMP-NOTFOUND
-- Found PythonInterp: /usr/bin/python (found version "2.7.4") 
-- 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  
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
TEMP
    linked by target "ycm_core" in directory /home/free/.vim/bundle/YouCompleteMe/cpp/ycm

-- Configuring incomplete, errors occurred!


$ clang --version
Ubuntu clang version 3.2-1~exp9ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2)
Target: x86_64-pc-linux-gnu
Thread model: posix


$ whereis clang
clang: /usr/bin/clang /usr/lib/clang /usr/bin/X11/clang /usr/include/clang /usr/share/clang /usr/share/man/man1/clang.1.gz


How can I fix it? Thanks folks!

Val Markovic

unread,
Aug 9, 2013, 1:16:07 PM8/9/13
to SpiritedAway, ycm-...@googlegroups.com
Did you try using the install.sh script? It sets everything up for you so you don't have to compile yourself.

If compiling by yourself, did you go through the full installation guide in the docs?

The error is telling you that CMake couldn't find libclang on your system. You may want to set EXTERNAL_LIBCLANG_PATH in the CMake call explicitly. See the installation guide for details.


--
You received this message because you are subscribed to the Google Groups "ycm-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ycm-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ycm-users/cff404fe-e975-4678-9abc-99c70d743947%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Freewanting

unread,
Aug 11, 2013, 12:42:09 AM8/11/13
to Val Markovic, ycm-...@googlegroups.com
Yeah, I have read the context about full installation guide for several times. 
At first, I execute install.sh, there's no errors in progress.  I want to it supported C-family languages, so I use ./install.sh --clang-completer.
And I found it will auto download clang of version 3.3. But after it compiled successful, I found it can't work however.  

Then I tried to compiled by myself, I use "sudo apt-get install clang" to install clang that it's version is 3.2. This step I have a little question if I want to use 
system version of libclang about how to 
set DEXTERNAL_LIBCLANG_PATH, because I can't find libclang.so in my system(ubuntu13.04 x64  after install clang).


And my vim version is 7.4a


Thanks very much!


Reply all
Reply to author
Forward
0 new messages