我从 svn 对 google breakpad 进行了干净的结帐,并尝试使用 cygwin for android 对其进行编译。然而,进展并不顺利。
cd <google-breakpad>
android/run-checks.sh --ndk-dir=<my-ndk-dir> --tmp-dir=$PWD/bin --no-cleanup --no-device --verbose
我收到一个错误Can't build host-tools
,原因是:
cc1plus: error: unrecognized command line option "-Werror=non-virtual-dtor"
cc1plus: error: unrecognized command line option "-Werror=vla"
cc1plus: error: unrecognized command line option "-Werror=unused-variable"
cc1plus: error: unrecognized command line option "-Werror=missing-braces"
cc1plus: error: unrecognized command line option "-Werror=overloaded-virtual"
如果我修改 makefile 以将这些警告作为错误选项删除,则构建会更进一步,但无法找到明显存在的文件:
Could not rebuild Android client library!
arm-linux-androideabi-g++.exe: /cygdrive/c/Users/Tom/dev/android/modules/google_breakpad/android/../src/client/linux/log/log.cc: No such file or directory
但:
$ ls -l /cygdrive/c/Users/Tom/dev/android/modules/google_breakpad/android/../src/client/linux/log/log.cc
-rw-r--r-- 1 Tom None 2.0K Jul 16 20:49 /cygdrive/c/Users/Tom/dev/android/modules/google_breakpad/android/../src/client/linux/log/log.cc
所有文件都以相同的方式失败 - 不仅仅是那个。
任何帮助表示赞赏。