1

Android用に次のプロジェクトをビルドしようとしています。

http://code.google.com/p/spatialite-android/

LineIntersector.cppのndk-buildを実行するときにエラーが発生する可能性がある理由を誰かが知っていますか?

jni/geos-3.2.2/source/algorithm/LineIntersector.cpp:223: error: expected unqualified-id before '(' token

私はこれをMacでコンパイルしようとしていますが、NDKの初心者です。これが、geosルートで実行する構成です。

./configure --build=i686-android-linux-gnu --host=arm-linux-eabi

エラーはISNAN機能にあるようです

4

2 に答える 2

1

Win7、cygwin環境でこのプロジェクトを正常にビルドしました 。http ://code.google.com/p/spatialite-android/issues/detail?id=3をご覧ください。

于 2012-02-27T03:21:31.190 に答える
1

現時点では、Ubuntuでのみビルドできます。実行するステップ./configureは、他のプラットフォームの問題です。ダウンロードセクションに最新のバイナリを投稿しました。apkを開いて、.soファイルをコピーできます。

/source/headers/geos/platform.hを編集することで、Macでgeosをビルドすることができました。

/* Set to 1 if you have `int64_t' type */
/* #undef HAVE_INT64_T_64 */

/* Set to 1 if `long int' is 64 bits */
/* #undef HAVE_LONG_INT_64 */

/* Set to 1 if `long long int' is 64 bits */
/* #undef HAVE_LONG_LONG_INT_64 */

/* Set to 1 if you have ieeefp.h */
/* #undef HAVE_IEEEFP_H */

/* Has finite */
#define HAVE_FINITE 1

/* Has isfinite */
/* #undef HAVE_ISFINITE */

/* Has isnan */
#define HAVE_ISNAN 1
于 2012-02-27T01:45:36.093 に答える