Developer Guide
This guide provides step-by-step instructions for contributors to download, build, test, and run examples in the project.
Prerequisites
Before proceeding, ensure that you have the following prerequisites installed on your system, for more details see Environment Setup:
Git
CMake
C++ Compiler
Downloading the Project
To download the project, follow these steps:
Open a terminal or command prompt.
Change to the directory where you want to download the project to.
Run the following command to clone the project repository, this will clone the project repository into a directory named
agisostack-plus-plus
.git clone https://github.com/Open-Agriculture/AgIsoStack-plus-plus.git
Building the Project
To build the project, follow these steps:
Change to the project directory:
cd agisostack-plus-plus
Create a build directory named
build
:cmake -S . -B build
Build the project:
cmake --build build
Selecting CAN Driver
See Choosing a CAN Driver in the API section for more details.
Running Tests
Tests are run with GTest. They can be invoked through ctest. Once the library is compiled, navigate to the build directory to run tests:
cmake -S . -B build -DBUILD_TESTING=ON
cmake --build build
cd build
ctest
This will execute all the project tests and display the test results.
Running Examples
There are build-in examples in the project. By default, examples are not built. The easiest way to build them is from the top level:
cmake -S . -B build -DBUILD_EXAMPLES=ON
cmake --build build
cd build
./examples/<example_name>
Doxygen
This project uses Doxygen to automatically generate up-to-date internal API docs.
Precompiled
You can view the precompiled, latest Doxygen here: https://delgrossoengineering.com/isobus-docs/index.html
Compiling locally
You can also generate the Doxygen yourself and browse it locally.
From your project, change directory into the ‘AgIsoStack-plus-plus’ folder.
cd AgIsoStack-plus-plus
Make sure you have Doxygen installed.
Ubuntu:
sudo apt install doxygen graphviz
RHEL:
sudo subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms
sudo dnf install doxygen graphviz
Windows:
Make sure you have doxygen installed: https://www.doxygen.nl/download.html
Then, generate the docs.
doxygen doxyfile
The documentation will appear in the docs/html folder. Open index.html in a web browser to start browsing the docs!
Contributing
We warmly welcome contributions to the project, and have a set of guidelines to help you get started: CONTRIBUTING.md