ORB-SLAM3编译问题 recipe for target ‘CMakeFiles/ORB_SLAM3.dir/src/LocalMapping.cc.o‘ failed
Failed for 编译 Target cc src Dir ORB
2023-09-14 09:09:26 时间
- 编译 ORBSLAM3 时遇到的报错,没有其他提示。ubuntu18.04
CMakeFiles/ORB_SLAM3.dir/build.make:110: recipe for target 'CMakeFiles/ORB_SLAM3.dir/src/LocalMapping.cc.o' failed
make[2]: *** [CMakeFiles/ORB_SLAM3.dir/src/LocalMapping.cc.o] Error 1
CMakeFiles/Makefile2:289: recipe for target 'CMakeFiles/ORB_SLAM3.dir/all' failed
make[1]: *** [CMakeFiles/ORB_SLAM3.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
- 1
- 2
- 3
- 4
- 5
- 6
- 解决方法:
添加以下代码到ORB_SLAM3/include/CameraModels/KannalaBrandt8.h
namespace cv
{
template<typename _Tp, int m, int n> static inline Matx<_Tp, m, n> operator / (const Matx<_Tp, m, n>& a, float alpha)
{
return Matx<_Tp, m, n>(a, 1.f / alpha, Matx_ScaleOp());
}
}
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 如下图
另外编译时容易卡死,build.sh里make后去掉-j4 -j等多线程选项
相关文章
- pycharm提示no python interpreter_pycharm failed to create virtual
- Git "Failed to connect to 127.0.0.1 port 31181 Connection refused" 问题解决方案
- Calling LoadLibraryEx on ISAPI filter failed「建议收藏」
- php file_get_contents(): SSL operation failed with code 1. OpenSSL Error message
- 【错误记录】Android Studio 向 GitHub 提交代码报错 ( Push failed: Failed with error: Could not read from remote )
- 【错误记录】Android Studio 编译报错 ( Execution failed for task ‘:APP_MIDI:lintVitalRelease‘. )
- ORA-25220: enqueue failed, signature not specified for a non-repudiable queue ORACLE 报错 故障修复 远程处理
- ORA-25326: Array string operation failed for message at index string ORACLE 报错 故障修复 远程处理
- ORA-27061: waiting for async I/Os failed ORACLE 报错 故障修复 远程处理
- ORA-27470: failed to re-enable “string.string” after making requested change ORACLE 报错 故障修复 远程处理
- ORA-27542: Failed to unprepare a buffer prepared for remote update ORACLE 报错 故障修复 远程处理
- ORA-27543: Failed to cancel outstanding IPC request ORACLE 报错 故障修复 远程处理
- ORA-31096: validation failed for schema ORACLE 报错 故障修复 远程处理
- ORA-41017: Session prepare failed for session number string, serial number string ORACLE 报错 故障修复 远程处理
- ORA-48483: Spooling failed, it may be because the spool file cannot be created due to a permission issue ORACLE 报错 故障修复 远程处理
- ORA-55309: hash collision resolution failed for lexical value string ORACLE 报错 故障修复 远程处理
- MySQL Error number: MY-011330; Symbol: ER_XPLUGIN_FAILED_TO_INTERRUPT_SESSION; SQLSTATE: HY000 报错 故障修复 远程处理
- MySQL Error number: MY-011340; Symbol: ER_XPLUGIN_FAILED_TO_GET_SYS_VAR; SQLSTATE: HY000 报错 故障修复 远程处理
- MySQL Error number: MY-011618; Symbol: ER_GRP_RPL_REINIT_OF_COMMIT_CACHE_FOR_WRITE_FAILED; SQLSTATE: HY000 报错 故障修复 远程处理
- ORA-12631: Username retrieval failed ORACLE 报错 故障修复 远程处理
- ORA-14764: FOR VALUES clause cannot be specified for only one partition ORACLE 报错 故障修复 远程处理
- 增加samba用户提示Failed to add entry for user详解程序员
- loopOracle中的循环编程:For Loop游标(oracle游标for)
- 使用Linux中的For循环实现简单程序(linux的for循环)
- SYSTEM_SHMCONSTR_LOGON_FAILED错误解决办法详解编程语言
- MySQL存储过程中使用FOR循环的实现(mysql存储过程for循环)
- Oracle:学习如何使用For遍历(oracle for遍历)
- 循环Oracle环境下使用For循环的指南(oracle中使用for)
- 学习Oracle中的For语句搭建数据库应用的基础(oracle for语法)