-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to install the library on windows 11 #133
Comments
It looks like you are getting some issues during compilation. From the error trace, it appears there’s an issue with the Visual Studio C++ compiler configuration. The main cause seems to be that cl.exe can't compile a simple test program. A few things to try: Verify Visual Studio Build Tools: Ensure that the C++ build tools are installed for Visual Studio 2022, and confirm that you’re using the correct MSVC version. Check that all dependencies for C++ compilation are properly configured in the environment. Permissions on Temp Directories: Some of the file tracking errors are coming from the temporary directory paths (C:\Users\kaypa\AppData\Local\Temp). Sometimes build tools struggle with write permissions in the temp folders. Try clearing the temp folder or redirecting the build process to a non-temp directory with full write access. CMake and Python Environment: Make sure you’re using a compatible CMake version (>=3.15) and a compatible Python environment. Running cmake --version and python --version will confirm. Let me know if any of these steps help or if you need further assistance debugging this! |
Thanks for your answer. Sorry, it is long ago that I developed with C++. And it is not long ago that I switched from MacOS to Windows. The first time I installed everything for "Build desktop with c++" or simular (german: "Desktopentwicklung mit C++"). Same problem. Now I installed C++/CLI-Unterstützung für v143-Buildtools (v14.41-17.11). Same problem. I use the PowerShell. A simple "helloworld"-app compiles perfect. I added C:\msys64\ucrt64\bin to path. Do I have to use a Microsoft Compiler? cmake version is 3.30.5 I also found this: https://stackoverflow.com/questions/53633705/cmake-the-c-compiler-is-not-able-to-compile-a-simple-test-program?newreg=12fa3861577d4e24815af309d66f03b1 There are several hints but I'm not sure what can I do. How to shorten the path? Thanks again for your help. |
So, I now fix the problem. I had to add the following line in the file C:\Users\kaypa\anaconda3\envs\pytorch_intel\Lib\site-packages\cmake\data\share\cmake-3.30\Modules\CMakeTestCCompiler.cmake as described at stackoverflow: Now, everything is installed but I'am not able to run the examples. See here: |
I ran into the same problem and figued out a solution, so I wanted to document it for the benefit of others Googling the same error. So the important part of the error is this:
The reason this occurs is because CMake tries to compile a test program in the build directory, but the directory exceeds the path length limit on Windows because of all of the hex codes that
I hope this helps. |
I tried to install the library as described:
pip install "intel-npu-acceleration-library @ git+https://github.com/intel/intel-npu-acceleration-library.git"
I get the following output from pip/compiler:
output.txt
I installed MSYS2 as descriped here: https://code.visualstudio.com/docs/cpp/config-mingw#_installing-the-mingww64-toolchain
I also installed the Visual Studio Build Tools (version 2022 not version 2019). I didn't found the old version.
Best regards
Kay
The text was updated successfully, but these errors were encountered: