fibre icon indicating copy to clipboard operation
fibre copied to clipboard

Build instructions needed

Open dtyugin opened this issue 6 years ago • 1 comments

Hi, Could you please provide some building instructions? Thank you.

dtyugin avatar Nov 30 '18 20:11 dtyugin

Sorry for the late answer. Since this is still in a very early stage and I didn't (yet) have time to finish the major overhaul, integrating the C++ library is still a bit cumbersome. Also it only supports the server-side of the communication as of yet.

That being said, to include the C++ library, when you compile your server application you need to add cpp/include to your include path and link against cpp/protocol.cpp. In addition to that you also need to link against (and initialize) some sort of transport layer. The options include cpp/posix_tcp.cpp, cpp/posix_udp.cpp and the interface_....cpp files from ODrive (those currently only run on STM32 microcontrollers).

There's also a test application in the repository which you can compile by running tup in the main repository directory. This should generate a binary under test/test_server which exposes a test object on TCP and UDP when launched.

samuelsadok avatar Jan 15 '19 10:01 samuelsadok