ndk-build ***多个目标模式。停止

时间:2017-02-26 22:06:14

标签: android android-ndk libjpeg ndk-build libjpeg-turbo

我正在尝试按照https://github.com/openstf/android-libjpeg-turbo上的说明操作,并在Windows 10上为Android编译libjpeg-turbo库。

我已安装android-ndk-r10e并在该项目中按如下方式使用它,通过命令行为armeabi编译libjpeg-turbo:

C:\android-ndk-r10e\android-ndk-r10e\ndk-build.cmd APP_ABI=armeabi

但是我遇到了以下问题,我不知道如何解决它:

C:/android-ndk-r10e/build/core/build-binary.mk:464: *** multiple target patterns.  Stop.

同样的结果是使用NDK的r13b版本:

C:/android-ndk-r13b/build/core/build-binary.mk:497: *** multiple target patterns.  Stop.

编辑:

ndk-build.cmd APP_ABI=armeabi DUMP_LOCAL_SRC_FILES的结果:

libjpeg-turbo-1.4.1/jcapimin.c libjpeg-turbo-1.4.1/jcapistd.c libjpeg-turbo-1.4.1/jccoefct.c libjpeg-turbo-1.4.1/jccolor.c libjpeg-turbo-1.4.1/jcdctmgr.c libjpeg-turbo-1.4.1/jchuff.c libjpeg-turbo-1.4.1/jcinit.c libjpeg-turbo-1.4.1/jcmainct.c libjpeg-turbo-1.4.1/jcmarker.c libjpeg-turbo-1.4.1/jcmaster.c libjpeg-turbo-1.4.1/jcomapi.c libjpeg-turbo-1.4.1/jcparam.c libjpeg-turbo-1.4.1/jcphuff.c libjpeg-turbo-1.4.1/jcprepct.c libjpeg-turbo-1.4.1/jcsample.c libjpeg-turbo-1.4.1/jctrans.c libjpeg-turbo-1.4.1/jdapimin.c libjpeg-turbo-1.4.1/jdapistd.c libjpeg-turbo-1.4.1/jdatadst.c libjpeg-turbo-1.4.1/jdatasrc.c libjpeg-turbo-1.4.1/jdcoefct.c libjpeg-turbo-1.4.1/jdcolor.c libjpeg-turbo-1.4.1/jddctmgr.c libjpeg-turbo-1.4.1/jdhuff.c libjpeg-turbo-1.4.1/jdinput.c libjpeg-turbo-1.4.1/jdmainct.c libjpeg-turbo-1.4.1/jdmarker.c libjpeg-turbo-1.4.1/jdmaster.c libjpeg-turbo-1.4.1/jdmerge.c libjpeg-turbo-1.4.1/jdphuff.c libjpeg-turbo-1.4.1/jdpostct.c libjpeg-turbo-1.4.1/jdsample.c libjpeg-turbo-1.4.1/jdtrans.c libjpeg-turbo-1.4.1/jerror.c libjpeg-turbo-1.4.1/jfdctflt.c libjpeg-turbo-1.4.1/jfdctfst.c libjpeg-turbo-1.4.1/jfdctint.c libjpeg-turbo-1.4.1/jidctflt.c libjpeg-turbo-1.4.1/jidctfst.c libjpeg-turbo-1.4.1/jidctint.c libjpeg-turbo-1.4.1/jidctred.c libjpeg-turbo-1.4.1/jquant1.c libjpeg-turbo-1.4.1/jquant2.c libjpeg-turbo-1.4.1/jutils.c libjpeg-turbo-1.4.1/jmemmgr.c libjpeg-turbo-1.4.1/jmemnobs.c  libjpeg-turbo-1.4.1/jaricom.c libjpeg-turbo-1.4.1/jcarith.c libjpeg-turbo-1.4.1/jdarith.c  libjpeg-turbo-1.4.1/turbojpeg.c libjpeg-turbo-1.4.1/transupp.c libjpeg-turbo-1.4.1/jdatadst-tj.c libjpeg-turbo-1.4.1/jdatasrc-tj.c

1 个答案:

答案 0 :(得分:1)

整个问题出现在由Android.mk引用的Android.mk和基础include $(call all-subdir-makefiles)文件的结构中。在那种情况下,Android NDK试图多次加载源文件。

更正之后,编译工作没有任何问题。