Android NDK libjpeg turbo共享库生成与armeabi失败
我使用sorccu的Github代码构建共享库,只需将.mk文件的最后一行编辑为“include$(build_shared_library)”。 但它失败了:Android NDK libjpeg turbo共享库生成与armeabi失败,android,android-ndk,libjpeg-turbo,Android,Android Ndk,Libjpeg Turbo,我使用sorccu的Github代码构建共享库,只需将.mk文件的最后一行编辑为“include$(build_shared_library)”。 但它失败了: ....... [armeabi] Compile thumb : sohucs-jpeg <= transupp.c [armeabi] Compile thumb : sohucs-jpeg <= jdatadst-tj.c [armeabi] Compile thumb : soh
.......
[armeabi] Compile thumb : sohucs-jpeg <= transupp.c
[armeabi] Compile thumb : sohucs-jpeg <= jdatadst-tj.c
[armeabi] Compile thumb : sohucs-jpeg <= jdatasrc-tj.c
[armeabi] SharedLibrary : libsohucs-jpeg.so
D:/eclipse/workspace/HelloNeon/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/jccolor.c:603: error: undefined reference to 'jsimd_can_rgb_gray'
D:/eclipse/workspace/HelloNeon/jni/vendor/libjpeg-turbo/libjpeg-turbo-1.4.1/jccolor.c:658: error: undefined reference to 'jsimd_can_rgb_ycc'
.......
。。。。。。。
[armeabi]编译thumb:sohucs jpeg答案可在以下网址找到。libjpeg-turbo的全部理由是为libjpeg提供硬件加速。armeabi上没有硬件加速,因此不支持为armeabi构建。无论如何,支持armeabi可能不值得。截至2015年12月26日,在所有运行冰激凌三明治以下版本的Android设备中,只有不到3.5%的设备能够在ARM v6上运行。是否有办法构建与armeabi兼容的共享libjpeg-turbo库?无需霓虹灯加速。a)与libjpeg相比,没有霓虹灯的armeabi的libjpeg turbo没有任何优势。b) 是的,你可以在没有霓虹灯的情况下为armeabi建造它,说明可以随意使用