Not declared error while cross-compiling for RPi

Hello,

I am trying to cross-compile own application for Rasberry Pi 2B, but I am still getting an error placed bellow. I already cross-compiled previous versions of the application, but I have never gotten this error until now, even the code related to that error is without any change in the new version.

gcc 8.4.0, it uses CMake, the latest master OpenWrt r13089-3fdb08681b)

In file included from /openwrt/build_dir/gateway/bon-gateway-all/bon-gateway-v2020.3.1/src/zwave/OZWNetwork.cpp:14:
/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/include/openzwave/Manager.h:205:20: note: declared here
    DEPRECATED void WriteConfig(uint32 const _homeId);
                    ^~~~~~~~~~~
/openwrt/build_dir/gateway/bon-gateway-all/bon-gateway-v2020.3.1/src/zwave/OZWNetwork.cpp: In static member function 'static BOn::ZWaveNode::CommandClass BOn::OZWNetwork::buildCommandClass(const OpenZWav
e::ValueID&)':
/openwrt/build_dir/gateway/bon-gateway-all/bon-gateway-v2020.3.1/src/zwave/OZWNetwork.cpp:910:3: error: 'CommandClasses' has not been declared
   CommandClasses::GetName(cc)
   ^~~~~~~~~~~~~~
/openwrt/build_dir/gateway/bon-gateway-all/bon-gateway-v2020.3.1/src/zwave/OZWNetwork.cpp:911:2: error: could not convert '{cc, index, (& id)->OpenZWave::ValueID::GetInstance(), <expression error>}' from '<bra
ce-enclosed initializer list>' to 'BOn::ZWaveNode::CommandClass'
  };
  ^
/openwrt/build_dir/gateway/bon-gateway-all/bon-gateway-v2020.3.1/src/zwave/OZWNetwork.cpp: In member function 'virtual void BOn::OZWNetwork::postValue(const BOn::ZWaveNode::Value&)':
/openwrt/build_dir/gateway/bon-gateway-all/bon-gateway-v2020.3.1/src/zwave/OZWNetwork.cpp:1066:26: error: 'Value' has not been declared
  const string typeName = Value::GetTypeNameFromEnum(type);
                          ^~~~~

Could anyone help me with that problem, please?

If you want help, you need to give us more information...

I just updated my post. Sorry, if something is missing, I am new here.