I'm using the following script to build the Berkeley DB library.
It builds and installs just fine, but when I run my test application I get an error like this:
BDB1539 Build signature doesn't match environment
followed by 11 exceptions and then a terminate caused by the exceptions.
I looked in the script log file [EDIT]for the berkeley DB build[/EDIT] and it has this:
I assume this means I'm building for an x86_64 processor, but the simulator is a 32 bit processor. How do I specify 32 bit in the script?
Code:
DEVROOT=/Developer/Platforms/iPhoneSimulator.platform/Developer
SDKROOT=$DEVROOT/SDKs/iPhoneSimulator5.0.sdk
SYSROOT=$SDKROOT
export CXXPP=
export CXXPPFLAGS=
export CPPFLAGS="-I$SDKROOT/usr/include/c++/4.2.1/i686-apple-darwin11/ -I$SDKROOT/usr/lib/gcc/i686-apple-darwin11/4.2.1/include/ -I$SDKROOT/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/include/ -I$SDKROOT/usr/include/ -I$SDKROOT/usr/include/c++/4.2.1/armv7-apple-darwin11/ -I./include/ -miphoneos-version-min=2.2 $ICU_FLAGS"
export CFLAGS="$CPPFLAGS -pipe -arch i386 -no-cpp-precomp -isysroot $SDKROOT"
export CPP="$DEVROOT/usr/bin/cpp $CPPFLAGS"
export CXXFLAGS="$CFLAGS"
export CC="$DEVROOT/usr/bin/gcc"
export CXX="$DEVROOT/usr/bin/g++"
export LDFLAGS="-arch i386 -L$SDKROOT/usr/lib/ -lgcc_eh -isysroot $SDKROOT -Wl,-dead_strip -miphoneos-version-min=2.0"
../dist/configure --with-cryptography=no --enable-shared=no --enable-cxx
BDB1539 Build signature doesn't match environment
followed by 11 exceptions and then a terminate caused by the exceptions.
I looked in the script log file [EDIT]for the berkeley DB build[/EDIT] and it has this:
build='x86_64-apple-darwin11.2.0'
build_alias=''
build_cpu='x86_64'
build_os='darwin11.2.0'
build_vendor='apple'
I assume this means I'm building for an x86_64 processor, but the simulator is a 32 bit processor. How do I specify 32 bit in the script?
Last edited: