Re: [protobuf] cross compile protobuf 2.5 for arm-android

2017-04-14 Thread 'Adam Cozzette' via Protocol Buffers
What kind of error are you getting? I have not tried cross-compiling
protobuf myself but I think the --with-protoc option is the right way to go
and I see you're already doing that. I'm not sure if you even need to pass
the --enable-cross-compile flag.

On Wed, Apr 12, 2017 at 12:55 AM, Andrea Sonnleitner <
andrea.sonnleitner1...@gmail.com> wrote:

> Hello everyone!
>
> I try to cross compile protobuf for an arm android architecture with the
> given configure step.
> However, the option "--enable-cross-compile" is not used as given here.
>
> checking whether we are cross compiling... no
>
>
>
>
> sudo ./configure --prefix=/home/staff/Desktop/proto_arm
> --build=armv7-android-linux-android --host=armv7-android-linux-android
> --target=armv7-android-linux-android --enable-cross-compile
> --with-protoc=/home/staff/Desktop/proto_arm/protoc
> CXXFLAGS="$(pkg-config --cflags protobuf)" LIBS="$(pkg-config --libs
> protobuf)"
>
> I am also not sure if I specified build/target/host correctly. I want to
> run a project including protobuf on an Android Phone with Android 6
> Marshmallow, ABIs are arm64-v8a, armeabi-v7a, armeabi.
>
> Thank you for any help!
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to protobuf+unsubscr...@googlegroups.com.
> To post to this group, send email to protobuf@googlegroups.com.
> Visit this group at https://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


[protobuf] cross compile protobuf 2.5 for arm-android

2017-04-12 Thread Andrea Sonnleitner
Hello everyone!

I try to cross compile protobuf for an arm android architecture with the 
given configure step. 
However, the option "--enable-cross-compile" is not used as given here.

checking whether we are cross compiling... no




sudo ./configure --prefix=/home/staff/Desktop/proto_arm 
--build=armv7-android-linux-android --host=armv7-android-linux-android 
--target=armv7-android-linux-android --enable-cross-compile 
--with-protoc=/home/staff/Desktop/proto_arm/protoc 
CXXFLAGS="$(pkg-config --cflags protobuf)" LIBS="$(pkg-config --libs 
protobuf)"

I am also not sure if I specified build/target/host correctly. I want to 
run a project including protobuf on an Android Phone with Android 6 
Marshmallow, ABIs are arm64-v8a, armeabi-v7a, armeabi.

Thank you for any help!



-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.