Skip to Main Content

Berkeley DB Family

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

build the Berkeley DB for iPhone iOS

3334171Nov 14 2016 — edited Nov 15 2016

My Xcode version is 8.0,this is my steps:

follows:

DEV_iOS=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer

export SDK_iOS=${DEV_iOS}/SDKs/iPhoneSimulator10.0.sdk

export COMPILER_iOS=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

export CC=${COMPILER_iOS}/clang

export CXX=${COMPILER_iOS}/clang++

export LDFLAGS="-arch i386 -pipe -Os -gdwarf-2 -no-cpp-precomp -mthumb -isysroot ${SDK_iOS}"

export CFLAGS=${LDFLAGS}

export CXXFLAGS=${LDFLAGS}

export LD=${COMPILER_iOS}/ld

export CPP=${COMPILER_iOS}/cpp

export AR=${COMPILER_iOS}/err

export AS=${COMPILER_iOS}/as

export NM=${COMPILER_iOS}/nm

export CXXCPP=${COMPILER_iOS}/cpp

export RANLIB=${COMPILER_iOS}/ranlib

cd /Users/huaguang/Downloads/db-6.2.23/build_unix

sudo ../dist/configure --host=i386-apple-darwin15.6.0 --with-cryptography=no --enable-shared=no  --enable-sql --prefix=/Users/huaguang/Desktop/数据库存储位置/模拟器

According to the above. I use lipo command ,it is appear

input file libdb-6.2.a is not a fat file

Non-fat file: libdb-6.2.a is architecture: x86_64

I want this static library support the i386 arch,but it is not, I do not know what the wrong about my steps,please give me an help, Thanks;

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 13 2016
Added on Nov 14 2016
3 comments
885 views