Question

Good Day everyone. Still trying to figure out what's wrong with adding xml library.(Previos thread Cannot find libxml2 in android ndk project)

In jni folder: i jave prebuild libxml.so, which i successfully builded, android.mk and start-spice.c. Start-spice.c needs libxml in order to work.

Android.mk:

include $(CLEAR_VARS)
LOCAL_MODULE :=  libxml
LOCAL_SRC_FILES :=libxml.so
include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE    := start-spice
LOCAL_SRC_FILES := start-spice.c 
LOCAL_LDLIBS := -lxml
LOCAL_SHARED_LIBRARIES= xml
include $(BUILD_SHARED_LIBRARY)

And still it says that cannot find libxml/parser.h

Maybe someone could tell me what's wrong?

The think is that in .ci use libxml methods from linux and here i downloaded libxml2 and builded it - is there any difference?

Was it helpful?

Solution

Are you remembering to add the .h directories of libxml to the list of include directories for the other modules? I don't see any -I flags or LOCAL_C_INCLUDES being set

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top