Unable to find cl.exe
>> vl_compilenn
警告: CL.EXE not found in PATH. Trying to guess out of mex setup.
> In vl_compilenn>check_clpath (line 650)
In vl_compilenn (line 426)
'cl.exe' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
错误使用 vl_compilenn>check_clpath (line 656)
Unable to find cl.exe
出错 vl_compilenn (line 426)
cl_path = fileparts(check_clpath()); % check whether cl.exe in path
解决方案:https://github.com/vlfeat/matconvnet/issues/650
the problem is with the visual studio setup folder layout
The matconvnet 'vl_compilenn' is trying to find for cl.exe in 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\bin\amd64'. which has changed with new setup of visual studio.
If you have installed latest versions of Visual studio try searching for the 'cl.exe' in the subfolders below 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC'
eg: when i searched 'cl.exe' ; i found it under 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.13.26128\bin\Hostx86\x86'
so for above path i replace the variable 'cl_path' in 'vl_compilenn' line 646 (function- check_clpath)
from --> cl_path = fullfile(cc.Location, 'VC', 'bin', 'amd64'); (in matconvnet beta 25)
to --> cl_path = fullfile(cc.Location, 'VC', 'Tools','MSVC','14.13.26128','bin','Hostx64','x64');
let me know if it works
14.13.26128改你的文件名(相同就不用改)
在vl_compilenn.m中修改改行代码
cl_path = fullfile(cc.Location, 'VC', 'Tools', 'MSVC','14.16.27023','bin','Hostx64','x64');
问题就解决了
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· [.NET]调用本地 Deepseek 模型
· 一个费力不讨好的项目,让我损失了近一半的绩效!
· .NET Core 托管堆内存泄露/CPU异常的常见思路
· PostgreSQL 和 SQL Server 在统计信息维护中的关键差异
· C++代码改造为UTF-8编码问题的总结
· 【.NET】调用本地 Deepseek 模型
· CSnakes vs Python.NET:高效嵌入与灵活互通的跨语言方案对比
· Plotly.NET 一个为 .NET 打造的强大开源交互式图表库
· DeepSeek “源神”启动!「GitHub 热点速览」
· 我与微信审核的“相爱相杀”看个人小程序副业