[Clamav-devel] Compiling for Android, where to start?

Rachmansyah Budi Setiawan rachmansyahbs at gmail.com
Tue Feb 18 22:09:40 EST 2014

Hello everyone,

I am trying to compile libclamav for Android. To my understanding, the best
way is to use compiler bundled in Android NDK tools. I am not that
proficient in C/C++ and reading config + Makefile, so I have almost no idea
on where to start. So far I am just dumping libclamav, libclamunrar,
libclamunrar_iface, and libltdl + target.h in a Java project and try to
build using ndk-build. This is how my Android.mk looks like:

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := clamav
FILE_LIST := $(wildcard $(LOCAL_PATH)/libclamav/*.c) \
$(wildcard $(LOCAL_PATH)/libclamunrar/*.c) \
$(wildcard $(LOCAL_PATH)/libclamunrar_iface/*.c) \
$(wildcard $(LOCAL_PATH)/libltdl/*.c) \
$(LOCAL_PATH)/libclamav \
$(LOCAL_PATH)/libclamunrar \
$(LOCAL_PATH)/libclamunrar_iface \

Any help is appreciated. Thank you.

More information about the clamav-devel mailing list