There is no other prompt for the error encountered when compiling 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
Solution:
Add the following code to the 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());
}
}
As shown below
In addition, it is easy to get stuck during compilation. After making in build.sh, remove the multithreading options such as -J4-J
Read More:
- [Solved] ORB_SLAM3 Compile Error: opencv4.0 not found four
- Eclipse Godson Error: Makefile:recipe for target ‘clean‘ failed
- [Solved] RK3399 Compile UBOOT Error: No rule to make target , needed by
- [Solved] Rust Compile Error: error: linker `cc` not found
- Keil Compile Error: ..\OBJ\USART.axf: error: L6002U: Could not open file ..\obj\sys.o: No such file or directory
- [Solved] pytorch CrossEntropyLoss Error: RuntimeError: 1D target tensor expected, multi-target not supported
- [Solved] STM8L151 IAR Project Compile Error: Fatal Error[Pe035]: #error directive: “Please select first the target STM8L…
- [Solved] Compile Error: undefined reference to `google::FlagRegisterer::FlagRegisterer
- [Solved] Fabric_sdk_go:QueryBlockConfig failed: QueryBlockConfig failed: target(s) required
- [Solved] VSCode Edit LaTeX Error: Recipe terminated with error.
- Spring-boot Use dubbo Error: ERROR 8404 o.s.boot.SpringApplication:Application run failed
- [Solved] ERROR: Unable to find the development tool `cc`
- [Solved] PCL Compile Error: undefined reference to `pcl::PCLBase<pcl::PointXYZRGBA>:: XXX
- [Solved] c++: internal compiler error: Killed (program cc1plus)
- No repositories directory found inside registry_ DATA_ DIR
- [Solved] Cordova Android Compile Error: Execution failed for task ‘:packageDebug‘
- Cmake compile cocos2d-x error [How to Solve]
- [Solved] Android Studio Compile Error: Execution failed for task ‘:APP_MIDI:lintVitalRelease‘.
- [Solved] igb Compile Error: igb_main.c:10044:7: error: implicit declaration of function ‘isdigit’