IOS下Libevent编译步骤,及引入Xcode备忘
一键安装 https://github.com/OnionBrowser/OnionBrowser/blob/master/build-libssl.sh 0.先用:ls -al /usr/lib | grep libevent 查看是否已安装,如果已安装且版本低于1.3,则先通过:rpm -e libevent —nodeps 进行卸载。 1.下载libevent安装包:libevent-2.0.22-stable.tar.gz,然后解压。 2.切换到解压后的 libevent 主目录:cd libevent-2.0.22-stable 3.依次执行: ./configure –prefix=/usr (或 ./configure --program-prefix=/usr) make make install ----ARM64 ./configure --prefix=/Users/XX/lv --host=arm-apple-darwin --enable-static=yes --enable-shared=no CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc CFLAGS="-arch arm64 -pipe -std=c99 -Wno-extended-offsetof -Wno-trigraphs -fpascal-strings -O2 -Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden -miphoneos-version-min=6.0 -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Deve...