It looks like it is looking for x86 header files, which suggests that the
compiler thinks you are trying to compile for x86 rather than ARM.

On Mon, Oct 19, 2009 at 2:37 PM, JavaGuru <gringol...@gmail.com> wrote:

>
> Im trying to build a static protobuff library to use with iPhone and
> Im running into problems.
> Ive used this thread to configure the build:
>
>
> http://groups.google.com/group/protobuf/browse_thread/thread/5f5a801c98afe05e/a4302ff3ff8eb094
> ----BEGIN configPB.sh-----------
>
> #!/bin/bash
>
> MY_FLAGS=" -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -
> Wreturn-type -Wunused-variable -fmessage-length=0 -fvisibility=hidden -
> miphoneos-version-min=3.0 -gdwarf-2 -mthumb -I/Library/iPhone/include -
> isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
> iPhoneOS3.1.sdk"
>
> export CFLAGS="$MY_FLAGS"
> export CXXFLAGS="$MY_FLAGS"
>
> export CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-
> apple-darwin9-g++-4.2.1
> export GXX=$CC
>
> export CPP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/
> cpp
> export AR=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar
> export AS=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/as
> export LIBTOOL=/Developer/Platforms/iPhoneOS.platform/Developer/usr/
> bin/libtool
> export STRIP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/
> strip
> export RANLIB=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/
> ranlib
>
> CONFIGURE="./configure --host=arm-apple-darwin --prefix=/usr/local/
> iphone-protobuf203 --program-prefix=iphone --disable-shared --disable-
> crypto-auth --without-gnutls --without-ssl --without-zlib --without-
> libssh2 --disable-ipv6 --disable-manual --disable-telnet --disable-
> tftp --disable-ldap --disable-file --disable-ftp"
>
> ----END configPB.sh -------
>
> Then issue
> source configPB.sh
> $CONFIGURE
> make install-exec
>
> NOTE that i removed "-arch armv6" from MY_FLAGS since arm-apple-
> darwin9-g++-4.2.1 didnt support that flag.
>
> HERE is my $CONFIGURE log:
> http://pastebin.com/m1cc35597
>
> HERE is my make install-exec log:
> http://pastebin.com/m7a128d26
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to