For Debian GNU/Linux 11 you will need the following dependencies:
sudo apt install build-essential cmake python3-pip libboost-all-dev libsqlite3-dev libssl-dev
OpenSSL version 3.0 or above is required.
Clone this repository.
git clone https://github.com/EVerest/libocpp
In the libocpp folder create a folder named build and cd into it. Execute cmake and then make:
mkdir build && cd build
cmake ..
make -j$(nproc)
GTest is required for building the test cases target.
To build the target and run the tests you can reference the script .ci/build-kit/install_and_test.sh
.
The script allows the GitHub Actions runner to execute.
Local testing:
mkdir build
cmake -B build -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="./dist"
cd build
make -j$(nproc) install
Run any required tests from build/tests.
Please see the Getting Started documentation for OCPP1.6.
Please see the Getting Started documentation for OCPP2.0.1.
cmake -S . -B build
cmake --build build --target doxygen-ocpp
You will find the generated doxygen documentation at:
build/dist/docs/html/index.html
The main reference for the integration of libocpp for OCPP1.6 is the ocpp::v16::ChargePoint class defined in v16/charge_point.hpp
, for OCPP2.0.1 that is the ocpp::v201::ChargePoint class defined in v201/charge_point.hpp
.