[英]Android NDK: why ndk-build doesn't generate .so file and a new libs folder in Eclipse?
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) 我按照本教程的步骤操作: http ://mindtherobot.com/blog/452/android-beginners-ndk-setup-step-by-step//在我的Mac上安装Android NDK(不是PC =>没有安装CygWin)
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 ; 当我在项目文件夹的控制台中运行“ ndk-build”时(实际上,我必须输入/ my_path_to_my_ndk_folder / ndk-build,否则会收到“ -bash:ndk-build:not found”错误消息,但无论如何...)控制台直接返回提示,没有任何消息确认一切正常或发生错误; 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 根据上面提到的教程,我应该在这里提到一条消息: http : //mindtherobot.com/blog/wp-content/uploads/2010/07/20.jpg
Finally, the problem is that I don't have any libs folder or .so file generated in Eclipse. 最后,问题是我没有在Eclipse中生成任何libs文件夹或.so文件。
Anybody knows how to solve this issue? 有人知道如何解决这个问题吗?
Thanks for your help ! 谢谢你的帮助 !
(As originally put in a comment) (如最初在评论中所述)
Try running it in the 'jni' folder, not the project root. 尝试在“ jni”文件夹而不是项目根目录中运行它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.