Android的NDK:NDK为什么建造不生成.so文件和Eclipse的一个新libs文件夹? [英] Android NDK: why ndk-build doesn't generate .so file and a new libs folder in Eclipse?

查看:159
本文介绍了Android的NDK:NDK为什么建造不生成.so文件和Eclipse的一个新libs文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我跟着本教程的步骤: HTTP ://mindtherobot.com/blog/452/android-beginners-ndk-setup-step-by-step/ 我的Mac上安装Android NDK(不是PC =>我没有安装Cygwin)

I followed the steps of this tutorial: http://mindtherobot.com/blog/452/android-beginners-ndk-setup-step-by-step/ to install the Android NDK on my Mac (not a PC => I didn't install CygWin)

当我在控制台在我的项目文件夹中运行NDK的构建(实际上我必须键入/ my_path_to_my_ndk_folder / NDK的构建,否则我得到-bash:NDK的构建:命令未找到错误消息,但无论如何。 ..)控制台直接返回,没有任何消息,确认一切正常或发生错误的提示;根据上面提到的教程中,我应该有一个消息像这里所说:的 http://mindtherobot.com/blog/wp-content/uploads/2010/07/20.jpg

When I run "ndk-build" in the console in my project folder (actually I have to type /my_path_to_my_ndk_folder/ndk-build otherwise I get "-bash: ndk-build: command not found" error message but anyway...) the console directly returns the prompt without any message confirming that everything is ok or that an error occurred ; according to the above mentioned tutorial, I should have a message like mentioned here: http://mindtherobot.com/blog/wp-content/uploads/2010/07/20.jpg

最后,问题是,我没有任何libs文件夹或在Eclipse中生成的.so文件。

Finally, the problem is that I don't have any libs folder or .so file generated in Eclipse.

任何人知道如何解决这个问题?

Anybody knows how to solve this issue?

感谢您的帮助!

推荐答案

(如最初加入了注释)

尝试在JNI文件夹中运行它,而不是项目的根目录。

Try running it in the 'jni' folder, not the project root.

这篇关于Android的NDK:NDK为什么建造不生成.so文件和Eclipse的一个新libs文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆