谷歌破板构建错误

Google breakpad build error

本文关键字:错误 构建 谷歌      更新时间:2023-10-16

为Android构建Google breakpad,但遇到构建错误。不知道如何修复它们。 代码签出自:代码

并随着 NDK 的构建而构建。 签出代码没有 LSS 文件夹。

google-breakpad/android/google_breakpad/../../src/google_breakpad/common/breakpad_types.h:45:2: error: #error "inttypes.h has already been included before this header file, but "
 #error "inttypes.h has already been included before this header file, but "
  ^
jni/../google-breakpad/android/google_breakpad/../../src/google_breakpad/common/breakpad_types.h:46:2: error: #error "without __STDC_FORMAT_MACROS defined."
 #error "without __STDC_FORMAT_MACROS defined."
/google-breakpad/android/google_breakpad/../../src/common/memory.h:51:51: fatal error: third_party/lss/linux_syscall_support.h: No such file or directory
 #include "third_party/lss/linux_syscall_support.h"

命令行为:

cd breakpad
git clone https://chromium.googlesource.com/linux-syscall-support src/third_party/lss

我遇到了同样的问题,浪费了很多时间。

为了解决这个问题,我尝试这样做:

  1. "git clone https://chromium.googlesource.com/linux-syscall-support"

  2. 将 linux_syscall_support.h 从 "Git\Linux-syscall-support" 复制到 "android_breakpad\src\third_party\lss"

希望对大家有所帮助。