The library method 'vision.internal.buildable.ComputeMetricBuildable.updateBuildInfo' failed
3 次查看(过去 30 天)
显示 更早的评论
cfg = coder.config("exe");
cfg.Hardware = coder.hardware("Robot Operating System 2 (ROS 2)");
cfg.Hardware.DeployTo = "Localhost";
cfg.Hardware.BuildAction = "Build and run";
cfg.HardwareImplementation.ProdHWDeviceType = "Intel->x86-64 (Windows64)";
cfg.HardwareImplementation.ProdLongLongMode = true; % Use 'long long' for Int64 or Uint64 data types
codegen xxx -config cfg
The library method 'vision.internal.buildable.ComputeMetricBuildable.updateBuildInfo' failed.
Caused by:
Unable to determine MEX compiler: use mex -setup to configure your system.
0 个评论
回答(1 个)
Josh Chen
2023-5-1
Hello Andinet,
As the error message suggested, please use
>> mex -setup
to set up the compiler so that MATLAB can find the compiler in your system. You may also need
>> mex -setup C++
If setting up compiler does not resolve this issue, we may need to look at the m-file you are trying to generate code from.
Thanks,
Josh
3 个评论
Josh Chen
2023-5-11
Hi Andinet,
Sorry for late response. I tried to generate code from my side and confirm that there is an issue when pointCloud during code generation on Windows. I tried to generate code with the same setup on linux and it works.
Couple releases ago, I believe I was able to do the same thing on Windows too, so I've raised an internal ticket for the corresponding team to look into this issue.
Thanks,
Josh
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Specialized Messages 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!