Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ndk-build出错 #28

Closed
gityan opened this issue Jul 2, 2019 · 7 comments
Closed

ndk-build出错 #28

gityan opened this issue Jul 2, 2019 · 7 comments

Comments

@gityan
Copy link

gityan commented Jul 2, 2019

make: /Users/xxx/Library/Android/sdk/ndk-bundle/toolchains/ollvm-4.0/prebuilt/darwin-x86_64/bin/clang++: Command not found

报了这个错 不知为何会用到darwin-x86_64 并没有改过配置

@BruceWind
Copy link
Owner

BruceWind commented Jul 2, 2019

Did u used "cmake" build that?

@gityan
Copy link
Author

gityan commented Jul 2, 2019

我把Linux-x86_64里的文件copy到darwin-x86_64里了 现在报了另外一个错
ld: unknown option: --sysroot=/Users/xxx/Library/Android/sdk/ndk-bundle/platforms/android-17/arch-arm
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

@BruceWind
Copy link
Owner

BruceWind commented Jul 2, 2019

look this> #17
might that cause of your ndk version.

@BruceWind
Copy link
Owner

BruceWind commented Jul 2, 2019

maybe u can change this line L23,to remove 'x86-x64'

@gityan
Copy link
Author

gityan commented Jul 2, 2019

L23 这里原本就只保留了armeabi-v7a
我把ndk改为r13了,之前的问题的确没有了。
不过还是报了新的错误,可能是某处语法的问题,有待研究。
Error: r13 not allowed here -- `sub.w sp,r0,#24'

@gityan gityan closed this as completed Jul 2, 2019
@BruceWind
Copy link
Owner

BruceWind commented Jul 3, 2019

sorry, my computer has been using the 13 version of ndk. there should be a problem with the high version.
if I want to change to a higher version I need to go some tests. moreover, there is still something confuse by the code, and the Obfuscator needs to be regenerated.

Thank you for using this library.

@gityan
Copy link
Author

gityan commented Jul 3, 2019

嗯嗯 最终我用了ndk r15 可以正常build 多谢你的指导

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants