2013-10-28 72 views
0

我收到以下错误,当我建立我使用Eclipse中的NDK(Ubuntu的)Android应用:的Android NDK编译错误

arm-linux-androideabi-g++: error: SOMEPATH/ogre/build/OgreJNI/obj/local/armeabi-v7a/ 
libcpufeatures.a: No such file or directory 

Android NDK:  This is likely to result in incorrect builds. Try using 
LOCAL_STATIC_LIBRARIES  

make: *** [APATH/obj/local/armeabi-v7a/libInMapsJNI.so] Error 1 

Android NDK:  or LOCAL_SHARED_LIBRARIES instead to list the library 
dependencies of the  

make: *** Waiting for unfinished jobs.... 

Android NDK:  current module  


.......... 


**** Build Finished **** 

的问题是:在App然后将启动,但崩溃没有给予任何错误的安慰。 有人知道我如何解决这个错误?

感谢

+0

在这里发布您的Android Makefile,以便我们可以查看它。 –

回答

0

这是非常明确的:SOMEPATH/ogre/build/OgreJNI/obj/local/armeabi-v7a/libcpufeatures.a是不是一个有效的路径。你在这里使用相对或绝对路径吗?

该应用程序启动是因为Java部分没有错误,但C++部分(libInMapsJNI.so)未编译,因此应用程序在运行时尝试链接此库时崩溃。