C Edge SDK Manual
October 21, 2024
Environment
-
C version
- Standard C99
-
GNU C Compiler
- GNU/Linux, MinGW(Windows), Unix
- calling /usr/bin/gcc or /usr/bin/c99
-
CMake >= 3.10
-
vcpkg
- Required Package
- mosquitto
- curl
- sqlite3
- openssl
- Install Scripts
vcpkg install mosquitto sqlite3 curl openssl
- Required Package
-
EdgeHub Edge C SDK
Build
Open a terminal/console/command prompt, navigate to the directory where Processing was cloned, and type the following:
-
Configure CMake
Run CMake to configure the build. Make sure that vcpkg is used as the toolchain file for external dependencies:
cmake -B build -DCMAKE_TOOLCHAIN_FILE=~/path-to-vcpkg/scripts/buildsystems/vcpkg.cmake -
build the project
Build both the shared library and the sample executable:
cmake --build build -
Running the sample
Running the sample ExecutableOnce the build process completes successfully, you can run the sample executable:
./build/sample