-
Notifications
You must be signed in to change notification settings - Fork 24
libwebp 0.4.0.mk
Mark Johnson edited this page Mar 8, 2018
·
22 revisions
libwebp-0.4.0.mk - for Rasterlite2
The original source code archive can be found in the archive
directory
flags settings
ifeq ($(TARGET_ARCH),x86)
LOCAL_CFLAGS := $(webp_flags)
else
ifeq ($(TARGET_ARCH),mips)
LOCAL_CFLAGS := $(webp_flags)
else
LOCAL_CFLAGS := -mfpu=neon $(webp_flags)
endif
endif
- after source files:
- ``LOCAL_STATIC_LIBRARIES := cpufeatures
to
libwebp-0.4.0.mk`- and add to the end of
Android_R4.2.0.mk
$(call import-module,android/cpufeatures
- and add to the end of
- ``LOCAL_STATIC_LIBRARIES := cpufeatures
code changes [2014-05-14: no longer needed]
-
cpu.c
- added
machine/
-
#include <machine/cpu-features.h>
- this is not needed after adding
-
LOCAL_STATIC_LIBRARIES := cpufeatures
tolibwebp-0.4.0.mk
-
- this is not needed after adding
-
- added
-
this later caused to following while compiling for
armeabi-v7a
:libwebp-0.4.0/src/dsp/cpu.c
:60:3: error: unknown type name 'AndroidCpuFamily'
:63:27: error: 'ANDROID_CPU_FAMILY_ARM' undeclared (first use in this function)
:64:34: error: 'ANDROID_CPU_ARM_FEATURE_NEON' undeclared (first use in this function)
- added
-
LOCAL_STATIC_LIBRARIES := cpufeatures
tolibwebp-0.4.0.mk
-
#include <cpu-features.h>
inlibwebp-0.4.0/src/dsp/cpu.c
- compiled and linked for
armeabi
-
armeabi-v7a
: Assembler messages:[armeabi-v7a] Compile thumb : webp <= dec_neon.c
-
Error: selected processor does not support Thumb mode
...- resolved after adding
-mfpu=neon
- resolved after adding
- compiled and linked for
- and add to the end of
Android_R4.2.0.mk
$(call import-module,android/cpufeatures
-
-
[armeabi-v7a] StaticLibrary : libwebp.a
[armeabi-v7a] SharedLibrary : libjsqlite.so
[armeabi-v7a] Install : libjsqlite.so => libs/armeabi-v7a/libjsqlite.so
- at the moment we are happy
-
[x86]
is now compiling
-
2014-07-26: Mark Johnson, Berlin Germany