xxx31fr Posté(e) 11 mai 2011 Share Posté(e) 11 mai 2011 include $(call all-subdir-makefiles) #CODECS := alac ape flac wav wv mpc #codec-makefiles = $(patsubst %,$(call my-dir)/%/Android.mk,$(CODECS)) #include $(call codec-makefiles) ifneq ($(NDK_ROOT),) LOCAL_PATH:=$(NDK_ROOT)/apps/lossless/project/jni else LOCAL_PATH:=apps/lossless/project/jni endif # library for Android < 9 include $(CLEAR_VARS) LOCAL_MODULE := atrack8 LOCAL_CFLAGS += -O2 -Wall -DBUILD_STANDALONE -DCPU_ARM -DAVSREMOTE -finline-functions -fPIC -D__ARM_EABI__=1 -DOLD_LOGDH LOCAL_C_INCLUDES += $(LOCAL_PATH)/Android/include LOCAL_SRC_FILES := std_audio.cpp LOCAL_ARM_MODE := arm LOCAL_LDLIBS := -llog \ $(LOCAL_PATH)/Android/lib/libutils.so $(LOCAL_PATH)/Android/lib/libmedia.so include $(BUILD_SHARED_LIBRARY) # library for Android api >= 9 include $(CLEAR_VARS) LOCAL_MODULE := atrack9 LOCAL_CFLAGS += -O2 -Wall -DBUILD_STANDALONE -DCPU_ARM -DAVSREMOTE -finline-functions -fPIC -D__ARM_EABI__=1 -DOLD_LOGDH LOCAL_CFLAGS += -DBUILD_GINGER LOCAL_C_INCLUDES += $(LOCAL_PATH)/Android/include LOCAL_SRC_FILES := std_audio.cpp LOCAL_ARM_MODE := arm LOCAL_LDLIBS := -llog \ $(LOCAL_PATH)/Android/lib/gingerbread/libutils.so $(LOCAL_PATH)/Android/lib/gingerbread/libmedia.so include $(BUILD_SHARED_LIBRARY) # common codecs & startup library include $(CLEAR_VARS) LOCAL_MODULE := lossless LOCAL_STATIC_LIBRARIES := alac ape flac wav wv mpc LOCAL_CFLAGS += -O2 -Wall -DBUILD_STANDALONE -DCPU_ARM -DAVSREMOTE -finline-functions -fPIC -D__ARM_EABI__=1 -DOLD_LOGDH # $(LOCAL_PATH)/Android/include LOCAL_C_INCLUDES += $(LOCAL_PATH)/Android/include LOCAL_SRC_FILES := main.c std_audio.cpp LOCAL_ARM_MODE := arm LOCAL_LDLIBS := -llog \ $(LOCAL_PATH)/Android/lib/libutils.so $(LOCAL_PATH)/Android/lib/libmedia.so include $(BUILD_SHARED_LIBRARY) a la compilation avec cygwin, j'ai ca : $ /cygdrive/c/androidndk4/ndk-build Compile++ arm : atrack8 <= /cygdrive/c/androidndk4/apps/lossless/project/jni/st d_audio.cpp SharedLibrary : libatrack8.so Install : libatrack8.so => /cygdrive/c/androidndk4/apps/lossless/project/ libs/armeabi Compile++ arm : atrack9 <= /cygdrive/c/androidndk4/apps/lossless/project/jni/st d_audio.cpp SharedLibrary : libatrack9.so Install : libatrack9.so => /cygdrive/c/androidndk4/apps/lossless/project/ libs/armeabi Compile++ arm : lossless <= /cygdrive/c/androidndk4/apps/lossless/project/jni/s td_audio.cpp make: *** No rule to make target `/cygdrive/c/androidndk4/apps/lossless/project/ bin/ndk/local/armeabi/libalac.a', needed by `/cygdrive/c/androidndk4/apps/lossle ss/project/bin/ndk/local/armeabi/liblossless.so'. Stop. soit une erreur pour generer lossless... en vous remerciant par avance!!!!!!!! Lien vers le commentaire Partager sur d’autres sites More sharing options...
Recommended Posts
Archivé
Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.