Skip to content

Building FlatBuffers in an embedded environment. #195

Answered by mikkelfj
randyK-HH asked this question in Q&A
Discussion options

You must be logged in to vote

So, flatcc is designed for this use case, but I rely on users to test various embedded devices.
I believe systems similar to the one you mention have used flatcc successfully.

Essentiall you just compile the runtime parts for your target system either as a library, or add the few runtime C files to your project along with your application. I will not go into how you can get CMake to cross compile and you can also just compile with a shell script if so inclined (I often do that for testing small projects). You may want to look at the compiler flags set in the CMake project because gcc can be a bit loud on some warnings, but you do not have to use the CMake system that flatcc builds with.

T…

Replies: 1 comment 14 replies

Comment options

You must be logged in to vote
14 replies
@randyK-HH
Comment options

@randyK-HH
Comment options

@mikkelfj
Comment options

@randyK-HH
Comment options

@mikkelfj
Comment options

Answer selected by randyK-HH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants