Install OpenDNP3 on OpenWrt

Hi all, I'm trying to install an OpenDNP3 library ( in the OpenWrt. I've built the OpenWrt SDK and trying to use ubuntu 18.04 for building this cross-compiling library. I'm building for a Raspberry pi 4 device. Any body can help me or give me some advice/instructions of how to configure and write the Makefile for this installation?

Below is the official installed library if we install it on the Linux system as a reference.