From your opkg install error: first you need to do “opkg update” to retrieve all the dependencies, then use opkg install.


Second for your compiling error, I am not sure why because I am not using OpenWrt SDK. Try using the OpenWrt buildroot, as docs here:

https://github.com/domino-team/openwrt-cc