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