Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 583 by [email protected]: Unsuccesfull compilation for android
http://code.google.com/p/protobuf/issues/detail?id=583
What steps will reproduce the problem?
Configuring with such options:
PREBUILT=/Users/fedex/Libs/android-ndk-r9/toolchains/arm-linux-androideabi-4.4.3
PLATFORM=/Users/fedex/Libs/android-ndk-r9/platforms/android-3/arch-arm/
export CFLAGS="-nostdlib"
export ANDROID_ROOT="/Users/fedex/Libs/android-ndk-r9"
export
LDFLAGS="-Wl,-rpath-link=$ANDROID_ROOT/platforms/android-9/arch-arm/usr/lib/
-L$ANDROID_ROOT/platforms/android-9/arch-arm/usr/lib/"
export LIBS="-lc"
export CROSS_COMPILE=arm-linux-androideabi
export CC=${CROSS_COMPILE}-gcc
export CXX=${CROSS_COMPILE}-g++
export CPPFLAGS="-I$ANDROID_ROOT/platforms/android-9/arch-arm/usr/include/
-I$ANDROID_ROOT/sources/cxx-stl/gnu-libstdc++/4.7/include"
export
PATH=$PATH:$ANDROID_ROOT/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bin/
./configure --host=arm-linux-androideabi
When making following output received:
make all-recursive
Making all in .
Making all in src
arm-linux-androideabi-g++ -DHAVE_CONFIG_H -I. -I..
-I/Users/fedex/Libs/android-ndk-r9/platforms/android-9/arch-arm/usr/include/
-I/Users/fedex/Libs/android-ndk-r9/sources/cxx-stl/gnu-libstdc++/4.7/include
-Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 -g
-DNDEBUG -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o `test
-f 'google/protobuf/compiler/main.cc' ||
echo './'`google/protobuf/compiler/main.cc
In file included from ./google/protobuf/stubs/common.h:40:0,
from ./google/protobuf/compiler/command_line_interface.h:41,
from google/protobuf/compiler/main.cc:33:
/Users/fedex/Libs/android-ndk-r9/sources/cxx-stl/gnu-libstdc++/4.7/include/cstddef:43:28:
fatal
error: bits/c++config.h: No such file or directory
#include <bits/c++config.h>
^
compilation terminated.
make[2]: *** [main.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Expected result: library builded without errors.
Is there any complete reference about how to build library for each system?
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/groups/opt_out.