The HelloWorld of the OpenWrt compiled on CentOS 6.0 cannot find the Libc.so.6 processing method

Source: Internet
Author: User

1. Install CentOS 6.0 in VMware and install it minimal desktop

2. Compile firmware and SDK with reference to HTTP://WIKI.WRTNODE.COM/INDEX.PHP?TITLE=COMPILING_WRTNODE_STATIC_SDK/ZH-CN

Choose Fedora 17 To install the required packages

Yum install-y subversion binutils bzip2 gcc gcc-c++ gawk gettext Flex Libz-dev Flex ncurses-devel zlib-devel make patch U Nzip Perl-extutils-makemaker

3. Develop HelloWorld program with reference to HTTP://WIKI.WRTNODE.COM/INDEX.PHP?TITLE=OPENWRT_DEVELOPMENT/ZH-CN

To this step you need to pay attention to modify the makefile file, if not modified, will be reported to find libc.so.6 error.

The original makefile file has a section for

Define Package/helloworld/install    $ (install_dir) $ (1)/bin    $ (install_bin) $ (pkg_build_dir)/helloworld $ (1)/ Bin/endef

In the meantime add a sentence of $ (CP)/lib/libc.so.6 $ (1)/bin
Among them, libc.so.6 in the/lib/directory,
is added and then changed to
Define Package/helloworld/install $ (install_dir) $ (1)/bin
$ (CP)/lib/libc.so.6 $ (1)/bin $ (install_bin) $ (pkg_build_dir)/helloworld $ (1)/bin/endef

Modify the makefile file after the order is compiled

The HelloWorld of the OpenWrt compiled on CentOS 6.0 cannot find the Libc.so.6 processing method

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.