2015-11-21 4 views
0

je suivais les étapes indiquées dans l'URL: https://github.com/ashtom/breakapp/blob/master/README.md pour tester une application de hockey de l'échantillon avec l'intégration Breakpad, mais je reçois l'erreur suivante sur l'exécution de l'étape 4 (ndk-build).erreur: attendu erreur nom spécificateur imbriqué arrive sur l'intégration Breakpad dans Android app

J'ai la configuration suivante: Mac OSX 10.10.5 et android-ndk-r10e-darwin-x86_64.bin.

[armeabi] Compile++ arm : breakpad_client <= log.cc 
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 
+0

J'ai le même problème, l'environnement de construction identique. J'ai essayé d'activer le support de C++ 11, mais pas de dés. – user435779

Répondre

1

Je pense que vous devriez activer le support C++ 11 sur ndk pour compiler votre application.

option de vente dans Application.mk

APP_CPPFLAGS += -std=c++11