[CMakeFiles/Makefile2:1680: VINS-Fusion/vins_estimator/CMakeFiles/vins_lib.dir/all] Error 2
时间: 2023-12-22 11:02:18 浏览: 74
This error message indicates that there was an error while building the "vins_lib" target in the "vins_estimator" subdirectory of the "VINS-Fusion" project. The specific error that occurred is not provided in the message, so you will need to look further up in the build output to see the actual error message that caused the build to fail. Once you have identified the cause of the error, you can take steps to fix it and try building again. Some common causes of build errors include missing dependencies, incorrect compiler options, and syntax errors in the code.
相关问题
/usr/lib/gcc-cross/arm-linux-gnueabihf/9/../../../../arm-linux-gnueabihf/bin/ld: 找不到 -lconfig collect2: error: ld returned 1 exit status make[2]: *** [src/main/CMakeFiles/start_main.dir/build.make:89:../bin/start_main] 错误 1 make[1]: *** [CMakeFiles/Makefile2:463:src/main/CMakeFiles/start_main.dir/all] 错误 2 make: *** [Makefile:84:all] 错误 2
这是一个编译错误,错误信息提示找不到名为“libconfig”的库。解决方法是安装 libconfig 库,可以使用以下命令在 Ubuntu 上安装:
```
sudo apt install libconfig-dev
```
如果你使用的是其他 Linux 发行版或操作系统,则需要使用相应的包管理器安装 libconfig 库。
/usr/lib/gcc-cross/arm-linux-gnueabihf/9/../../../../arm-linux-gnueabihf/bin/ld: ../../../lib/liblog.so: undefined reference to `bts_log::SystemLog::pLog' collect2: error: ld returned 1 exit status make[2]: *** [src/main/CMakeFiles/start_main.dir/build.make:89:../bin/start_main] 错误 1 make[1]: *** [CMakeFiles/Makefile2:463:src/main/CMakeFiles/start_main.dir/all] 错误 2 make: *** [Makefile:84:all] 错误 2
这个错误是链接器(ld)在链接时找不到 `bts_log::SystemLog::pLog` 符号所引起的。这个符号可能是在 `liblog.so` 库中定义的,但是链接器无法找到该符号的定义。你需要检查 `liblog.so` 库的链接选项和链接器搜索路径是否正确,以确保能够正确地链接 `liblog.so` 库。此外,还需要检查代码中是否存在对 `bts_log::SystemLog::pLog` 的定义。
阅读全文