aheit / cantools

GNU General Public License v3.0
56 stars 29 forks source link

cross-compile / embedded platform support #2

Closed SJLC closed 7 years ago

SJLC commented 7 years ago

The biggest barrier to cross-compile support was cantool's mandatory dependency on hdf5 library, which is documented by its developers as not supporting cross-compile builds. cantools is still useful without the matlab utilities, so '--disable-matlab' configure switch allows incorporating the remaining parts of cantools into an image generated by OpenEmbedded/yocto build system.

Also got rid of a dependency on glib, which seems to be completely unused at this point. glib is available for cross-compile builds but embedded targets tend to have much more limited space than a desktop so useless dependencies can be more of a burden.

In order to have a little more confidence that things are still running properly with or without '--disable-matlab', fixed the test case so that it really runs the test function on 'make check' (previously it was just a compile check, probably unintentionally because the libcheck tutorial is confusing in that regard).

aheit commented 7 years ago

committed pull request by SJLC and rlc2 for cross-compilation and optional MATLAB support