Visual Studio 2019 build error "link.exe" could not be run

asked 2020-09-28 01:35:24 -0500

Deebo gravatar image

updated 2020-09-28 01:56:24 -0500

berak gravatar image

Hello,

I am trying to build OpenCV with extra modules on Visual Studios but ran into a warning and an error.

The error was:

Error MSB6003 The specified task executable "link.exe" could not be run. System.ComponentModel.Win32Exception (0x80004005): Access is denied:

at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() at Microsoft.Build.Utilities.ToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) at Microsoft.Build.CPPTasks.TrackedVCToolTask.TrackerExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) at Microsoft.Build.CPPTasks.TrackedVCToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) at Microsoft.Build.Utilities.ToolTask.Execute() opencv_test_bioinspired C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets 847

So I believe there is something missing in the build but I'm not sure how to go about fixing this.

Thank you for your time!

edit retag flag offensive close merge delete