1

我不知道从哪里开始,所以如果您需要其他任何东西,请告诉我。谢谢。

我正在使用 ndk-build 为我的 Android 项目构建本机组件。

$ ndk-build -v
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-apple-darwin

我在运行 ndk-build 时得到了这个(只显示错误):

/Users/me/android-platform/out/target/product/generic/system/lib//libcrypto.so:
error: undefined reference to '__strlen_chk'
/Users/me/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
/Users/me/android-platform/out/target/product/generic/system/lib//libcrypto.so:
error: undefined reference to '__strrchr_chk'
/Users/me/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
/Users/me/android-platform/out/target/product/generic/system/lib//libcrypto.so:
error: undefined reference to '__strchr_chk'
/Users/me/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
/Users/me/android-platform/out/target/product/generic/system/lib//libcrypto.so:
error: undefined reference to '__sprintf_chk'
/Users/me/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
/Users/me/android-platform/out/target/product/generic/system/lib//libcrypto.so:
error: undefined reference to '__strncpy_chk2'
/Users/me/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld:
/Users/me/android-platform/out/target/product/generic/system/lib//libcrypto.so:
error: undefined reference to '__strcat_chk'
4

0 回答 0