[英]Android NDK build error
I get the following errors when I build my android app using the NDK in eclipse(ubuntu): 在eclipse(ubuntu)中使用NDK构建我的android应用时,出现以下错误:
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 ****
The problem is: the App then launches but crashes without giving any error to the console. 问题是:该应用程序随后启动但崩溃,但未向控制台发出任何错误。 Does someone know how I can fix this error?
有人知道我该如何解决此错误?
Thanks 谢谢
That is pretty explicit: SOMEPATH/ogre/build/OgreJNI/obj/local/armeabi-v7a/libcpufeatures.a
is not a valid path. 这是非常明确的:
SOMEPATH/ogre/build/OgreJNI/obj/local/armeabi-v7a/libcpufeatures.a
不是有效的路径。 Are you using a relative or absolute path here? 您在这里使用相对还是绝对路径?
The App launches because the Java part has no error, but the C++ part ( libInMapsJNI.so
) was not compiled, and therefore the App crashes at runtime when it tries to link this library. 该应用程序启动是因为Java部分没有错误,但是C ++部分(
libInMapsJNI.so
)没有编译,因此,当它尝试链接该库时,该应用程序在运行时崩溃。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.