Open-WRT工具链构建机器

Gil*_* PJ 5 c++ openwrt toolchain

当我尝试构建一个项目时,我收到以下错误.

请建立在Open-WRT工具链构建机器上

这意味着什么?如何解决这个问题?如果答案可能很长,请提供一些链接以了解这一点.

我是Open-WRT的新手.

小智 3

下载 OpenWrt 构建根https://wiki.openwrt.org/about/toolchain 这将具有 openwrt 工具链 修改Makefile您的应用程序以使用 OpenWrt 工具链。基本上覆盖CCLD字段(如果是 C++ 应用程序,也可以覆盖 CXX)。

CC=<path to toolchain>architecture-openwrt-linux-uclibc-gcc
LD=<path_to_toolchain>architecture-openwrt-linux-uclibc-ld
Run Code Online (Sandbox Code Playgroud)

更多详细信息请参见链接:https://wiki.openwrt.org/doc/devel/crosscompile