./scripts/feeds Update–a
./scripts/feeds Install–a
Ignoring feed ' Luci '-index missing
Workaround: Refer to Https://github.com/openwrt/luci
To modify Feeds.conf.default, add the following statement
src-git luci https://github.com/openwrt/luci.git
The corresponding statement is masked.
To install the all it package definitions, run:
./scripts/feeds update luci./scripts/feeds install -a -p luci
The Luci option appears on the Menuconfig configuration interface
Run Make v=99
The following error occurred
Implicit declaration of function ' Json_tokener_get_error '
Implicit declaration of function ' Json_tokener_error_desc '
Error: ' json_c_to_string_spaced ' undeclared (first use of this function)
Error: ' Json_c_to_string_pretty ' undeclared (first use of this function)
Warning:implicit declaration of function ' Json_object_to_json_string_ext '
Modify the following:
Json_object.h
#define JSON_C_TO_STRING_SPACED (1<<0)
#define Json_c_to_string_pretty (1<<1)
Json_tokener.c
const char *JSON_TOKENER_ERROR_DESC (enum Json_tokener_error jerr)
{
int jerr_int = (int) Jerr;
if (Jerr_int < 0 | | jerr_int > (int) sizeof (json_tokener_errors))
Return "Unknown error, invalid Json_tokener_error value passed to Json_tokener_error_desc ()";
return Json_tokener_errors[jerr];
}
Enum Json_tokener_error json_tokener_get_error (Json_tokener *tok)
{
Return tok->err;
}
Json_object.c
Const char* Json_object_to_json_string_ext (struct json_object *jso, int flags)
{
if (!JSO)
return "null";
if (!JSO->_PB) &&! ( JSO->_PB = Printbuf_new ()))
return NULL;
Printbuf_reset (JSO->_PB);
if (jso->_to_json_string (JSO, JSO->_PB, 0, flags) < 0)
return NULL ;
return jso->_pb->buf;
}
Arm-openwrt-linux-gnueabi/bin/ld:cannot find-ljson-c
Collect2:ld returned 1 exit status
/home/jetli/openwrt-dreambox/staging_dir/target-arm_v4t_eglibc-2.8_eabi/usr/include
The directory has a JSON directory,
Open/home/jetli/openwrt-dreambox/build_dir/target-arm_v4t_eglibc-2.8_eabi/luci-lib-jsonc/src/makefile
Change all json-c in the file to JSON
OpenWrt Luci on mini2440