【问题标题】:My package in OpenWRT does not compile我在 OpenWRT 中的包无法编译
【发布时间】:2017-04-05 14:16:21
【问题描述】:

我已经从 git 下载了 OpenWRT 源代码并构建了它。我在 package/helloworld 目录中创建了一个带有所需 Makefile 的简单 helloworld 包并构建它。但它似乎没有做任何事情。以下是日志:

sonal@sonal-ThinkPad:~/openwrt$ make V=99 package/helloworld/compile
WARNING: your configuration is out of sync. Please run make menuconfig, oldconfig or defconfig!
make[1]: Entering directory '/home/sonal/openwrt'
make[2]: Entering directory '/home/sonal/openwrt/package/libs/toolchain'
if [ -f /home/sonal/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean ]; then rm -f /home/sonal/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/toolchain.default.install /home/sonal/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean; fi; echo "libc" >> /home/sonal/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/toolchain.default.install
if [ -f /home/sonal/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean ]; then rm -f /home/sonal/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/toolchain.default.install /home/sonal/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean; fi; echo "libgcc" >> /home/sonal/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/toolchain.default.install
make[2]: Leaving directory '/home/sonal/openwrt/package/libs/toolchain'
make[2]: Entering directory '/home/sonal/openwrt/package/helloworld'
make[2]: Leaving directory '/home/sonal/openwrt/package/helloworld'
make[1]: Leaving directory '/home/sonal/openwrt'`enter code here`


Thanks
Sonal

【问题讨论】:

    标签: openwrt


    【解决方案1】:

    http://wiki.prplfoundation.org/wiki/Creating_an_OpenWrt_package_for_a_web_page

    以上链接将指导您如何构建自己的包。我还用上面的链接制作了自己的 luci 页面。它将从头开始指导您。

    如果你只想创建 hello world 页面,那么不需要创建包,你只需在 '/home/sonal/openwrt/' 中将新目录名称设置为 files > 然后转到文件目录并在 '/home/sonal/openwrt/files/' 中将新目录设为 www。不需要自定义包。

    【讨论】:

    • 如果您觉得此答案有用,请勾选正确。所以,任何人都可以参考这个。谢谢。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-01-04
    • 1970-01-01
    • 2022-06-13
    • 1970-01-01
    • 2019-09-16
    • 1970-01-01
    • 2021-08-05
    相关资源
    最近更新 更多