|
RTBuild the OpenWrt SDK
就能编译出来sdk,把sdk解压然后在里面make menuconfig 后出现了这个错误!!
- <a href="mailto:jack@ubuntu:OpenWrt-SDK-ar71xx-for-linux-i686-gcc-4.6-linaro_uClibc-0.9.33.2$">jack@ubuntu:OpenWrt-SDK-ar71xx-for-linux-i686-gcc-4.6-linaro_uClibc-0.9.33.2$</a> make menuconfig
- tmp/.config-package.in:4: glob failed: No files found "package/*/image-config.in"
- make: *** [menuconfig] 错误 1
- <p> </p>
复制代码
我写了测试用的helloworld,调用了pcap库,然后出现这个错误
- install -m0755 /home/jack/OpenWrt-SDK-ar71xx-for-linux-i686-gcc-4.6-linaro_uClibc-0.9.33.2/build_dir/target-mips_34kc_uClibc-0.9.33.2/helloworld/helloworld /home/jack/OpenWrt-SDK-ar71xx-for-linux-i686-gcc-4.6-linaro_uClibc-0.9.33.2/build_dir/target-mips_34kc_uClibc-0.9.33.2/helloworld/ipkg-ar71xx/helloworld/bin/
- find /home/jack/OpenWrt-SDK-ar71xx-for-linux-i686-gcc-4.6-linaro_uClibc-0.9.33.2/build_dir/target-mips_34kc_uClibc-0.9.33.2/helloworld/ipkg-ar71xx/helloworld -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
- Package helloworld is missing dependencies for the following libraries:
- libpcap.so.1.3
- make[3]: *** [/home/jack/OpenWrt-SDK-ar71xx-for-linux-i686-gcc-4.6-linaro_uClibc-0.9.33.2/bin/ar71xx/packages/helloworld_1_ar71xx.ipk] Error 1
- <p> </p>
复制代码
Package helloworld is missing dependencies for the following libraries:
libpcap.so.1.3 缺少依赖库!
但是我确实是加上了啊!
package/helloworld/Makefile
- define Package/helloworld
- SECTION:=utils
- CATEGORY:=Utilities
- TITLE:=Helloworld -- prints a snarky message
- DEPENDS:=+libpcap
- endef
复制代码- <p>=======package/helloworld/src/Makefile</p><p>helloworld: helloworld.o
- $(CC) $(LDFLAGS) helloworld.o -o helloworld -lpcap</p><p>helloworld.o: helloworld.c
- $(CC) $(CFLAGS) -c helloworld.c -lpcap</p><p># remove object files and executable when user executes "make clean"
- clean:
- rm *.o helloworld
- </p><p> </p>
复制代码
都加上了对libpcap的支持!
为嘛还是找不到....
|
|