OpenWrt Luci on mini2440

Source: Internet
Author: User

./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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.