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

运行catkin_make -j1出现错误 #46

Closed
Yiyuiii opened this issue Nov 6, 2022 · 4 comments
Closed

运行catkin_make -j1出现错误 #46

Yiyuiii opened this issue Nov 6, 2022 · 4 comments

Comments

@Yiyuiii
Copy link

Yiyuiii commented Nov 6, 2022

/issues/40

运行catkin_make -j1时,出现错误:
fatal error: multi_map_server/MultiOccupancyGrid.h: 没有那个文件或目录

我编译也遇到这个问题,奈何对cmake了解甚浅,找不到“确保它被优先编译”的实现办法,希望大佬们不吝赐教。

另外想问这种编译错误是由什么原因导致的,ego-planner同样的simulator就可以编译通过。

@Mercy2Green
Copy link

看这个解决办法:Fix for missing MultiOccupancyGrid.h #9

@bigsuperZZZX
Copy link
Member

这个包的位置在这:src/uav_simulator/Utils/multi_map_server
可以先单独编译这个包,使得自动生成MultiOccupancyGrid.h这个头文件,然后再编译整个程序。
具体如何单独编译一个包可以网上查到

@Pleasecallmeboss
Copy link

按上面说的单独编译包:
catkin_make -DCATKIN_WHITELIST_PACKAGES="multi_map_server"
然后在编译:
catkin_make -j1
成功。

其实就是编译时自定义消息的头文件还没有生成就被别的文件引用,
先编译自定义消息的包生成头文件后就可以正常编译了。

@Jason-xy
Copy link

This pull request will fix the issue #56

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

5 participants