/openwrt-cpp-cmake

Primary LanguageC++Creative Commons Zero v1.0 UniversalCC0-1.0

openwrt-cpp-cmake

cd
git clone https://github.com/openwrt/openwrt
cd openwrt

# Install packages from feeds
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
# select latest C++ compiler
# Advanced configuration options (for developers)  ---> [*]   Toolchain Options  ---> GCC compiler Version (gcc 10.x)
make

# Install the package manually
cd
git clone https://github.com/asjadenet/openwrt-cpp-cmake.git
cp -rf openwrt-cpp-cmake/package/cpp20features ~/openwrt/package/
cp -rf openwrt-cpp-cmake/package/cppfeatures ~/openwrt/package/
cp -rf openwrt-cpp-cmake/package/hellocpp ~/openwrt/package/
cp -rf openwrt-cpp-cmake/build* ~/openwrt/
cp -rf openwrt-cpp-cmake/Toolchain-mips.cmake ~/openwrt/

cd ~/openwrt
make defconfig