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

fatal error: 'endian.h' file not found #851

Closed
oceanusxiv opened this issue Nov 7, 2017 · 1 comment
Closed

fatal error: 'endian.h' file not found #851

oceanusxiv opened this issue Nov 7, 2017 · 1 comment

Comments

@oceanusxiv
Copy link

As stated, compiling MAVROS on Mac will result in an fatal error: 'endian.h' file not found error in include/mavlink/v2.0/common/../msgmap.hpp:4:10:. Technically this is a mavlink issue, but mavlink actually compiles fine, it's just the generated header points to a file that doesn't exist and this error only pops up when you compile something else that uses mavlink, like mavros.

This is actually a long standing error on Mac, I've found the workaround to be found here. Basically create /usr/include/endian.h from this. However this messing around with system header files is highly unsatisfactory and unsafe so I'm seeing if anyone can take a look at the included file and maybe come up with a solution.

@TSC21
Copy link
Member

TSC21 commented Nov 9, 2017

@eric1221bday this is not something that can be solved on our side. Some type of workaround can possibly be added to cmake, but we currently try to solve problems on supported platforms. Mac is not the case. So if you find a way that we can integrate this into the build system, great. Otherwise we don't have the bandwidth to help you out. Besides, I personally don't have a Mac to do the development.

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

No branches or pull requests

3 participants