Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

G2o编译问题 #95

Open
ye-tingfeng opened this issue Jul 21, 2023 · 4 comments
Open

G2o编译问题 #95

ye-tingfeng opened this issue Jul 21, 2023 · 4 comments

Comments

@ye-tingfeng
Copy link

在g2o编译通过后,在thrid_patry/g2o文件中形成一个build文件,其中包含了build/g20/config.h文件。
但在整体空间中编译发现无法连接到thrid_patry/g2o/g2o/openmp_mutex.h中的 “#include "g2o/config.h"
图片

需要在packages.cmake中添加build路径:
include_directories(${PROJECT_SOURCE_DIR}/thirdparty/g2o/build/)
请问高博,这个问题是g2o库的CMakeList文件问题还是?

@kai156277
Copy link

自己编译g2o 的时候make install 一下就可以了

@kai156277
Copy link

g2o cmakelist.txt(377行) 表示 install 才会在g2o 目录下生成config.h

@shuttworth
Copy link

sudo make -j8
sudo make install

@LvDingzhou
Copy link

补充一下,如果编译完成之后忘了进行make install的操作
可以再次去到g2o/build下面输入

sudo make install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants