交叉编译出现error: must #include <typeinfo> before using typeid
现在需要在ndk下调用geos,在做geos库自己的交叉编译时,出现下面的错误
In file included from /home/petra/android-ndk-r5c/sources/cxx-stl/stlport/stlport/stl/_typeinfo.h:27,
from /home/petra/android-ndk-r5c/sources/cxx-stl/stlport/stlport/typeinfo:28,
from IndexedPointInAreaLocator.cpp:31:
/home/petra/android-ndk-r5c/sources/cxx-stl/stlport/stlport/../../system/include/typeinfo:10: warning: extra ';'
IndexedPointInAreaLocator.cpp: In constructor 'geos::algorithm::locate::IndexedPointInAreaLocator::IndexedPointInAreaLocator(const geos::geom::Geometry&)':
IndexedPointInAreaLocator.cpp:105: error: must #include <typeinfo> before using typeid
IndexedPointInAreaLocator.cpp:105: error: must #include <typeinfo> before using typeid
IndexedPointInAreaLocator.cpp:106: error: must #include <typeinfo> before using typeid
IndexedPointInAreaLocator.cpp:106: error: must #include <typeinfo> before using typeid
我使用的是geos提供的configure,执行参数为:
CC="arm-linux-androideabi-gcc --sysroot=$SYSROOT" CXX="arm-linux-androideabi-g++ --sysroot=$SYSROOT" LD=arm-linux-androideabi-ld CFLAGS="-I/home/petra/android-ndk-r5c/platforms/android-9/arch-arm/usr/include" CPPFLAGS="-I/home/petra/android-ndk-r5c/sources/cxx-stl/stlport/stlport -DANDROID -D__STDC_INT64__" LDFLAGS+="-L/home/petra/android-ndk-r5c/sources/cxx-stl/stlport/libs/armeabi -L/home/petra/android-ndk-r5c/platforms/android-9/arch-arm/usr/lib" LIBS="-lm -lstdc++ -lc -ldl -lstlport_static" ./configure --prefix=/home/petra/third-lib/geos-android --host=arm-linux --target=arm-linux
然后执行make时就出现了上面的错误,哪位大神可以帮个忙。 --------------------编程问答-------------------- 哥们,可以把编译好的geos库传我一份么?
补充:移动开发 , Android