当我构建为静态库时,源代码使用mm command
在Android JellyBean 4.1.2中生成良好。但是,当我尝试建立OpenCV的文件夹下android/external/opencv
为静态库,有以下变化android/external/opencv/Android.mk
Android OpenCV共享库生成错误
+ LOCAL_SHARED_LIBRARIES+= libdl
和
- include $(BUILD_STATIC_LIBRARY)
+ include $(BUILD_SHARED_LIBRARY)
- LOCAL_STATIC_LIBRARIES := libcxcore libcv libcvaux libcvml libcvhighgui
+ LOCAL_SHARED_LIBRARIES := libcxcore libcv libcvaux libcvml libcvhighgui
我收到以下错误:
android/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: internal error in thumb_branch_common, at /tmp/android-8532/src/build/../binutils/binutils-2.21/gold/arm.cc:4148
collect2: ld returned 1 exit status
make: *** [out/target/product/mydevice/obj/SHARED_LIBRARIES/libcxcore_intermediates/LINKED/libcxcore.so] Error 1
有关如何解决此错误的任何想法?
在此先感谢。 问候, 洁