Android的NDK项目Eclipse构建错误 [英] Android-NDK Project Eclipse build error
问题描述
我有本土code的Android项目。当我做一个结帐从我的回购和建设干净的版本它建立确定并启动设备上,但之后我运行项目 - >清洁
日食命令我得到了一个错误
I have an Android project with native code. When I make a checkout from my repo and build the clean version it builds ok and starts on the device, but after I run project->clean
eclipse command I got an error:
...
Install : libgnustl_shared.so => libs/armeabi/libgnustl_shared.so
D:/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/arm-linux-androideabi-strip: unable to rename './libs/armeabi/libgnustl_shared.so'; reason: File exists
make: *** [libs/armeabi/libgnustl_shared.so] Error 1
make: *** Deleting file `libs/armeabi/libgnustl_shared.so'
**** Build Finished ****
这个错误可以在相同的输出Cygwin的控制台(是的,我在MS Windows Vista工作)。
This error can be reproduced in the Cygwin console with the same output (Yes, I'm working under MS Windows Vista).
当我在对项目我已经得到了同样的错误。它是通过将解决 libgnustl_shared.so
文件到 OBJ /本地/ armeabi / libgnustl_shared.so
和设置777权所有项目文件通过下管理员运行的cygwin控制台。但是,现在这并不能帮助。
I've got the same error when I was initializing the project. And it was solved by putting the libgnustl_shared.so
file into obj/local/armeabi/libgnustl_shared.so
and setting the 777 rights to all project files through the cygwin console running under administrator. But now this doesn't help.
您可以找到我的项目在GitHub的
https://github.com/aboritskiy/pacman 结果
我没有设置的任何项目许可证着呢,我希望我没有违反任何其他项目的许可证与此教育项目,
You can find my project on the github
https://github.com/aboritskiy/pacman
I haven't setup any project license yet, and I hope I'm not violating any other project licenses with this educational project.
启用的JNI的功能在 JNI动力
分支。
The JNI-enabled functionality is in the jni-powered
branch.
编辑:
好像我包括 libgnustl_shared.so
以错误的方式。
推荐答案
我观察这个问题我已经安装了龟的Git何时TGitCache.exe在后台运行,并且还code这我建立的资料库code。
I observed this issue when I have Tortoise Git installed and TGitCache.exe is running in the background, and also the code which I am building is repository code.
尝试在任务管理器并重新构建杀TGitCache.exe。
Try killing TGitCache.exe in task manager and re-build.
这篇关于Android的NDK项目Eclipse构建错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!