Compiling openwrt times gconvert.c Error resolution method

Source: Internet
Author: User

The first time I compile OpenWrt, I see the following error message:

Gconvert.c:66:2: Error: #error GNU libiconv not on use but included Iconv.h was from Libiconv

I'm looking for solutions on the Internet, and the result is consistently saying, again./configure:

./configure--enable-iconv=no--with-libiconv=gnumake

The key to the problem is: OpenWrt trunk path not see a Configure AH!

Later, after careful scrutiny, found that the glib was not passed.

$ find-name "gconvert.c"./build_dir/host/pkg-config-0.28/glib/glib/gconvert.c

Then I'll go straight to the./build_dir/host/pkg-config-0.28/glib/path and find the Configure file under the path.

Then I say compile glib directly under this path

$ cd build_dir/host/pkg-config-0.28/glib/./configure--enable-iconv=no--with-libiconv=gnumake

In this way, glib successfully passed the compilation.

Go back to OpenWrt's trunk path and continue make.

Compiling openwrt times gconvert.c Error resolution method

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.