Makefile 可以创建共享的libxml2

Makefile 可以创建共享的libxml2,makefile,android-ndk,java-native-interface,libxml2,Makefile,Android Ndk,Java Native Interface,Libxml2,我正在使用ndk和jni在android中创建一个应用程序。在我的应用程序中,我需要解析xml数据。为此,我使用了libxml2 当我创建libxml2的静态库并使用它时,它工作得很好 但是,当我尝试创建共享库并在应用程序中使用它时,我在执行ndk构建时遇到了错误: undefined reference to `xmlReaderForMemory' /home/subrat/EclipseIDE/workspace/jni/source/interface.c:677: undefined

我正在使用ndk和jni在android中创建一个应用程序。在我的应用程序中,我需要解析xml数据。为此,我使用了libxml2

当我创建libxml2的静态库并使用它时,它工作得很好

但是,当我尝试创建共享库并在应用程序中使用它时,我在执行ndk构建时遇到了错误:

undefined reference to `xmlReaderForMemory'
/home/subrat/EclipseIDE/workspace/jni/source/interface.c:677: undefined reference to `xmlTextReaderRead'
/home/subrat/EclipseIDE/workspace/jni/source/interface.c:680: undefined reference to `xmlTextReaderNodeType'
.......
所以,有谁能告诉我,我的编码有什么问题,或者我不能创建libxml2的共享库


欢迎任何类型的建议……。

是的,可以创建共享libxml2。因此,我们需要更多信息,例如用于获取此错误的命令(或更广泛的日志)。您是如何构建共享libxml2的?