无法找到:“CL.exe”,Opencv与Visual Studio c ++ 2010快速程序错误

问题描述 投票:3回答:2

我已经尝试了很多关于使用MVS 2010 express C ++配置opencv 2.2或2.3的教程,我也试过卸载并重新安装我的MVS 2010以确保它正常工作。此外,我还使用opencv配置它,如创建属性表(DEBUG&RELEASE),然后设置其他依赖项,库,包括等。

但是当试图运行一个简单的程序(如显示视频)时,我收到此错误:

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 ==========

有没有人遇到过同样的问题并解决了?

visual-studio-2010 compiler-errors build-error
2个回答
3
投票

我通过npm安装React Native时遇到了这个问题。我按照这篇文章中的建议解决了这个问题:Visual studio doesn't have cl.exe

Visual Studio 2015默认情况下不安装C ++。您必须重新运行设置,选择Modify,然后选中Programming Language - > C ++

我认为它也适用于旧版本的Visual Studio。


0
投票

我今天遇到了这个错误,我的问题是我不小心覆盖了项目属性页的“可执行目录”部分。即我覆盖了(公共属性 - > VC ++目录 - >可执行目录)条目。

© www.soinside.com 2019 - 2024. All rights reserved.