Skip to content
Mark Johnson edited this page Mar 8, 2018 · 22 revisions

<-- 'List of Themes'

<-- 'List of Projects'


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 := cpufeaturestolibwebp-0.4.0.mk`
      • and add to the end of Android_R4.2.0.mk
        • $(call import-module,android/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 to libwebp-0.4.0.mk
  • 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 := cpufeaturesto libwebp-0.4.0.mk
      • #include <cpu-features.h> in libwebp-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
      • 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


Clone this wiki locally