Build failure on Win 10: Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIR)

657 views
Skip to first unread message

Robert Anderzén

unread,
Mar 27, 2016, 4:48:59 PM3/27/16
to ycm-users
Hi,

I am trying to install and use the YCM plugin for Vim 7.4 on Windows 10, but I run into a build error. All the required software and Vim are 32-bit versions and I use Python 3.5.1. 
First I tried to build and install using the install.py script but I run into the error below. Then I tried to manually build it, attempting to give CMake the paths by setting the -DPYTHON_LIBRARY and -DPYTHON_INCLUDE_DIR options when running CMake but again there is an error about not finding a Python related file, pyconfig.h. I have also tried modifying the environment variables in Windows and also tried with Python 2.7, but still no luck. The full command of the manual builld and output is further below. Any help is appreciated, thanks!

> python install.py --clang-completer --tern-completer
-- The C compiler identification is MSVC 19.0.23506.0
-- The CXX compiler identification is MSVC 19.0.23506.0
-- Check for working C compiler using: Visual Studio 14 2015
-- Check for working C compiler using: Visual Studio 14 2015 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 14 2015
-- Check for working CXX compiler using: Visual Studio 14 2015 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Your C++ compiler does NOT support C++11, compiling in C++03 mode.
CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
  Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
  (Required is at least version "3.3")
Call Stack (most recent call first):
  C:/Program Files (x86)/CMake/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
  C:/Program Files (x86)/CMake/share/cmake-3.5/Modules/FindPythonLibs.cmake:265 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:214 (find_package)


-- Configuring incomplete, errors occurred!
See also "C:/Users/John/AppData/Local/Temp/ycm_build.g6efjjom/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
  File "C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\build.py", line 445, in <module>
    Main()
  File "C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\build.py", line 434, in Main
    BuildYcmdLib( args )
  File "C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\build.py", line 331, in BuildYcmdLib
    subprocess.check_call( [ 'cmake' ] + full_cmake_args )
  File "C:\Program Files (x86)\Python3.5.1\lib\subprocess.py", line 584, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '-G', 'Visual Studio 14', '-DUSE_CLANG_COMPLETER=ON', '-DUSE_PYTHON2=OFF', 'C:\\Vim\\vimfiles\\bundle\\youcompleteme\\third_party\\ycmd\\cpp']' returned non-zero exit status 1
Traceback (most recent call last):
  File "install.py", line 32, in <module>
    Main()
  File "install.py", line 21, in Main
    subprocess.check_call( [ python_binary, build_file ] + sys.argv[1:] )
  File "C:\Program Files (x86)\Python3.5.1\lib\subprocess.py", line 584, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\Program Files (x86)\\Python3.5.1\\python.exe', 'C:\\Vim\\vimfiles\\bundle\\youcompleteme\\third_party\\ycmd\\build.py', '--clang-completer', '--tern-completer']' returned non-zero exit status 1

Manual build:  

> cmake -G "Visual Studio 14" -DPATH_TO_LLVM_ROOT=C:/ycm_temp/llvm_root_dir/ -DPYTHON_LIBRARY=C:\Program Files (x86)\Python3.5.1\libs\python35.lib -DPYTHON_INCLUDE_DIR=C:\Program Files (x86)\Python3.5.1\include . C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp

Your C++ compiler does NOT support C++11, compiling in C++03 mode.
Using libclang to provide semantic completion for C/C++/ObjC
Using external libclang: C:/ycm_temp/llvm_root_dir/lib/libclang.lib
-- Configuring done
-- Generating done
-- Build files have been written to: C:/ycm_build 

> cmake --build . --target ycm_core --config Release

Microsoft (R) Build Engine version 14.0.24730.2
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 3/27/2016 10:14:35 PM.
The target "BeforeGenerateProjectPriFile" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets (186,61)" does not exist in the project, and will be ignored.
The target "BeforeGenerateProjectPriFile" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets (186,61)" does not exist in the project, and will be ignored.
Project "C:\ycm_build\ycm\ycm_core.vcxproj" on node 1 (default targets).
Project "C:\ycm_build\ycm\ycm_core.vcxproj" (1) is building "C:\ycm_build\ZERO_CHECK.vcxproj" (2) on node 1 (default targets).
InitializeBuildStatus:
  Creating "Win32\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  All outputs are up-to-date.
FinalizeBuildStatus:
  Deleting file "Win32\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
  Touching "Win32\Release\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
Done Building Project "C:\ycm_build\ZERO_CHECK.vcxproj" (default targets).
The target "BeforeGenerateProjectPriFile" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets (186,61)" does not exist in the project, and will be ignored.
Project "C:\ycm_build\ycm\ycm_core.vcxproj" (1) is building "C:\ycm_build\BoostParts\BoostParts.vcxproj" (3) on node 1 (default targets).
InitializeBuildStatus:
  Touching "BoostParts.dir\Release\BoostParts.tlog\unsuccessfulbuild".
CustomBuild:
  All outputs are up-to-date.
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\CL.exe /c /IC:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts /IC:\Program /nologo /W3 /WX- /MP /O2 /Ob2 /Oi /Oy- /GL /D WIN32 /D _WINDOWS /D NDEBUG /D YCMD_CORE_VERSION=19 /D UNICODE /D _UNICODE /D BOOST_THREAD_DONT_USE_CHRONO /D BOOST_ALL_NO_LIB /D BOOST_PYTHON_SOURCE /D BOOST_THREAD_USE_LIB /D "CMAKE_INTDIR=\"Release\"" /D _UNICODE /D UNICODE /Gm- /EHsc /MD /GS /fp:precise /Zc:wchar_t- /Zc:forScope /Zc:inline /GR /Fo"BoostParts.dir\Release\\" /Fd"BoostParts.dir\Release\BoostParts.pdb" /Gd /TP /analyze- /errorReport:queue C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\converter\arg_to_python_base.cpp C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\converter\builtin_converters.cpp C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\converter\from_python.cpp C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\converter\registry.cpp C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\converter\type_id.cpp C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\dict.cpp C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\errors.cpp C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\exec.cpp C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\import.cpp C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\list.cpp C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\long.cpp C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\module.cpp C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\numeric.cpp C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object\class.cpp C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object\enum.cpp C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object\function.cpp C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object\function_doc_signature.cpp C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object\inheritance.cpp C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object\iterator.cpp C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object\life_support.cpp C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object\pickle_support.cpp C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object\stl_iterator.cpp C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object_operators.cpp C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object_protocol.cpp C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\slice.cpp C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\str.cpp C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\tuple.cpp C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\wrapper.cpp
  arg_to_python_base.cpp
  builtin_converters.cpp
  from_python.cpp
  registry.cpp
  type_id.cpp
  dict.cpp
  errors.cpp
  exec.cpp
C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\converter\from_python.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  import.cpp
C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\errors.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\exec.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\converter\registry.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\converter\type_id.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  list.cpp
  long.cpp
C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\converter\builtin_converters.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  module.cpp
  numeric.cpp
C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\converter\arg_to_python_base.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  class.cpp
  enum.cpp
C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\dict.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  function.cpp
C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\import.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\list.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\module.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\numeric.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  function_doc_signature.cpp
C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\long.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  inheritance.cpp
  iterator.cpp
  life_support.cpp
  pickle_support.cpp
C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object\class.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  stl_iterator.cpp
C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object\enum.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  object_operators.cpp
C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object\function.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  object_protocol.cpp
C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object\function_doc_signature.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  slice.cpp
C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object\inheritance.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object\life_support.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object\pickle_support.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object\iterator.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  str.cpp
C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object\stl_iterator.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  tuple.cpp
  wrapper.cpp
C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object_operators.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object_protocol.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\str.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\slice.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\wrapper.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\tuple.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
Done Building Project "C:\ycm_build\BoostParts\BoostParts.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\ycm_build\ycm\ycm_core.vcxproj" (default targets) -- FAILED.

Build FAILED.

"C:\ycm_build\ycm\ycm_core.vcxproj" (default target) (1) ->
"C:\ycm_build\BoostParts\BoostParts.vcxproj" (default target) (3) ->
(ClCompile target) -> 
  C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\converter\from_python.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\errors.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\exec.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\converter\registry.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\converter\type_id.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\converter\builtin_converters.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\converter\arg_to_python_base.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\dict.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\import.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\list.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\module.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\numeric.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\long.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object\class.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object\enum.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object\function.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object\function_doc_signature.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object\inheritance.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object\life_support.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object\pickle_support.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object\iterator.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object\stl_iterator.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object_operators.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\object_protocol.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\str.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\slice.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\wrapper.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]
  C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory (compiling source file C:\Vim\vimfiles\bundle\youcompleteme\third_party\ycmd\cpp\BoostParts\libs\python\src\tuple.cpp) [C:\ycm_build\BoostParts\BoostParts.vcxproj]

    0 Warning(s)
    28 Error(s)

Time Elapsed 00:00:01.15

Michel Bouard

unread,
Mar 28, 2016, 11:42:00 AM3/28/16
to Robert Anderzén, ycm-users
Which version of CMake are you using?

Concerning your manual build, you need to enclose the PYTHON_LIBRARY and PYTHON_INCLUDE_DIR variables in quotes because of spaces in the paths.

--
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/998278c4-ff50-4308-9dbf-1e11fd950f0c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Robert Anderzén

unread,
Mar 28, 2016, 4:32:34 PM3/28/16
to ycm-users, robert....@gmail.com
I'm using CMake 3.5.1. 

The automatic build still does not work but it was indeed as you said, that I had missed to include quotes for the spaces when building manually. Once I included them, it worked.

Thanks
...
Reply all
Reply to author
Forward
0 new messages