1. Modify the build-libpcap.sh libpcap version number
2. Perform a script compilation
A problem occurred:
2. After discovering configure, there is a problem with makefile
The actual configure-arch armv7s version does not know why the error occurred.
Remove part of red box
Make-j2 && make Install
Pass!
3. Attach Configure
./configure--disable-shared--enable-static --with-pcap=bpf--enable-ipv6--host arm-apple-darwin--prefix= /users/chulk/pcap/build/built/iphoneos8. 2-armv7s.sdk cc=/applications/xcode.app/contents/developer/usr/bin/gcc ldflags=-arch Armv7s-fpie- miphoneos-version-min=7.0 -l/users/chulk/pcap/dependencies/lib cflags=-g-o0-d__apple_use_rfc_3542- Arch armv7s-fpie-miphoneos-version-min=7.0 -i/users/chulk/pcap/dependencies/include-isysroot/ Applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/sdks/iphoneos8. 2. SDK
Note:
When the shell executes, the execution command can be added at the beginning:
#!/bin/bash-x
Or
Set-x #echo on
Compiling iOS under libpcap1.7.2