Windows: fatal error C1083: Cannot open include file: 'qdldl_types.h'
stephane-caron opened this issue · comments
@WCHIHO is reporting the following build error on Windows (Microsoft Visual Studio Community 2018 using Python environment including MSBuild) when installing via pip install qpsolvers
, which depends on qdldl. The build seems to fail at qdldl:
" running build_ext
-- Selecting Windows SDK version to target Windows 10.0.19043.
CMake Error at CMakeLists.txt:4 (project):
Failed to run MSBuild command:
MSBuild.exe
to get the value of VCTargetsPath:
The system cannot find the file specified.
cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
qdldl.cpp
c\qdldl/include/qdldl.h(5): fatal error C1083: Cannot open include file: 'qdldl_types.h': No such file or directory
error: command 'C:\Program Files\Microsoft Visual "
More details at qpsolvers/qpsolvers@8016a01#commitcomment-60090952
This looks similar to this SO question but it should have been fixed with the pip wheels. 🤔
Any insight as to what is causing this build failure?
@WCHIHO I have just tried installing from PyPI from Microsoft Visual Studio Community 2022 (Tools → Python → Python Environments) and the installation was successful for both the Python 3.8 and Python 3.9 environments.
It seems you are using an older version of MVSC. Is your Python version >= 3.8?
It seems the qdldl wheels are not available for older versions of Python, which would explain this build error.
OK, then the issue is not related to qdldl any more. Let's close this and continue with your issue at qpsolvers/qpsolvers#48