【发布时间】:2013-04-29 15:00:58
【问题描述】:
当我构建为静态库时,源代码使用 mm command 在 Android JellyBean 4.1.2 中构建良好。但是当我尝试将android/external/opencv 下的opencv 文件夹构建为静态库 时,android/external/opencv/Android.mk
+ 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
知道如何解决这个错误吗?
提前致谢。 问候, 贾伊
【问题讨论】:
标签: android opencv makefile shared-libraries