Code Monkey home page Code Monkey logo

oui's Introduction

OUI

license PRs Welcome Issue Welcome visitors

A framework used to develop Web interface for OpenWrt.

Features

  • Separation of front-end and backend
  • Developing back-end APIs using Lua-eco.
  • Developing front-end pages using Vue3 + Element Plus + Vite.
  • Support multi-user and ACL management, provides fine-grained permission management.
  • Modularization as with Luci, each page is individually packaged as an IPK.

Documentation

English

中文

oui's People

Contributors

aiamadeus avatar arky avatar baidxi avatar black-raison-detre avatar castillofrancodamian avatar dawsengao avatar dependabot[bot] avatar diegonc avatar dimkas avatar feckert avatar hacklinshell avatar jackyczj avatar jorislee avatar judecumt avatar lancersky avatar sbilly avatar tautvilis avatar vanja-san avatar zhaojh329 avatar zyw0605688 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

oui's Issues

compile error

Environment: MT7620 ( ramips ) - 18.06.5

Description:
I've got an error while compiling, lua-cjson package as oui-rpc-core dependency
the package is at this URL :
http://downloads.openwrt.org/releases/18.06.5/packages/mipsel_24kc/packages/lua-cjson_2.1.0-2_mipsel_24kc.ipk

how can I add this ipk manually to the building process ?

`Collected errors:

  • satisfy_dependencies_for: Cannot satisfy the following dependencies for oui-rpc-core:
  •  lua-cjson
    
  • opkg_install_cmd: Cannot install package oui-rpc-core.
    package/Makefile:65: recipe for target 'package/install' failed
    make[2]: *** [package/install] Error 255
    make[2]: Leaving directory '/home/user/openwrt/openwrt-18.06.5'
    package/Makefile:108: recipe for target '/home/user/openwrt/openwrt-18.06.5/staging_dir/target-mipsel_24kc_musl/stamp/.package_install' failed
    make[1]: *** [/home/user/openwrt/openwrt-18.06.5/staging_dir/target-mipsel_24kc_musl/stamp/.package_install] Error 2
    make[1]: Leaving directory '/home/user/openwrt/openwrt-18.06.5'
    /home/user/openwrt/openwrt-18.06.5/include/toplevel.mk:216: recipe for target 'world' failed
    make: *** [world] Error 2
    user@ubu18-server:~/openwrt/openwrt-18.06.5$ `

Interface not working

Builded with OpenWRT 15 and 18, same for both, onlt Dashboard pages working, everything else showing white pages.

ubus.call('oui.ui', 'lang') "Object not found"

你好,我在openwrt路由器上部署后,有时候访问web时没有东西,在console下看到了下面的错误提示,指向了router.js文件63行。只有重启路由器之后才能正常访问,请问一下要怎么解决?

Uncaught (in promise)
{req: Array(3), error: {…}}
error:{code: -32000, message: "Object not found"}
req:(3) ["oui.ui", "lang", {…}]
proto:Object

PROXY ERROR /ubus

Environment: (put here arch, model, OpenWrt version)

Description:
We cloned the master branch of OUI framework and run the project but we get this error
"Proxy error : Could not proxy request /ubus from localhost:8080 to http://107.105.159.22 (ECONNREFUSED)."

We don't know if we need to set up a server or OpenWrt to run the project in our local.

Hope someone can give us an input. Thanks

image

[Build] package/feeds/oui/oui-ui-core/compile compile error

Unable to complete error. It seems there is an error in oui-bwm

cho "libc" >> /media/data/Projekte/OpenWRT/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/toolchain.default.install echo "libgcc" >> /media/data/Projekte/OpenWRT/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/toolchain.default.install echo "libpthread" >> /media/data/Projekte/OpenWRT/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/toolchain.default.install make[2]: Leaving directory '/media/data/Projekte/OpenWRT/openwrt/package/libs/toolchain' time: package/libs/toolchain/compile#0.16#0.03#0.20 make[2]: Entering directory '/media/data/Projekte/OpenWRT/openwrt/package/libs/libjson-c' echo "libjson-c" >> /media/data/Projekte/OpenWRT/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/libjson-c.default.install make[2]: Leaving directory '/media/data/Projekte/OpenWRT/openwrt/package/libs/libjson-c' time: package/libs/libjson-c/compile#0.21#0.05#0.30 make[2]: Entering directory '/media/data/Projekte/OpenWRT/openwrt/package/utils/lua' make[2]: Leaving directory '/media/data/Projekte/OpenWRT/openwrt/package/utils/lua' time: package/utils/lua/compile#0.20#0.03#0.26 make[2]: Entering directory '/media/data/Projekte/OpenWRT/openwrt/package/libs/libubox' echo "libubox" >> /media/data/Projekte/OpenWRT/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/libubox.default.install echo "libblobmsg-json" >> /media/data/Projekte/OpenWRT/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/libubox.default.install echo "jshn" >> /media/data/Projekte/OpenWRT/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/libubox.default.install echo "libjson-script" >> /media/data/Projekte/OpenWRT/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/libubox.default.install make[2]: Leaving directory '/media/data/Projekte/OpenWRT/openwrt/package/libs/libubox' time: package/libs/libubox/compile#0.61#0.20#1.06 make[2]: Entering directory '/media/data/Projekte/OpenWRT/openwrt/package/system/ubus' echo "libubus" >> /media/data/Projekte/OpenWRT/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/ubus.default.install echo "ubus" >> /media/data/Projekte/OpenWRT/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/ubus.default.install echo "ubusd" >> /media/data/Projekte/OpenWRT/openwrt/staging_dir/target-mipsel_24kc_musl/pkginfo/ubus.default.install make[2]: Leaving directory '/media/data/Projekte/OpenWRT/openwrt/package/system/ubus' time: package/system/ubus/compile#0.49#0.12#0.73 make[2]: Entering directory '/media/data/Projekte/OpenWRT/openwrt/feeds/oui/oui-io-util' make[2]: Leaving directory '/media/data/Projekte/OpenWRT/openwrt/feeds/oui/oui-io-util' time: package/feeds/oui/oui-io-util/compile#0.14#0.03#0.21 make[2]: Entering directory '/media/data/Projekte/OpenWRT/openwrt/feeds/oui/oui-bwm' make[2]: *** No rule to make target '/media/data/Projekte/OpenWRT/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/linux-4.14.132/.config', needed by '/media/data/Projekte/OpenWRT/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/oui-bwm/.built'. Stop. make[2]: Leaving directory '/media/data/Projekte/OpenWRT/openwrt/feeds/oui/oui-bwm' time: package/feeds/oui/oui-bwm/compile#0.14#0.03#0.21 make[1]: *** [package/Makefile:109: package/feeds/oui/oui-bwm/compile] Error 2 make[1]: Leaving directory '/media/data/Projekte/OpenWRT/openwrt' make: *** [/media/data/Projekte/OpenWRT/openwrt/include/toplevel.mk:218: package/feeds/oui/oui-ui-core/compile] Error 2

error on oui-httpd compile

Environment: (put here arch, model, OpenWrt version)
OpenWRT x86_64 19.07 latest version

Description:
error on oui-httpd compile

$ openwrt-19.07$ make package/feeds/oui/oui-httpd/clean -j1 V=s
make[1]: Entering directory 'openwrt-19.07'
make[2]: Entering directory 'openwrt-19.07/feeds/oui/oui-httpd'
rm -rf openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd
rm -f openwrt-19.07/staging_dir/target-x86_64_musl/stamp/.oui-httpd_installed
rm -f openwrt-19.07/staging_dir/target-x86_64_musl/packages/oui-httpd.list 
openwrt-19.07/staging_dir/host/packages/oui-httpd.list
make[2]: Leaving directory 'openwrt-19.07/feeds/oui/oui-httpd'
time: package/feeds/oui/oui-httpd/clean#0.04#0.00#0.10
make[1]: Leaving directory 'openwrt-19.07'

$ openwrt-19.07$ make package/feeds/oui/oui-httpd/compile -j1 V=s
make[1]: Entering directory 'openwrt-19.07'
make[2]: Entering directory 'openwrt-19.07/package/libs/toolchain'
echo "libc" >> openwrt-19.07/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
echo "libgcc" >> openwrt-19.07/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
echo "libstdcpp" >> openwrt-19.07/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
echo "libpthread" >> openwrt-19.07/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
echo "librt" >> openwrt-19.07/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
make[2]: Leaving directory 'openwrt-19.07/package/libs/toolchain'
time: package/libs/toolchain/compile#0.05#0.00#0.14
make[2]: Entering directory 'openwrt-19.07/feeds/packages/libs/jansson'
echo "jansson" >> openwrt-19.07/staging_dir/target-x86_64_musl/pkginfo/jansson.default.install
make[2]: Leaving directory 'openwrt-19.07/feeds/packages/libs/jansson'
time: package/feeds/packages/jansson/compile#0.04#0.00#0.13
make[2]: Entering directory 'openwrt-19.07/package/libs/libjson-c'
echo "libjson-c" >> openwrt-19.07/staging_dir/target-x86_64_musl/pkginfo/libjson-c.default.install
make[2]: Leaving directory 'openwrt-19.07/package/libs/libjson-c'
time: package/libs/libjson-c/compile#0.04#0.01#0.16
make[2]: Entering directory 'openwrt-19.07/package/utils/lua'
echo "liblua" >> openwrt-19.07/staging_dir/target-x86_64_musl/pkginfo/lua.default.install
echo "lua" >> openwrt-19.07/staging_dir/target-x86_64_musl/pkginfo/lua.default.install
make[2]: Leaving directory 'openwrt-19.07/package/utils/lua'
time: package/utils/lua/compile#0.05#0.00#0.16
make[2]: Entering directory 'openwrt-19.07/package/libs/libubox'
echo "libubox" >> openwrt-19.07/staging_dir/target-x86_64_musl/pkginfo/libubox.default.install
echo "libblobmsg-json" >> openwrt-19.07/staging_dir/target-x86_64_musl/pkginfo/libubox.default.install
echo "jshn" >> openwrt-19.07/staging_dir/target-x86_64_musl/pkginfo/libubox.default.install
echo "libjson-script" >> openwrt-19.07/staging_dir/target-x86_64_musl/pkginfo/libubox.default.install
echo "libubox-lua" >> openwrt-19.07/staging_dir/target-x86_64_musl/pkginfo/libubox.default.install
make[2]: Leaving directory 'openwrt-19.07/package/libs/libubox'
time: package/libs/libubox/compile#0.07#0.06#0.59
make[2]: Entering directory 'openwrt-19.07/package/libs/mbedtls'
make[2]: Leaving directory 'openwrt-19.07/package/libs/mbedtls'
time: package/libs/mbedtls/compile#0.05#0.02#0.14
make[2]: Entering directory 'openwrt-19.07/package/libs/ustream-ssl'
make[2]: Leaving directory 'openwrt-19.07/package/libs/ustream-ssl'
time: package/libs/ustream-ssl/mbedtls/compile#0.07#0.02#0.38
make[2]: Entering directory 'openwrt-19.07/feeds/packages/libs/libuhttpd'
echo "libuhttpd-nossl" >> openwrt-19.07/staging_dir/target-x86_64_musl/pkginfo/libuhttpd.nossl.install
make[2]: Leaving directory 'openwrt-19.07/feeds/packages/libs/libuhttpd'
time: package/feeds/packages/libuhttpd/nossl/compile#0.04#0.01#0.13
make[2]: Entering directory 'openwrt-19.07/package/system/ubus'
echo "libubus" >> openwrt-19.07/staging_dir/target-x86_64_musl/pkginfo/ubus.default.install
echo "libubus-lua" >> openwrt-19.07/staging_dir/target-x86_64_musl/pkginfo/ubus.default.install
echo "ubus" >> openwrt-19.07/staging_dir/target-x86_64_musl/pkginfo/ubus.default.install
echo "ubusd" >> openwrt-19.07/staging_dir/target-x86_64_musl/pkginfo/ubus.default.install
make[2]: Leaving directory 'openwrt-19.07/package/system/ubus'
time: package/system/ubus/compile#0.06#0.04#0.43
make[2]: Entering directory 'openwrt-19.07/package/system/uci'
echo "uci" >> openwrt-19.07/staging_dir/target-x86_64_musl/pkginfo/uci.default.install
echo "libuci" >> openwrt-19.07/staging_dir/target-x86_64_musl/pkginfo/uci.default.install
echo "libuci-lua" >> openwrt-19.07/staging_dir/target-x86_64_musl/pkginfo/uci.default.install
make[2]: Leaving directory 'openwrt-19.07/package/system/uci'
time: package/system/uci/compile#0.05#0.04#0.40
make[2]: Entering directory 'openwrt-19.07/feeds/oui/oui-httpd'
touch openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/.prepared_91c9baf63ed7ed681926e17fcac68e50_6664517399ebbbc92a37c5bb081b5c53_check
install -d -m0755 openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd
cp -fpR ./src/. openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd
touch openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/.prepared_91c9baf63ed7ed681926e17fcac68e50_6664517399ebbbc92a37c5bb081b5c53
rm -f openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/.configured_*
rm -f openwrt-19.07/staging_dir/target-x86_64_musl/stamp/.oui-httpd_installed
mkdir -p openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd
(cd openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd; CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremapopenwrt-19.07/build_dir/target-x86_64_musl/oui-httpd:oui-httpd -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremapopenwrt-19.07/build_dir/target-x86_64_musl/oui-httpd:oui-httpd -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " LDFLAGS="-L/opt/disk2/home/b9.07/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/usr/lib -Lopenwrt-19.07/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/lib -znow -zrelro " cmake -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_VERSION=1 -DCMAKE_SYSTEM_PROCESSOR=x86_64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_C_COMPILER="openwrt-19.07/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/bin/x86_64-openwrt-linux-musl-gcc" -DCMAKE_C_COMPILER_ARG1="" -DCMAKE_CXX_COMPILER="openwrt-19.07/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/bin/x86_64-openwrt-linux-musl-g++" -DCMAKE_CXX_COMPILER_ARG1="" -DCMAKE_ASM_COMPILER="openwrt-19.07/staging_dir/target-x86_64_musl/usr/lib -Lopenwrt-19.07/staging_dir/target-x86_64_musl/lib -Lopenwrt-19.07/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/usr/lib -Lopenwrt-19.07/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/lib -znow -zrelro" -DCMAKE_MODULE_LINKER_FLAGS:STRING="-Lopenwrt-19.07/staging_dir/target-x86_64_musl/usr/lib -Lopenwrt-19.07/staging_dir/target-x86_64_musl/lib -Lopenwrt-19.07/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/usr/lib -Lopenwrt-19.07/staging_dir/toolchain-x86gressSecurity/openwrt-19.07/staging_dir/target-x86_64_musl/lib -Lopenwrt-19.07/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/usr/lib -Lopenwrt-19.07/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/lib -znow -zrelro -Wl,-Bsymbolic-functions" -DCMAKE_AR="openwrt-19.07/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/bin/x86_64-openwrt-linux-musl-gcc-ar" -DCMAKE_NM="openwrt-19.07/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/bin/x86_64-openwrt-linux-musl-gcc-nm" -DCMAKE_RANLIB="openwrt-19.07/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/bin/x86_64-openwrt-linux-musl-gcc-ranlib" -DCMAKE_PATH_MODE_PROGRAM=BOTH -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY -DCMAKE_STRIP=: -DCMAKE_INSTALL_PREFIX=/usr -DDL_LIBRARY=openwrt-19.07/staging_dir/target-x86_64_musl -DCMAKE_PREFIX_PATH=/o-- The C compiler identification is GNU 7.5.0nwrt-19.07/staging_dir/target-x86_64_musl -DCMAKE_SKIP_RPATH=TRUE  openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd )
-- Check for working C compiler: openwrt-19.07/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/bin/x86_64-openwrt-linux-musl-gcc
-- Check for working C compiler: openwrt-19.07/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/bin/x86_64-openwrt-linux-musl-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found PkgConfig: openwrt-19.07/staging_dir/host/bin/pkg-config (found version "0.29.2")
-- Found Libev: openwrt-19.07/staging_dir/target-x86_64_musl/usr/lib/libev.so (found version "4.25")
-- Found Libuhttpd: openwrt-19.07/staging_dir/target-x86_64_musl/usr/lib/libuhttpd.so (found version "2.2")
-- Found Lua: openwrt-19.07/staging_dir/target-x86_64_musl/usr/lib/liblua.so;openwrt-19.07/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/lib/libm.a (found version "5.1.5")
-- Checking for one of the modules 'jansson'
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_ASM_COMPILER
    CMAKE_ASM_COMPILER_ARG1
    CMAKE_CXX_COMPILER
    CMAKE_CXX_COMPILER_ARG1
    CMAKE_CXX_FLAGS_RELEASE
    CMAKE_MODULE_LINKER_FLAGS
    CMAKE_SHARED_LINKER_FLAGS
    DL_LIBRARY


-- Build files have been written to: openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd
touch openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/.configured_68b329da9893e34099c7d8ad5cb9c940
rm -f openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/.built
touch openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/.built_check
CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremapopenwrt-19.07/build_dir/target-x86_64_musl/oui-httpd:oui-httpd -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro  -Iopenwrt-19.07/staging_dir/target-x86_64_musl/usr/include -Iopenwrt-19.07/staging_dir/target-x86_64_musl/include -Iopenwrt-19.07/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/usr/include -Iopenwrt-19.07/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/include/fortify -Iopenwrt-19.07/build_dir/target-x86_64_musl/oui-httpd:oui-httpd -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro  -Iopenwrt-19.07/staging_dir/target-x86_64_musl/usr/include -Iopenwrt-19.07/staging_dir/target-x86_64_musl/include -Iopenwrt-19.07/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/usr/include -Iopenwrt-19.07/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/include/fortify -Iopenwrt-19.07/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/include " LDFLAGS="-Lopenwrt-19.07/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/usr/lib -Lopenwrt-19.07/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/lib -znow -zrelro " make -j1 -C openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/. AR="x86_64-openwrt-linux-musl-gcc-ar" AS="x86_64-openwrt-linux-musl-gcc -c -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremapopenwrt-19.07/build_dir/target-x86_64_musl/oui-httpd:oui-httpd -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=x86_64-openwrt-linux-musl-ld NM="x86_64-openwrt-linux-musl-gcc-nm" CC="x86_64-openwrt-linux-musl-gcc" GCC="x86_64-openwrt-linuenwrt-linux-musl-size CROSS="x86_64-openwrt-linux-musl-" ARCH="x86_64" CMAKE_COMMAND='openwrt-19.07/staging_dir/host/bin/cmake' CMAKE_DISABLE_cmake_check_build_system=1 ;
make[3]: Entering directory 'openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd'
make[4]: Entering directory 'openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd'
make[5]: Entering directory 'openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd'
Scanning dependencies of target oui-httpd
make[5]: Leaving directory 'openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd'
make[5]: Entering directory 'openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd'
[ 10%] Building C object CMakeFiles/oui-httpd.dir/main.c.o
openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/main.c:47:26: error: 'struct uh_connection' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
 void serve_upload(struct uh_connection *conn);
                          ^~~~~~~~~~~~~
openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/main.c:49:28: error: 'struct uh_connection' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
 void serve_download(struct uh_connection *conn);
                            ^~~~~~~~~~~~~
openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/main.c:51:23: error: 'struct uh_connection' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
 void serve_rpc(struct uh_connection *conn);
                       ^~~~~~~~~~~~~
openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/main.c:53:31: error: 'struct uh_connection' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
 static void on_request(struct uh_connection *conn)
                               ^~~~~~~~~~~~~
openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/main.c: In function 'on_request':
openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/main.c:55:18: error: variable 'path' has initializer but incomplete type
     const struct uh_str path = conn->get_path(conn);
                  ^~~~~~
openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/main.c:55:36: error: dereferencing pointer to incomplete type 'struct uh_connection'
     const struct uh_str path = conn->get_path(conn);
                                    ^~
openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/main.c:55:25: error: storage size of 'path' isn't known
     const struct uh_str path = conn->get_path(conn);
                         ^~~~
openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/main.c:58:22: error: passing argument 1 of 'serve_upload' from incompatible pointer type [-Werror=incompatible-pointer-types]
         serve_upload(conn);
                      ^~~~
openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/main.c:47:6: note: expected 'struct uh_connection *' but argument is of type 'struct uh_connection *'
 void serve_upload(struct uh_connection *conn);
      ^~~~~~~~~~~~
openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/main.c:60:24: error: passing argument 1 of 'serve_download' from incompatible pointer type [-Werror=incompatible-pointer-types]
         serve_download(conn);
                        ^~~~
openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/main.c:49:6: note: expected 'struct uh_connection *' but argument is of type 'struct uh_connection *'
 void serve_download(struct uh_connection *conn);
      ^~~~~~~~~~~~~~
openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/main.c:62:19: error: passing argument 1 of 'serve_rpc' from incompatible pointer type [-Werror=incompatible-pointer-types]
         serve_rpc(conn);
                   ^~~~
openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/main.c:51:6: note: expected 'struct uh_connection *' but argument is of type 'struct uh_connection *'
 void serve_rpc(struct uh_connection *conn);
      ^~~~~~~~~
openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/main.c:55:25: error: unused variable 'path' [-Werror=unused-variable]
     const struct uh_str path = conn->get_path(conn);
                         ^~~~
openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/main.c: In function 'signal_cb':
openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/main.c:71:9: error: implicit declaration of function 'uh_log_info' [-Werror=implicit-function-declaration]
         uh_log_info("Normal quit\n");
         ^~~~~~~~~~~
openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/main.c: In function 'main':
openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/main.c:126:9: error: implicit declaration of function 'uh_log_threshold' [-Werror=implicit-function-declaration]
         uh_log_threshold(LOG_ERR);
         ^~~~~~~~~~~~~~~~
openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/main.c:126:26: error: 'LOG_ERR' undeclared (first use in this function); did you mean 'REG_ERR'?
         uh_log_threshold(LOG_ERR);
                          ^~~~~~~
                          REG_ERR
openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/main.c:126:26: note: each undeclared identifier is reported only once for each function it appears in
openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/main.c:132:25: error: passing argument 1 of 'uh_server_new' from incompatible pointer type [-Werror=incompatible-pointer-types]
     srv = uh_server_new(loop, "0.0.0.0", port);
                         ^~~~
In file included from openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/main.c:32:0:
openwrt-19.07/staging_dir/target-x86_64_musl/usr/include/uhttpd/uhttpd.h:50:19: note: expected 'const char *' but argument is of type 'struct ev_loop *'
 struct uh_server *uh_server_new(const char *host, int port);
                   ^~~~~~~~~~~~~
openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/main.c:132:31: error: passing argument 2 of 'uh_server_new' makes integer from pointer without a cast [-Werror=int-conversion]
     srv = uh_server_new(loop, "0.0.0.0", port);
                               ^~~~~~~~~
In file included from openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/main.c:32:0:
openwrt-19.07/staging_dir/target-x86_64_musl/usr/include/uhttpd/uhttpd.h:50:19: note: expected 'int' but argument is of type 'char *'
 struct uh_server *uh_server_new(const char *host, int port);
                   ^~~~~~~~~~~~~
openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/main.c:132:11: error: too many arguments to function 'uh_server_new'
     srv = uh_server_new(loop, "0.0.0.0", port);
           ^~~~~~~~~~~~~
In file included from openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/main.c:32:0:
openwrt-19.07/staging_dir/target-x86_64_musl/usr/include/uhttpd/uhttpd.h:50:19: note: declared here
 struct uh_server *uh_server_new(const char *host, int port);
                   ^~~~~~~~~~~~~
openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/main.c:136:21: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
     srv->on_request = on_request;
                     ^
cc1: all warnings being treated as errors
CMakeFiles/oui-httpd.dir/build.make:62: recipe for target 'CMakeFiles/oui-httpd.dir/main.c.o' failed
make[5]: *** [CMakeFiles/oui-httpd.dir/main.c.o] Error 1
make[5]: Leaving directory 'openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd'
CMakeFiles/Makefile2:75: recipe for target 'CMakeFiles/oui-httpd.dir/all' failed
make[4]: *** [CMakeFiles/oui-httpd.dir/all] Error 2
make[4]: Leaving directory 'openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd'
Makefile:129: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory 'openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd'
Makefile:46: recipe for target 'openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/.built' failed
make[2]: *** [openwrt-19.07/build_dir/target-x86_64_musl/oui-httpd/.built] Error 2
make[2]: Leaving directory 'openwrt-19.07/feeds/oui/oui-httpd'
time: package/feeds/oui/oui-httpd/compile#0.18#0.01#0.36
package/Makefile:111: recipe for target 'package/feeds/oui/oui-httpd/compile' failed
make[1]: *** [package/feeds/oui/oui-httpd/compile] Error 2
make[1]: Leaving directory 'openwrt-19.07'
openwrt-19.07/include/toplevel.mk:225: recipe for target 'package/feeds/oui/oui-httpd/compile' failed
make: *** [package/feeds/oui/oui-httpd/compile] Error 2

WAN口设置PPPOE试报错,无法保存设置

Environment: (put here arch, model, OpenWrt version)
lede 17.01 and openwrt master

Description:

设置WAN口连接方式为pppoe,提示type not define。
设置好信息之后,点保存无反应。

Formating code blocks by wrapping them with pairs of ```

Lua dir missing

Environment: (put here arch, model, OpenWrt version)
OpenWrt 18.06.8

Description: Set lua include dir in cmake file, still not found.

CMake Error at /home/studentas/Documents/openwrt-gpl-ipq/staging_dir/host/share/cmake-3.11/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find Lua (missing: LUA_INCLUDE_DIR)
Call Stack (most recent call first):
  /home/studentas/Documents/openwrt-gpl-ipq/staging_dir/host/share/cmake-3.11/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /home/studentas/Documents/openwrt-gpl-ipq/staging_dir/host/share/cmake-3.11/Modules/FindLua.cmake:193 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:11 (find_package)

[Build] CMake Error: The following variables are used in this project, but they are set to NOTFOUND.

Hello,

I am having trouble building OUI with Openwrt SDK.

Environment:
Openwrt-SDK 18.06.2
Target : brcm2708-bcm2710
gcc-7.3.0_musl.Linux-x86_64

Issue

make package/feeds/oui/oui-ui-core/compile V=s

-- The C compiler identification is GNU 7.3.0                                                                                                                                                                      
-- Check for working C compiler: /home/h0tmilk/OpenWRT-sdk/18.06.2/staging_dir/toolchain-aarch64_cortex-a53_gcc-7.3.0_musl/bin/aarch64-openwrt-linux-musl-gcc                                                
-- Check for working C compiler: /home/h0tmilk/OpenWRT-sdk/18.06.2/staging_dir/toolchain-aarch64_cortex-a53_gcc-7.3.0_musl/bin/aarch64-openwrt-linux-musl-gcc -- works                                       
-- Detecting C compiler ABI info                                                                                                                                                                                   
-- Detecting C compiler ABI info - done                                                                                                                                                                            
-- Detecting C compile features                                                                                                                                                                                    
-- Detecting C compile features - done                                                                                                                                                                             
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.                                                                                                                       
Please set them or make sure they are set and tested correctly in the CMake files:                                                                                                                                 
ubus_include_dir                                                                                                                                                                                                   
   used as include directory in directory /home/h0tmilk/OpenWRT-sdk/18.06.2/build_dir/target-aarch64_cortex-a53_musl/oui-io-util                                                                             
   used as include directory in directory /home/h0tmilk/OpenWRT-sdk/18.06.2/build_dir/target-aarch64_cortex-a53_musl/oui-io-util                                                                             
   used as include directory in directory /home/h0tmilk/OpenWRT-sdk/18.06.2/build_dir/target-aarch64_cortex-a53_musl/oui-io-util                                                                             
   used as include directory in directory /home/h0tmilk/OpenWRT-sdk/18.06.2/build_dir/target-aarch64_cortex-a53_musl/oui-io-util                                                                             
   used as include directory in directory /home/h0tmilk/OpenWRT-sdk/18.06.2/build_dir/target-aarch64_cortex-a53_musl/oui-io-util                                                                             
   used as include directory in directory /home/h0tmilk/OpenWRT-sdk/18.06.2/build_dir/target-aarch64_cortex-a53_musl/oui-io-util                                                                             
   used as include directory in directory /home/h0tmilk/OpenWRT-sdk/18.06.2/build_dir/target-aarch64_cortex-a53_musl/oui-io-util                                                                             
                                                                                                                                                                                                                   
-- Configuring incomplete, errors occurred!                                                                                                                                                                        
See also "/home/h0tmilk/OpenWRT-sdk/18.06.2/build_dir/target-aarch64_cortex-a53_musl/oui-io-util/CMakeFiles/CMakeOutput.log".                                                                                
Makefile:43: recipe for target '/home/h0tmilk/OpenWRT-sdk/18.06.2/build_dir/target-aarch64_cortex-a53_musl/oui-io-util/.configured_68b329da9893e34099c7d8ad5cb9c940' failed                                  
make[2]: *** [/home/h0tmilk/OpenWRT-sdk/18.06.2/build_dir/target-aarch64_cortex-a53_musl/oui-io-util/.configured_68b329da9893e34099c7d8ad5cb9c940] Error 1                                                   
make[2]: Leaving directory '/home/h0tmilk/OpenWRT-sdk/18.06.2/feeds/oui/oui-io-util'                                                                                                                         
time: package/feeds/oui/oui-io-util/compile#0.34#0.13#0.88                                                                                                                                                         
package/Makefile:107: recipe for target 'package/feeds/oui/oui-io-util/compile' failed                                                                                                                             
make[1]: *** [package/feeds/oui/oui-io-util/compile] Error 2                                                                                                                                                       
make[1]: Leaving directory '/home/h0tmilk/OpenWRT-sdk/18.06.2'                                                                                                                                               
/home/h0tmilk/OpenWRT-sdk/18.06.2/include/toplevel.mk:209: recipe for target 'package/feeds/oui/oui-ui-core/compile' failed                                                                                  
make: *** [package/feeds/oui/oui-ui-core/compile] Error 2

Steps
I have followed all the steps described here : https://zhaojh329.github.io/oui/guide/compile.html
I want to build only OUI.

This output may be part of my issue as well :

root@h0tmilk:OpenWRT-sdk/18.06.2 # ./scripts/feeds install -a -p oui

WARNING: Makefile 'package/linux/Makefile' has a dependency on 'r8169-firmware', which does not exist                                                                                                              
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'e100-firmware', which does not exist                                                                                                               
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'bnx2-firmware', which does not exist                                                                                                               
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'ar3k-firmware', which does not exist                                                                                                               
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'mwifiex-sdio-firmware', which does not exist                                                                                                       
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'kmod-phy-bcm-ns-usb2', which does not exist                                                                                                        
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'edgeport-firmware', which does not exist                                                                                                           
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'kmod-phy-bcm-ns-usb3', which does not exist                                                                                                        
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'prism54-firmware', which does not exist                                                                                                            
WARNING: Makefile 'package/linux/Makefile' has a dependency on 'rtl8192su-firmware', which does not exist                                                                                                          
WARNING: Makefile 'package/feeds/oui/oui-app-upnp/Makefile' has a dependency on 'miniupnpd', which does not exist                                                                                                  
WARNING: Makefile 'package/feeds/oui/oui-io-util/Makefile' has a dependency on 'libubox', which does not exist                                                                                                     
WARNING: Makefile 'package/feeds/oui/oui-io-util/Makefile' has a dependency on 'libubus', which does not exist                                                                                                     
WARNING: Makefile 'package/feeds/oui/oui-node/Makefile' has a dependency on 'libopenssl', which does not exist                                                                                                     
WARNING: Makefile 'package/feeds/oui/oui-node/Makefile' has a dependency on 'libuv', which does not exist                                                                                                          
WARNING: Makefile 'package/feeds/oui/oui-rpc-core/Makefile' has a dependency on 'rpcd', which does not exist                                                                                                       
WARNING: Makefile 'package/feeds/oui/oui-rpc-core/Makefile' has a dependency on 'rpcd-mod-iwinfo', which does not exist                                                                                            
WARNING: Makefile 'package/feeds/oui/oui-rpc-core/Makefile' has a dependency on 'rpcd-mod-file', which does not exist                                                                                              
WARNING: Makefile 'package/feeds/oui/oui-rpc-core/Makefile' has a dependency on 'rpcd-mod-rpcsys', which does not exist                                                                                            
WARNING: Makefile 'package/feeds/oui/oui-rpc-core/Makefile' has a dependency on 'uhttpd', which does not exist                                                                                                     
WARNING: Makefile 'package/feeds/oui/oui-rpc-core/Makefile' has a dependency on 'uhttpd-mod-ubus', which does not exist                                                                                            
WARNING: Makefile 'package/feeds/oui/oui-rpc-core/Makefile' has a dependency on 'lua', which does not exist                                                                                                        
WARNING: Makefile 'package/feeds/oui/oui-rpc-core/Makefile' has a dependency on 'libubox-lua', which does not exist                                                                                                
WARNING: Makefile 'package/feeds/oui/oui-rpc-core/Makefile' has a dependency on 'libubus-lua', which does not exist                                                                                                
WARNING: Makefile 'package/feeds/oui/oui-rpc-core/Makefile' has a dependency on 'libuci-lua', which does not exist                                                                                                 
WARNING: Makefile 'package/feeds/oui/oui-rpc-core/Makefile' has a dependency on 'lua-cjson', which does not exist                                                                                                  
WARNING: Makefile 'package/feeds/oui/oui-rpc-core/Makefile' has a dependency on 'liblua', which does not exist                                                                                                     
WARNING: Makefile 'package/feeds/oui/oui-ui-core/Makefile' has a build dependency on 'node/host', which does not exist                                                                                             
Ignoring feed 'base' - index missing                                                                                                                                                                               
Ignoring feed 'packages' - index missing                                                                                                                                                                           
Ignoring feed 'luci' - index missing                                                                                                                                                                               
Ignoring feed 'routing' - index missing                                                                                                                                                                            
Ignoring feed 'telephony' - index missing                                                                                                                                                                          
Installing all packages from feed oui.

Do you know what am I doing wrong ?
As a beginner I may have missed some things.
Thanks for help.

Add common use cases

While OUI is a nice web interface, it is basically a rewrite of the existing Luci interface with all its strengths and weaknesses. Meaning, regular users are (instantly) overwhelmed by the amount of options and number of required steps to perform simple tasks, like creating a guest WiFi with limited bandwidth.

It would be fantastic if you could add a simplified version which offers a limited granularity of options while performing complex configurations at once. A number of examples is found here.

I'd be happy to collaborate on the implementation, as I see the urgent need for a simple (and optionally advanced) web interface for OpenWrt.

大固件上传失败

10M的bin升级,可以在/tmp/下看到
如果是16M, /tmp下就没有这个文件,返回
{
"message": "I/O failure while writing target file",
"failure": [ 28, "No space left on device" ]
}
而实际上, luci升级是可以升级成功的

Nginx support

I made a module tu support ubus api from nginx

Can you make a sub package with nginx as a dependency?

更新 oui-app-* 代码不生效

Environment: (put here arch, model, OpenWrt version)
18.06
x64

Description:
更新固件中的 oui-app-* 代码,在浏览器中发现更新的代码不生效。在隐身模式下访问,发现相关代码已经更新。

Update to Vue 3

Vue 3 is comparably smaller size than previous release, it also enables you to import only what you need (via treeshaking) thus help reduce the overall size of the bundles.

能做成安装包形式吗

请问能做成安装包形式吗
对一些同版本的openwrt,已经在用的路由器,不希望重新编译固件、重新刷机
是否可以做成例如 ipk安装包的形式呢

ARP table

Wrong reading (ip address):

root@OpenWrt:~# ubus call oui.network arp_table
{
	"entries": [
		{
			"device": "br-lan",
			"macaddr": "e8:11:32:99:3d:a0",
			"ipaddr": "92.168.1.166"
		}
	]
}
root@OpenWrt:~# grep e8 /proc/net/arp 
192.168.1.166    0x1         0x2         e8:11:32:99:3d:a0     *        br-lan

Getting Error Compiling with 19.07

I am getting following error when trying to compile with 19.07. Any insights as to how i can solve this.

CMake Error at /home/rounak/Workbench/staging_dir/host/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find Libev (missing: LIBEV_LIBRARY LIBEV_INCLUDE_DIR)
Call Stack (most recent call first):
/home/rounak/Workbench/staging_dir/host/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindLibev.cmake:25 (find_package_handle_standard_args)
CMakeLists.txt:9 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/rounak/Workbench/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/oui-httpd-git-2020.301.59264-fcb1d74/CMakeFiles/CMakeOutput.log".
Makefile:48: recipe for target '/home/rounak/Workbench/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/oui-httpd-git-2020.301.59264-fcb1d74/.configured_68b329da9893e34099c7d8ad5cb9c940' failed
make[2]: *** [/home/rounak/Workbench/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/oui-httpd-git-2020.301.59264-fcb1d74/.configured_68b329da9893e34099c7d8ad5cb9c940] Error 1
make[2]: Leaving directory '/home/rounak/Workbench/feeds/oui/oui-httpd'

oui compile failed

/data/xuchao/7621/mt7621sdk/mtk-openwrt-cc-v3.6-0616/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/oui-bwm/main.c:13:
include/linux/sem.h:14:5: error: requested alignment is not an integer constant
In file included from include/linux/irq.h:353:0,
from /data/xuchao/7621/mt7621sdk/mtk-openwrt-cc-v3.6-0616/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/linux-3.10.108/arch/x86/include/asm/hardirq.h:5,
from include/linux/hardirq.h:8,
from include/net/netprio_cgroup.h:17,
from include/linux/netdevice.h:48,
from include/uapi/linux/if_arp.h:26,
from include/linux/if_arp.h:27,
from include/net/arp.h:5,
from /data/xuchao/7621/mt7621sdk/mtk-openwrt-cc-v3.6-0616/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/oui-bwm/main.c:13:
include/linux/irqdesc.h:77:1: error: requested alignment is not an integer constant
In file included from include/linux/hardirq.h:8:0,
from include/net/netprio_cgroup.h:17,
from include/linux/netdevice.h:48,
from include/uapi/linux/if_arp.h:26,
from include/linux/if_arp.h:27,
from include/net/arp.h:5,
from /data/xuchao/7621/mt7621sdk/mtk-openwrt-cc-v3.6-0616/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/oui-bwm/main.c:13:
/data/xuchao/7621/mt7621sdk/mtk-openwrt-cc-v3.6-0616/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/linux-3.10.108/arch/x86/include/asm/hardirq.h:36:1: error: requested alignment is not an integer constant
/data/xuchao/7621/mt7621sdk/mtk-openwrt-cc-v3.6-0616/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/linux-3.10.108/arch/x86/include/asm/hardirq.h:38:1: error: requested alignment is not an integer constant
In file included from include/uapi/linux/if_arp.h:26:0,
from include/linux/if_arp.h:27,
from include/net/arp.h:5,
from /data/xuchao/7621/mt7621sdk/mtk-openwrt-cc-v3.6-0616/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/oui-bwm/main.c:13:
include/linux/netdevice.h:530:2: error: requested alignment is not an integer constant
include/linux/netdevice.h:548:1: error: requested alignment is not an integer constant
include/linux/netdevice.h: In function 'rps_record_sock_flow':
include/linux/netdevice.h:621:3: error: implicit declaration of function 'raw_smp_processor_id' [-Werror=implicit-function-declaration]
include/linux/netdevice.h: At top level:
include/linux/netdevice.h:648:1: error: requested alignment is not an integer constant
include/linux/netdevice.h:1214:9: error: requested alignment is not an integer constant
include/linux/netdevice.h:1816:9: error: requested alignment is not an integer constant
include/linux/netdevice.h:1842:1: error: requested alignment is not an integer constant

Warning Regard as Error

Environment: (put here arch, model, OpenWrt version)

Description:

build_dir/target-arm-linux-gnueabi_glibc/oui-io-util/main.c:151:3: error: ignoring return value of 'read', declared with attribute warn_unused_result [-Werror=unused-result]
read(fds[0], chksum, 32);
build_dir/target-arm-linux-gnueabi_glibc/oui-io-util/main.c:612:3: error: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Werror=unused-result]
chdir("/");
^~~~~~~~~~

this params should have return params our makefile regard this is error.

Formating code blocks by wrapping them with pairs of ```

yorkie fails with errno 134

CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap/home/a/src/openwrt/build_dir/target-mips_24kc_musl/oui-ui-core:oui-ui-core -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro  -I/home/a/src/openwrt/staging_dir/target-mips_24kc_musl/usr/include -I/home/a/src/openwrt/staging_dir/target-mips_24kc_musl/include -I/home/a/src/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.4.0_musl/usr/include -I/home/a/src/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.4.0_musl/include/fortify -I/home/a/src/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.4.0_musl/include " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap/home/a/src/openwrt/build_dir/target-mips_24kc_musl/oui-ui-core:oui-ui-core -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro  -I/home/a/src/openwrt/staging_dir/target-mips_24kc_musl/usr/include -I/home/a/src/openwrt/staging_dir/target-mips_24kc_musl/include -I/home/a/src/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.4.0_musl/usr/include -I/home/a/src/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.4.0_musl/include/fortify -I/home/a/src/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.4.0_musl/include " LDFLAGS="-L/home/a/src/openwrt/staging_dir/target-mips_24kc_musl/usr/lib -L/home/a/src/openwrt/staging_dir/target-mips_24kc_musl/lib -L/home/a/src/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.4.0_musl/usr/lib -L/home/a/src/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.4.0_musl/lib -znow -zrelro " make  -C /home/a/src/openwrt/build_dir/target-mips_24kc_musl/oui-ui-core/. AR="mips-openwrt-linux-musl-gcc-ar" AS="mips-openwrt-linux-musl-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap/home/a/src/openwrt/build_dir/target-mips_24kc_musl/oui-ui-core:oui-ui-core -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=mips-openwrt-linux-musl-ld NM="mips-openwrt-linux-musl-gcc-nm" CC="mips-openwrt-linux-musl-gcc" GCC="mips-openwrt-linux-musl-gcc" CXX="mips-openwrt-linux-musl-g++" RANLIB="mips-openwrt-linux-musl-gcc-ranlib" STRIP=mips-openwrt-linux-musl-strip OBJCOPY=mips-openwrt-linux-musl-objcopy OBJDUMP=mips-openwrt-linux-musl-objdump SIZE=mips-openwrt-linux-musl-size CROSS="mips-openwrt-linux-musl-" ARCH="mips" ;
make[4]: Entering directory '/home/a/src/openwrt/build_dir/target-mips_24kc_musl/oui-ui-core'
npm install

> [email protected] install /home/a/src/openwrt/build_dir/target-mips_24kc_musl/oui-ui-core/node_modules/yorkie
> node bin/install.js

setting up Git hooks
can't find .git directory, skipping Git hooks installation
Aborted
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 134
npm ERR! [email protected] install: `node bin/install.js`
npm ERR! Exit status 134
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/a/.npm/_logs/2019-07-03T11_18_05_215Z-debug.log
make[4]: *** [Makefile:4: .tmp/.npm_stamp] Aborted
make[4]: Leaving directory '/home/a/src/openwrt/build_dir/target-mips_24kc_musl/oui-ui-core'
make[3]: *** [Makefile:69: /home/a/src/openwrt/build_dir/target-mips_24kc_musl/oui-ui-core/.built] Error 2
make[3]: Leaving directory '/home/a/src/openwrt/feeds/oui/oui-ui-core'
time: package/feeds/oui/oui-ui-core/compile#11.83#0.75#9.94
make[2]: *** [package/Makefile:109: package/feeds/oui/oui-ui-core/compile] Error 2
make[2]: Leaving directory '/home/a/src/openwrt'
make[1]: *** [package/Makefile:103: /home/a/src/openwrt/staging_dir/target-mips_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/a/src/openwrt'
make: *** [/home/a/src/openwrt/include/toplevel.mk:218: world] Error 2

I can't compile

Environment: OpenWrt Snapshots

Description: I follow the compilation instructions but it gives me error.

franco@GA-B150M-DS3H:~/openwrt$
make[2]: Entering directory '/home/franco/openwrt/scripts/config'
conf.c: In function 'main':
conf.c:620:6: warning: format not a string literal and no format arguments [-Wformat-security]
  620 |      _("\n*** The configuration requires explicit update.\n\n"));
      |      ^
conf.c:674:4: warning: format not a string literal and no format arguments [-Wformat-security]
  674 |    fprintf(stderr, _("\n*** Error during writing of the configuration.\n\n"));
      |    ^~~~~~~
conf.c:678:4: warning: format not a string literal and no format arguments [-Wformat-security]
  678 |    fprintf(stderr, _("\n*** Error during update of the configuration.\n\n"));
      |    ^~~~~~~
conf.c:689:4: warning: format not a string literal and no format arguments [-Wformat-security]
  689 |    fprintf(stderr, _("\n*** Error during writing of the configuration.\n\n"));
      |    ^~~~~~~
make[2]: Leaving directory '/home/franco/openwrt/scripts/config'
time: target/linux/prereq#0.53#0.51#1.26
make[1]: Entering directory '/home/franco/openwrt'
make[2]: Entering directory '/home/franco/openwrt/feeds/oui/oui-bwm'
touch /home/franco/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/oui-bwm/.prepared_69d9b7811950b3624bfeb921fe6c58a9_6664517399ebbbc92a37c5bb081b5c53_check
install -d -m0755 /home/franco/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/oui-bwm
cp -fpR ./src/. /home/franco/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/oui-bwm
touch /home/franco/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/oui-bwm/.prepared_69d9b7811950b3624bfeb921fe6c58a9_6664517399ebbbc92a37c5bb081b5c53
rm -f /home/franco/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/oui-bwm/.configured_*
rm -f /home/franco/openwrt/staging_dir/target-mips_24kc_musl/stamp/.oui-bwm_installed
(cd /home/franco/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/oui-bwm/./; if [ -x ./configure ]; then find /home/franco/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/oui-bwm/ -name config.guess | xargs -r chmod u+w; find /home/franco/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/oui-bwm/ -name config.guess | xargs -r -n1 cp --remove-destination /home/franco/openwrt/scripts/config.guess; find /home/franco/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/oui-bwm/ -name config.sub | xargs -r chmod u+w; find /home/franco/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/oui-bwm/ -name config.sub | xargs -r -n1 cp --remove-destination /home/franco/openwrt/scripts/config.sub; AR="mips-openwrt-linux-musl-gcc-ar" AS="mips-openwrt-linux-musl-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -ffile-prefix-map=/home/franco/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/oui-bwm=oui-bwm -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=mips-openwrt-linux-musl-ld NM="mips-openwrt-linux-musl-gcc-nm" CC="mips-openwrt-linux-musl-gcc" GCC="mips-openwrt-linux-musl-gcc" CXX="mips-openwrt-linux-musl-g++" RANLIB="mips-openwrt-linux-musl-gcc-ranlib" STRIP=mips-openwrt-linux-musl-strip OBJCOPY=mips-openwrt-linux-musl-objcopy OBJDUMP=mips-openwrt-linux-musl-objdump SIZE=mips-openwrt-linux-musl-size CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -ffile-prefix-map=/home/franco/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/oui-bwm=oui-bwm -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -ffile-prefix-map=/home/franco/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/oui-bwm=oui-bwm -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CPPFLAGS="-I/home/franco/openwrt/staging_dir/target-mips_24kc_musl/usr/include -I/home/franco/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.4.0_musl/usr/include -I/home/franco/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.4.0_musl/include/fortify -I/home/franco/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.4.0_musl/include " LDFLAGS="-L/home/franco/openwrt/staging_dir/target-mips_24kc_musl/usr/lib -L/home/franco/openwrt/staging_dir/target-mips_24kc_musl/lib -L/home/franco/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.4.0_musl/usr/lib -L/home/franco/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.4.0_musl/lib -znow -zrelro "   ./configure --target=mips-openwrt-linux --host=mips-openwrt-linux --build=x86_64-pc-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls  ; fi; )
touch /home/franco/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/oui-bwm/.configured_68b329da9893e34099c7d8ad5cb9c940
make[2]: *** No rule to make target '/home/franco/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-4.19.115/.config', needed by '/home/franco/openwrt/build_dir/target-mips_24kc_musl/linux-ath79_generic/oui-bwm/.built'.  Stop.
make[2]: Leaving directory '/home/franco/openwrt/feeds/oui/oui-bwm'
time: package/feeds/oui/oui-bwm/compile#0.12#0.67#1.81
make[1]: *** [package/Makefile:113: package/feeds/oui/oui-bwm/compile] Error 2
make[1]: Leaving directory '/home/franco/openwrt'
make: *** [/home/franco/openwrt/include/toplevel.mk:220: package/feeds/oui/oui-ui-core/compile] Error 2

oui-ui-core: why not use cgi-io upstream package

Environment: x86_64, APU3, OpenWrt master

Description:
@zhaojh329 Is there a reason why you have forked cgi-io into oui-io-util?
I think it is better to use the upstream project here and not just make a fork.
Of course there are advantages and disadvantages but I think the advantages outweigh the disadvantages here. The Upstream project is much further along and has already fixed bugs and added new features.

If this is OK I will prepare a pull request to remove this and use the upstream project from openwrt core. I do have to to some additional test on my environment.

The following commits are not added.

  • So do we need them?
  • Or are they already applied upstream?

c7131d5#diff-81c7acce021b0b593a0b1aec6d2f5a0c
28e2631#diff-81c7acce021b0b593a0b1aec6d2f5a0c

How to install?

Hello, I'm just looking to install this on my OpenWRT router, is there any doc. available on how to install this? It looks awesome! Thanks!

build problem

Environment: (openwrt, linkit7688, OpenWrt 19.7)

Description:
Hi
I followed exactly whats written in 'How to build?' However no success. I am getting *** No rule to make target 'package/feeds/oui/oui-ui/compile.

I have checked all package components with menuconfig. When I check the package/feeds/oui directory I only see application sub directories and individual mk files, however no oui-ui folder or mkfile.

Update:
I have manually copied oui.mk and oui-app.mk to package/feeds/oui directory
Now I got the error while compiling: Could NOT find Libev (missing: LIBEV_LIBRARY LIBEV_INCLUDE_DIR)

I specially selected libev to be compiled

Update:
I deselected oui using menuconfig recompiled, then added oui and compiled now I got the error;
Could NOT find Libuhttpd: Found unsuitable version "2.2", but required is
at least "3.4"

Update:
I fetch the latest openwrt git. Compiled the oui succesfully. when I try reach web ui, the first screen is the base directory.
I think "How to" section must be more deteiled

建议设置vwrt内置nodejs选项,统一node版本

目前很多基于openwrt的sdk里边带的sdk都很老,并且,不同发行版带的版本也不一样,Openwrt的package更新又很激进,做到最大兼容的方法,目前我想到的就是在vwrt里边内置一个node版本。

`source` in Config.in without quotation marks will cause error.

openwrt version: openwrt master branch

add src-git oui https://github.com/zhaojh329/oui.git to feeds.conf.default and make menuconfig it returns:

tmp/.config-package.in:132886: syntax error
tmp/.config-package.in:132885: invalid statement 

It related to :

source $(SOURCE)/Config.in

Fix:

define Package/oui-ui-core/config
        source $(SOURCE)/Config.in
endef

should be

define Package/oui-ui-core/config
        source "$(SOURCE)/Config.in"
endef

Cant compile because of errors

Environment: (put here arch, model, OpenWrt version)
OpenWrt 18.06.8

Description: Cant compile

[ 10%] Building C object CMakeFiles/oui-httpd.dir/main.c.o
In file included from /home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oui-httpd-git-2020.283.14113-8299880/main.c:35:0:
/home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oui-httpd-git-2020.283.14113-8299880/rpc.h:33:23: error: 'struct uh_connection' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
 void serve_rpc(struct uh_connection *conn);
                       ^~~~~~~~~~~~~
/home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oui-httpd-git-2020.283.14113-8299880/main.c:46:26: error: 'struct uh_connection' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
 void serve_upload(struct uh_connection *conn);
                          ^~~~~~~~~~~~~
/home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oui-httpd-git-2020.283.14113-8299880/main.c:48:28: error: 'struct uh_connection' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
 void serve_download(struct uh_connection *conn);
                            ^~~~~~~~~~~~~
/home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oui-httpd-git-2020.283.14113-8299880/main.c:50:31: error: 'struct uh_connection' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
 static void on_request(struct uh_connection *conn)
                               ^~~~~~~~~~~~~
/home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oui-httpd-git-2020.283.14113-8299880/main.c: In function 'on_request':
/home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oui-httpd-git-2020.283.14113-8299880/main.c:52:18: error: variable 'path' has initializer but incomplete type
     const struct uh_str path = conn->get_path(conn);
                  ^~~~~~
/home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oui-httpd-git-2020.283.14113-8299880/main.c:52:36: error: dereferencing pointer to incomplete type 'struct uh_connection'
     const struct uh_str path = conn->get_path(conn);
                                    ^~
/home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oui-httpd-git-2020.283.14113-8299880/main.c:52:25: error: storage size of 'path' isn't known
     const struct uh_str path = conn->get_path(conn);
                         ^~~~
/home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oui-httpd-git-2020.283.14113-8299880/main.c:55:22: error: passing argument 1 of 'serve_upload' from incompatible pointer type [-Werror=incompatible-pointer-types]
         serve_upload(conn);
                      ^~~~
/home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oui-httpd-git-2020.283.14113-8299880/main.c:46:6: note: expected 'struct uh_connection *' but argument is of type 'struct uh_connection *'
 void serve_upload(struct uh_connection *conn);
      ^~~~~~~~~~~~
/home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oui-httpd-git-2020.283.14113-8299880/main.c:57:24: error: passing argument 1 of 'serve_download' from incompatible pointer type [-Werror=incompatible-pointer-types]
         serve_download(conn);
                        ^~~~
/home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oui-httpd-git-2020.283.14113-8299880/main.c:48:6: note: expected 'struct uh_connection *' but argument is of type 'struct uh_connection *'
 void serve_download(struct uh_connection *conn);
      ^~~~~~~~~~~~~~
/home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oui-httpd-git-2020.283.14113-8299880/main.c:59:19: error: passing argument 1 of 'serve_rpc' from incompatible pointer type [-Werror=incompatible-pointer-types]
         serve_rpc(conn);
                   ^~~~
In file included from /home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oui-httpd-git-2020.283.14113-8299880/main.c:35:0:
/home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oui-httpd-git-2020.283.14113-8299880/rpc.h:33:6: note: expected 'struct uh_connection *' but argument is of type 'struct uh_connection *'
 void serve_rpc(struct uh_connection *conn);
      ^~~~~~~~~
/home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oui-httpd-git-2020.283.14113-8299880/main.c:52:25: error: unused variable 'path' [-Werror=unused-variable]
     const struct uh_str path = conn->get_path(conn);
                         ^~~~
/home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oui-httpd-git-2020.283.14113-8299880/main.c: In function 'signal_cb':
/home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oui-httpd-git-2020.283.14113-8299880/main.c:68:9: error: implicit declaration of function 'uh_log_info' [-Werror=implicit-function-declaration]
         uh_log_info("Normal quit\n");
         ^~~~~~~~~~~
/home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oui-httpd-git-2020.283.14113-8299880/main.c: In function 'main':
/home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oui-httpd-git-2020.283.14113-8299880/main.c:125:9: error: implicit declaration of function 'uh_log_threshold' [-Werror=implicit-function-declaration]
         uh_log_threshold(LOG_ERR);
         ^~~~~~~~~~~~~~~~
/home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oui-httpd-git-2020.283.14113-8299880/main.c:125:26: error: 'LOG_ERR' undeclared (first use in this function); did you mean 'SIG_ERR'?
         uh_log_threshold(LOG_ERR);
                          ^~~~~~~
                          SIG_ERR
/home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oui-httpd-git-2020.283.14113-8299880/main.c:125:26: note: each undeclared identifier is reported only once for each function it appears in
/home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oui-httpd-git-2020.283.14113-8299880/main.c:138:25: error: passing argument 1 of 'uh_server_new' from incompatible pointer type [-Werror=incompatible-pointer-types]
     srv = uh_server_new(loop, "0.0.0.0", port);
                         ^~~~
In file included from /home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oui-httpd-git-2020.283.14113-8299880/main.c:32:0:
/home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/include/uhttpd/uhttpd.h:50:19: note: expected 'const char *' but argument is of type 'struct ev_loop *'
 struct uh_server *uh_server_new(const char *host, int port);
                   ^~~~~~~~~~~~~
/home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oui-httpd-git-2020.283.14113-8299880/main.c:138:31: error: passing argument 2 of 'uh_server_new' makes integer from pointer without a cast [-Werror=int-conversion]
     srv = uh_server_new(loop, "0.0.0.0", port);
                               ^~~~~~~~~
In file included from /home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oui-httpd-git-2020.283.14113-8299880/main.c:32:0:
/home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/include/uhttpd/uhttpd.h:50:19: note: expected 'int' but argument is of type 'char *'
 struct uh_server *uh_server_new(const char *host, int port);
                   ^~~~~~~~~~~~~
/home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oui-httpd-git-2020.283.14113-8299880/main.c:138:11: error: too many arguments to function 'uh_server_new'
     srv = uh_server_new(loop, "0.0.0.0", port);
           ^~~~~~~~~~~~~
In file included from /home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oui-httpd-git-2020.283.14113-8299880/main.c:32:0:
/home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/include/uhttpd/uhttpd.h:50:19: note: declared here
 struct uh_server *uh_server_new(const char *host, int port);
                   ^~~~~~~~~~~~~
/home/studentas/Desktop/RUTX_R_GPL_00.02.04.3/openwrt-gpl-ipq40xx.Linux-x86_64/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/oui-httpd-git-2020.283.14113-8299880/main.c:144:8: error: 'struct uh_server' has no member named 'on_request'
     srv->on_request = on_request;
        ^~
cc1: all warnings being treated as errors

NPM package-lock.json warning

When you try to do 'npm install' you will give following warning. Using yarn as a work-around for now.

$ npm install
npm WARN saveError ENOENT: no such file or directory, open '/home/vuci/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/home/vuci/package.json'
npm WARN vuci No description
npm WARN vuci No repository field.
npm WARN vuci No README data
npm WARN vuci No license field.

up to date in 1.353s
found 0 vulnerabilities

Invalid or unexpected token

Environment: (put here arch, model, OpenWrt version)
OpenWrt 18.06.8

Description: After uploading packages to system and running oui on browser.

chunk-vendors.84231e0e.js:1 Uncaught SyntaxError: Invalid or unexpected token
app.1eac7929.js:1 Uncaught SyntaxError: Invalid or unexpected token

编译出的应用有2M,能否降低

Environment: (put here arch, model, OpenWrt version)

Description:
我编译处理的js脚本和样式文件一共有2M,这个是正常的,还是我的编译有问题?

Formating code blocks by wrapping them with pairs of ```

[Build] 'package/feeds/vuci/vuci-ui-base/compile' failed

Unable to complete build. There seems some issue with build/compile stage.

Full Error: http://paste.ubuntu.com/p/8WPzWyrsJ5/
-openwrt-linux-muslgnueabi-ld NM="arm-openwrt-linux-muslgnueabi-gcc-nm" CC="arm-openwrt-linux-muslgnueabi-gcc" GCC="arm-openwrt-linux-muslgnueabi-gcc" CXX="arm-openwrt-linux-muslgnueabi-g++" RANLIB="arm-openwrt-linux-muslgnueabi-gcc-ranlib" STRIP=arm-openwrt-linux-muslgnueabi-strip OBJCOPY=arm-openwrt-linux-muslgnueabi-objcopy OBJDUMP=arm-openwrt-linux-muslgnueabi-objdump SIZE=arm-openwrt-linux-muslgnueabi-size CROSS="arm-openwrt-linux-muslgnueabi-" ARCH="arm" ; make[4]: Entering directory '/home/arky/Code/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_musl_eabi/vuci-ui-base' make[4]: *** No targets specified and no makefile found. Stop. make[4]: Leaving directory '/home/arky/Code/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_musl_eabi/vuci-ui-base' Makefile:54: recipe for target '/home/arky/Code/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_musl_eabi/vuci-ui-base/.built' failed make[3]: *** [/home/arky/Code/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_musl_eabi/vuci-ui-base/.built] Error 2 make[3]: Leaving directory '/home/arky/Code/openwrt/feeds/vuci/vuci-ui-base' Command exited with non-zero status 2 time: package/feeds/vuci/vuci-ui-base/compile#0.22#0.11#0.55 package/Makefile:107: recipe for target 'package/feeds/vuci/vuci-ui-base/compile' failed make[2]: *** [package/feeds/vuci/vuci-ui-base/compile] Error 2 make[2]: Leaving directory '/home/arky/Code/openwrt' package/Makefile:103: recipe for target '/home/arky/Code/openwrt/staging_dir/target-arm_arm1176jzf-s+vfp_musl_eabi/stamp/.package_compile' failed make[1]: *** [/home/arky/Code/openwrt/staging_dir/target-arm_arm1176jzf-s+vfp_musl_eabi/stamp/.package_compile] Error 2 make[1]: Leaving directory '/home/arky/Code/openwrt' /home/arky/Code/openwrt/include/toplevel.mk:216: recipe for target 'world' failed make: *** [world] Error 2 --

`

Content-Encoding: gzip

Currently, uhttpd does not support "Content-Encoding: gzip". If supported, we can compress oui's pages.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.