2011-01-10 6 views
0

iphone OS 4のライブラリを作成しようとしましたが、エラーが発生しました。iPhone用バークレーDB

ここに私のビルドスクリプトがBerkeley DBのインストールガイドを参照しています。

export DEV_iOS=/Developer/Platforms/iPhoneOS.platform/Developer 
export SDK_iOS=${DEV_iOS}/SDKs/iPhoneOS4.2.sdk 
export COMPILER_iOS=${DEV_iOS}/usr/bin 
export CC=${COMPILER_iOS}/gcc 
export CXX=${COMPILER_iOS}/g++ 
export LDFLAGS="-arch armv6 -pipe -Os -gdwarf-2 -no-cpp-precomp -mthumb -isysroot ${SDK_iOS}" 
export CFFLAGS=${LDFLAGS} 
export CXXFLAGS=${LDFLAGS} 
../dist/configure --host=arm-apple-darwin10 --with-cryptography=no --enable-shared=no 
make 

は、ここで私は警告with3エラーメッセージを取得しています:私はスクリプトで間違ってやっているところ

libtool: link: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -O3 -o db_archive -arch armv6 -pipe -Os -gdwarf-2 -no-cpp-precomp -mthumb -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk db_archive.o util_sig.o libdb-5.1.a -lpthread 
ld: warning: in db_archive.o, file was built for i386 which is not the architecture being linked (armv6) 
ld: warning: in util_sig.o, file was built for i386 which is not the architecture being linked (armv6) 
ld: warning: in libdb-5.1.a, file was built for unsupported file format which is not the architecture being linked (armv6) 
Undefined symbols: 
"_main", referenced from: 
_main$non_lazy_ptr in crt1.o 
(maybe you meant: _main$non_lazy_ptr) 
ld: symbol(s) not found 
collect2: ld returned 1 exit status 
make: *** [db_archive] Error 1 

は、私を導いてください。

ありがとうございます。

答えて

0

バークレーDBとあなたの質問をお寄せいただきありがとうございます。 Berkeley DBチームは、このウェブサイトで頻繁に質問することはありません。あなたはここにBerkeley DBのフォーラムに質問を投稿することが最善です:

http://forums.oracle.com/forums/forum.jspa?forumID=271

あなたがそこに投稿する場合、我々は速やかに対応しようとします。このスレッドを、次の人のため

よろしく、 アレックスGorrod のOracle Berkeley DBの

+0

こんにちはみんな、おかげで –

2

、あなたがhereを見つけることができます答え、実際のOTNフォーラムのエントリを見てみたいことがあります。

よろしく、

デイブ

関連する問題