Open Gensoukyou1337 opened 6 years ago
Here's my current modified jni/Android.mk
file that resolved this:
Magick_Home := F:/Android-ImageMagick/ndk-modules/ImageMagick-6.7.3-0
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := android-magick
LOCAL_SRC_FILES := jmagick.c
LOCAL_SRC_FILES += magick_DrawInfo.c
LOCAL_SRC_FILES += magick_ImageInfo.c
LOCAL_SRC_FILES += magick_Magick.c
LOCAL_SRC_FILES += magick_MagickImage.c
LOCAL_SRC_FILES += magick_MagickInfo.c
LOCAL_SRC_FILES += magick_MontageInfo.c
LOCAL_SRC_FILES += magick_PixelPacket.c
LOCAL_SRC_FILES += magick_QuantizeInfo.c \
magick_MagickBitmap.c
LOCAL_C_INCLUDES += $(Magick_Home)/include/ImageMagick
LOCAL_C_INCLUDES += $(Magick_Home)
LOCAL_CFLAGS += -L$(Magick_Home)/lib
LOCAL_STATIC_LIBRARIES := MagickCore jpeg coders tiff-static filters
LOCAL_SHARED_LIBRARIES += MagickCore jpeg coders tiff-static filters
#LOCAL_SHARED_LIBRARIES := MagickCore png15 bz2 gomp pthread
LOCAL_LDLIBS += -L$(LOCAL_PATH)/../lib -lz -lfreetype -lpng -llog
include $(BUILD_SHARED_LIBRARY)
include F:/android-imagemagick/lib/freetype/jni/Android.mk
include F:/android-imagemagick/lib/libpng/jni/Android.mk
include F:/android-imagemagick/lib/zlib/jni/Android.mk
$(call import-module,ImageMagick-6.7.3-0)
$(call import-module,jpeg)
The includes are for the freetype, libpng, and zlib modules in the lib folder. I also had to change the LOCAL_MODULE name in the lib/zlib/jni/Android.mk
to libz
from zlib
.
If you want the latest and greatest imagemagick features on android, even with the option for jmagick support baked in, check out my repo. https://github.com/cherryleafroad/Android-ImageMagick7
I wanted to rebuild the Android-ImageMagick library, but with modified files from jmagick's misc repo containing the
distortImage
functionality. My problem is that with the rebuild script as is (though with the first line being changed intoexport NDK=<NDK path>
), it just nets me:Which part of the Android.mk file in the
jni
folder do I need to change?