0

次のリンクを使用して、 cocos2d -x プロジェクトに HockeyApp を統合しようとしました。

しかし、ndk-buildコマンドを実行しようとすると、次のエラーが表示されます

jni/../../breakpad/android/google_breakpad/../../src/client/linux/log/log.cc:47:7: error: expected nested-name-specifier before 'AndroidLogBufferWriteFunc'
 using AndroidLogBufferWriteFunc = int (*)(int bufID, int prio, const char *tag,
       ^
jni/../../breakpad/android/google_breakpad/../../src/client/linux/log/log.cc:47:7: error: 'AndroidLogBufferWriteFunc' has not been declared
jni/../../breakpad/android/google_breakpad/../../src/client/linux/log/log.cc:47:33: error: expected ';' before '=' token
 using AndroidLogBufferWriteFunc = int (*)(int bufID, int prio, const char *tag,
                                 ^
jni/../../breakpad/android/google_breakpad/../../src/client/linux/log/log.cc:47:33: error: expected unqualified-id before '=' token
jni/../../breakpad/android/google_breakpad/../../src/client/linux/log/log.cc:53:1: error: 'AndroidLogBufferWriteFunc' does not name a type
 AndroidLogBufferWriteFunc g_android_log_buf_write = nullptr;
 ^
jni/../../breakpad/android/google_breakpad/../../src/client/linux/log/log.cc: In function 'void logger::initializeCrashLogWriter()':
jni/../../breakpad/android/google_breakpad/../../src/client/linux/log/log.cc:60:3: error: 'g_android_log_buf_write' was not declared in this scope
   g_android_log_buf_write = reinterpret_cast<AndroidLogBufferWriteFunc>(
   ^
jni/../../breakpad/android/google_breakpad/../../src/client/linux/log/log.cc:60:46: error: expected type-specifier before 'AndroidLogBufferWriteFunc'
   g_android_log_buf_write = reinterpret_cast<AndroidLogBufferWriteFunc>(
                                              ^
jni/../../breakpad/android/google_breakpad/../../src/client/linux/log/log.cc:60:46: error: expected '>' before 'AndroidLogBufferWriteFunc'
jni/../../breakpad/android/google_breakpad/../../src/client/linux/log/log.cc:60:46: error: expected '(' before 'AndroidLogBufferWriteFunc'
jni/../../breakpad/android/google_breakpad/../../src/client/linux/log/log.cc:60:46: error: 'AndroidLogBufferWriteFunc' was not declared in this scope
jni/../../breakpad/android/google_breakpad/../../src/client/linux/log/log.cc:61:54: error: expected ')' before ';' token
       dlsym(RTLD_DEFAULT, "__android_log_buf_write"));
                                                      ^
jni/../../breakpad/android/google_breakpad/../../src/client/linux/log/log.cc: In function 'int logger::writeToCrashLog(const char*)':
jni/../../breakpad/android/google_breakpad/../../src/client/linux/log/log.cc:68:7: error: 'g_android_log_buf_write' was not declared in this scope
   if (g_android_log_buf_write) {
       ^
make: *** [obj/local/armeabi/objs/breakpad_client/src/client/linux/log/log.o] Error 1
4

1 に答える 1

0

GCC 4.6.3 は C++11 型エイリアスをサポートしていません。

Breakpad\src\client\linux\log\log.cc

交換

using AndroidLogBufferWriteFunc = int (*)(int bufID, int prio, const char *tag,const char *text);

typedef int (*AndroidLogBufferWriteFunc)(int bufID, int prio, const char *tag,const char *text);
于 2016-04-23T05:22:17.373 に答える