Does anyone use libxml2 in NDK on Android?

2,277 views
Skip to first unread message

Pai Peng

unread,
Jan 25, 2011, 2:36:06 PM1/25/11
to andro...@googlegroups.com
Hello,

I am new to Android and also NDK.

I am planing to port one application from iOS to Android, which uses libxml2 as XML parser.

So, without changing much code, I need to use libxml2 lib on Android also. But I can't find exist one.

My question is, if it is possible to build libxml2 lib from its source under NDK and make it usable for my old iOS app.


Thank you all replys.


Regards,

Pai

alan

unread,
Jan 27, 2011, 4:29:24 AM1/27/11
to andro...@googlegroups.com
yes, i havent tried i using the standalone toolchain but simply adding all the libxml files to an andriod.mk works

Ofer Goren

unread,
Jan 27, 2011, 10:38:03 AM1/27/11
to android-ndk
You can have a ported version of libXml2 from the Google's git
repository:
http://android.git.kernel.org/?p=platform/external/libxml2.git;a=summary

Pai Peng

unread,
Jan 27, 2011, 11:28:33 AM1/27/11
to andro...@googlegroups.com
Hello,


thank you. I will try it.


Regards,

Pai



--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.


BellinghamCoder

unread,
Feb 9, 2011, 6:09:44 PM2/9/11
to android-ndk
The version in Google's git repository includes icu headers. Is icu
also available to NDK apps? I didn't think it was.

From libxml2 android.mk file:
LOCAL_C_INCLUDES += $(common_C_INCLUDES) external/icu4c/common

alan

unread,
Feb 10, 2011, 10:01:52 AM2/10/11
to andro...@googlegroups.com
no its not but you could compile it in.
the stuff in the repository is built as part of the platform not against the ndk so any projects from there may not work with the ndk.

Chris

unread,
Feb 11, 2011, 3:20:01 AM2/11/11
to android-ndk
On 27 jan, 16:38, Ofer Goren <ofe...@gmail.com> wrote:
> You can have a ported version of libXml2 from the Google's git
> repository:http://android.git.kernel.org/?p=platform/external/libxml2.git;a=summary

Note that, afaik, this version has xpath/xinclude/xpointer stripped
out, as the floating point lib trio is not available.
Reply all
Reply to author
Forward
0 new messages