Important!
Before compiling this wrapper-library make sure
that dhnetsdk.h and dhconfigsdk.h do not overlap!
Known issue is #define macros and typedefs overlapping each other in mentioned files.
There is no workaround, unfortunately :(
- Install Dahua SDK libraries via official Dahua download page
- Clone the code
git clone https://github.com/danny-mhlv/dahua-c-wrapper.git dahua-wrapper- Build the wrapper
cd dahua-wrapper
mkdir build && cd build
cmake .. && cmake --install .The goal this wrapper-library tries to achieve - is to remove dumb and unnecessary complexity and poor documentation of original Dahua SDK/API.
Some functions of the wrapper purely serve as syntactic sugar, and some have underlying implementation. Both are trying to make the life of the programmer easier.
Examples:
For now, it is C only!
There are plans to make this wrapper (sugary part of it at least) compatible with C++ code too.