Package with C++ helloworld

I am using C++ and have compiled a simple helloworld.
The package Makefile has an added DEPENDS

define Package/helloworld
  TITLE:=Hello, World!

All compiles ok and the package is created. When I try to install I get the following error:

root@OpenWrt:/# opkg install /tmp/helloworld_1.0-1_aarch64_generic.ipk
Installing helloworld (1.0-1) to root...
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for helloworld:
 *      libstdcpp6
 * opkg_install_cmd: Cannot install package helloworld.

How do I get libstdcpp6 (or use other c++ library)?

It sounds like you have an older build of OpenWrt - libstdcpp wasn’t enabled until recently in the 21.02.x versions.

In any case, there might be a .ipk for libstdcpp in your SDK or OpenWrt buildroot as it would need to be built as a dependency for your package.


For those interested …
If you have an old build, there is libstdcpp ipk in the SDK.

Copy to Ten64:

scp bin/targets/arm64/efi/packages/libstdcpp6_8.4.0-3_aarch64_generic.ipk root@


opkg install /tmp/libstdcpp6_8.4.0-3_aarch64_generic.ipk