The FIT SDK documentation is available at https://developer.garmin.com/fit
Share your knowledge, ask questions, and get the latest FIT SDK news in the FIT SDK Developer Forum.
A C++ compiler is required to compile the FIT C++ SDK, such as the GNU g++/gcc, MSVC, or Apple Clang compilers.
The FIT C++ SDK can be cloned from the FIT C++ SDK repository on GitHub.
Example implementations of the FIT SDK are provided and can be found in the examples/ folder.
-
Decode: Demonstrates decoding a FIT file; and use of the Decode and Message Broadcaster classes and Message Listener event interfaces.
-
Encode: Demonstrates encoding an activity FIT file and programmatic generation of messages.
To compile the examples, leverage the makefiles. Note that the makefiles use the GNU g++ compiler.
# Navigate to the example
cd /path/to/fit/sdk/cpp/examples/decode
# Build the example project
make clean
make
# Run the compiled example
./decode someFitFile.fit# Navigate to the example
cd /path/to/fit/sdk/cpp/examples/encode
# Build the example project
make clean
make
# Run the compiled example
./encode