Has any of you got this error?
error MSB6006: "CL.exe" exited with code -1073741515.
I'm not able to find the meaning of the error code anywhere. I get it when building a C++ project in VS2013 Pro.
The project compiled fine in VS2010. I made no additional changes to it after updating VS.
Fixed. I changed the Platform Toolset from Widnows SDK 7.1 to Visual Studio 2013 (v120).
Related
I have a local building agent for a Unity|HoloLens-Project. The whole time I had VS2019 on the agend installed and everything worked well. Today I had to install VS2022 on my agent because of a different .net 6 project (so it has nothing todo with my unity stuff!).
However, after installing VS2022, my Unity project can no longer be built with VS2019. I get the following output:
EXEC(0,0): Error : System.NotSupportedException: Visual Studio 2017 support for ARM64 is not installed.
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets(46,5): Error MSB3073: Der Befehl ""C:\agent\_work\1\b\UWP_Build\Il2CppOutputProject\\IL2CPP\build\deploy\netcoreapp3.1\il2cpp.exe" --libil2cpp-static --compile-cpp -architecture=ARM64 -configuration=Release -platform=winrt -outputpath="C:\agent\_work\1\b\UWP_Build\\build\bin\ARM64\Release\GameAssembly.dll" --data-folder="C:\agent\_work\1\b\UWP_Build\\build\bin\ARM64\Release\\" -cachedirectory="C:\agent\_work\1\b\UWP_Build\\build\obj\il2cppOutputProject\ARM64\Release\\" -generatedcppdir="C:\agent\_work\1\b\UWP_Build\Il2CppOutputProject\\Source" --incremental-g-c-time-slice=3 --baselib-directory="C:\agent\_work\1\b\UWP_Build\Players\UAP\il2cpp\ARM64\Release" --avoid-dynamic-library-copy --profiler-report --additional-defines=WINDOWS_UWP --additional-defines=UNITY_UWP --additional-defines=UNITY_WSA_10_0 --additional-defines=UNITY_WSA --additional-defines=UNITY_WINRT --additional-defines=PLATFORM_WINRT -dotnetprofile=unityaot -verbose --relative-data-path=Data/il2cpp_data --map-file-parser="C:\agent\_work\1\b\UWP_Build\Il2CppOutputProject\\IL2CPP\MapFileParser\MapFileParser.exe"" wurde mit dem Code -1 beendet.
Process 'msbuild.exe' exited with code '1'.
The whole thing makes no sense to me. If I have only VS19 installed everything runs. When I install VS22, I get this error message. I went back to the building agent myself and manually opened the project in VS19 and tried to creat/publish an APPX. There I got the already known errors displayed and one more:
System.NotSupportedException: Visual Studio 2017 support for ARM64 is not installed.
MSB3073 The command ""C:\agent\_work\1\b\UWP_Build\Il2CppOutputProject\\IL2CPP\build\deploy\netcoreapp3.1\il2cpp.exe" --libil2cpp-static --compile-cpp -architecture=ARM64 -configuration=Release -platform=winrt -outputpath="C:\agent\_work\1\b\UWP_Build\\build\bin\ARM64\Release\GameAssembly.dll" --data-folder="C:\agent\_work\1\b\UWP_Build\\build\bin\ARM64\Release\\" -cachedirectory="C:\agent\_work\1\b\UWP_Build\\build\obj\il2cppOutputProject\ARM64\Release\\" -generatedcppdir="C:\agent\_work\1\b\UWP_Build\Il2CppOutputProject\\Source" --incremental-g-c-time-slice=3 --baselib-directory="C:\agent\_work\1\b\UWP_Build\Players\UAP\il2cpp\ARM64\Release" --avoid-dynamic-library-copy --profiler-report --additional-defines=WINDOWS_UWP --additional-defines=UNITY_UWP --additional-defines=UNITY_WSA_10_0 --additional-defines=UNITY_WSA --additional-defines=UNITY_WINRT --additional-defines=PLATFORM_WINRT -dotnetprofile=unityaot -verbose --relative-data-path=Data/il2cpp_data --map-file-parser="C:\agent\_work\1\b\UWP_Build\Il2CppOutputProject\\IL2CPP\MapFileParser\MapFileParser.exe"" was terminated with the code -1.
MSB8020 The build tools for v143 (platform toolset = "v143") were not found. To build using the v143 build tools, install the v143 build tools. Alternatively, upgrade to the latest Visual Studio tools by selecting the Project menu or right-clicking the solution and selecting Reassign Solution.
Workload in my VSInstaller for VS19:
It doesn't make sense that VS17 with ARM64 is suddenly demanded. And it makes no sense that suddenly the build tools for version 143 are required. The project is opened with VS19(=v142) and not with VS22(=v143).
I am building a c++ project (using point cloud library(PCL)) with CMake GUI & while configuring, I am getting the above error. This problem was posted in this forum before, but the problem arose after installing VS2012 version. But I have only VS2010 version in my machine.
Previously I had run successfully using CMake, but I guess somehow any file has been corrupted (may be after windows update?). Any suggestions?
We encountered this problem also after installing a new version of the .NET Framework - 4.5 if I remember well. We solved it by installing Visual Studio 2010 SP1 which made the problem disappear.
See
LNK1123 error when bulding VC++ 2010 project after installing Visual Studio 2012 or .NET Framework 4.5.
See also Error 'LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt' after installing Visual Studio 2012 Release Preview on stackoverflow.
I have a problem when I try to build console application in Vusual Studio 2012.
The problem is that I get the following Error: "LINK : fatal error RC1106: invalid option: -ologo".
When I change "Platform Toolset" from project properties to v90 (is is by default v110) it works.
It works only for v90 and for the rest I have the same error.
I appritiate for help.
Thanks.
The latest SDK i have is v8.0A. So I set to Microsoft SDKs\Windows\v8.0A.
Don't forget to backup your file prior doing it.
In Visual Studio 2015 I simply retargeted from SDK Windows 10 to 8.1 and it worked. I was working in c++
I have tried a lot of tutorials regarding configuring opencv 2.2 or 2.3 with MVS 2010 express C++, I tried also uninstall and reinstall my MVS 2010 to sure that it is working. Moreover I also configured it with opencv, like creating property sheets (DEBUG & RELEASE) and then set the Additional dependencies, libraries,includes, etc.
But when trying to run a simple program (Like displayin a video), I get this error:
1>------ Build started: Project: wew, Configuration: Debug Win32 ------
1>TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified.
1>
1>
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Has anybody experienced the same problem and solved it?
I encountered this while installing React Native via npm. I solved it by following the advice in this post: Visual studio doesn't have cl.exe
Visual Studio 2015 doesn't install C++ by default. You have to rerun
the setup, select Modify and then check Programming Language -> C++
I assume it would work for older versions of Visual Studio as well.
I encountered this error today and my problem was that I had accidentally overwritten the "executable directories" part of the project's property pages. I.e. I overwrote the (common properties->VC++ Directories->Executable directories) entry.
Recently I am trying to compile the source code of FFTW in Visual studio 2010. I followed the instruction from the FFTW website. I downloaded the source code fftw-3.3.2.zip and corresponding vs 2010 package fftw-3.3-libs-visual-studio-2010.zip.
I got four projects from the solution, bench, benchf, libfftw-3.3, libfftwf-3.3
But on compiling I got following errors on each of the project:
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\Microsoft.Cpp.x64.Targets(514,5): error MSB8008: Specified platform toolset (Windows7.1SDK) is not installed or invalid. Please make sure that a supported PlatformToolset value is selected.
which points to the following content
I have tried the debug/release build for both x64 and win32, none of them worked.
Could anyone please help me on this?
It seems that it can be solved without installing the Windows 7.1 SDK
Right click on the 'libfftw-3.3' project and selected properties
Go to Configuration Properties -> General
Switch 'Platfrom Toolset' from 'Windows7.1SDK' to 'v100'
Recompile
Works for the projects 'libfftwf-3.3' and 'libfftw-3.3'
The project 'bench' and 'benchf' are failing to build:
fatal error C1083: Cannot open source file: '....\libbench2\aligned-main.c': No such file or directory
Can be solved by removing the aligned-main.c from both projects.
You can also use CMake - I created this CMake file for fftw-3.3.2 which I tested with Visual Studio 2010 x64:
https://bitbucket.org/Vertexwahn/cmakedemos/src/670f189321d89dbd61ddc8c446c91578305f9da2/fftw-3.3.2/CMakeLists.txt?at=default
You also need this config.h file:
https://bitbucket.org/Vertexwahn/cmakedemos/src/670f189321d89dbd61ddc8c446c91578305f9da2/fftw-3.3.2/config.h?at=default
It looks like you need to install the Windows 7.1 SDK, if you have already installed it, try reinstalling it incase it is corrupted.
You can download the 7.1 SDK from http://www.microsoft.com/en-us/download/details.aspx?id=8279