Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8512477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:17:23+00:00 2026-06-11T04:17:23+00:00

We have an application working fine for Mac and Windows platform, now targeting for

  • 0

We have an application working fine for Mac and Windows platform, now targeting for Android and iOS,
Application using libxml for parsing of XML data, and my question is ?

1 — Do i need to build libxml for Android platform or its already there as a part of NDK ?

if need to build any pointers how to start ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T04:17:24+00:00Added an answer on June 11, 2026 at 4:17 am

    You have two options:

    Write an Android.mk that can successfully build libxml, and depend on the result of that in your main Android.mk. You can try to build libxml natively (using the configure script and make) on your Mac to get an idea of what files need to be built, and if any special flags need to be passed.

    Or, Use libxml’s configure script and build libxml for Android using the NDK’s toolchain. You’ll have to do something like this:

    NDK_ROOT=/path/to/ndk
    API_LEVEL=YOUR_API_LEVEL
    SYSROOT=$NDK_ROOT/platforms/android-$API_LEVEL/arch-arm
    
    export CC="$NDK_ROOT/toolchains/arm-linux-androideabi-4.4.3/Darwin-x86/bin/arm-linux-androideabi-gcc"
    export CFLAGS="--sysroot=$SYSROOT"
    export LDFLAGS="--sysroot=$SYSROOT"
    
    ./configure --host=arm-linux-gnueabi --enable-static --disable-shared
    make libxml2.la
    

    Technically the host triplet for Android is arm-linux-androideabi, but most configure scripts don’t recognize it, and for our purposes here, -gnueabi is close enough.

    I ended up suggesting make libxml2.la rather than just make because the tests weren’t building properly. The resulting library will end up in the .libs/ folder.

    The second method might be a little easier, but if you intend to build your app for multiple architectures (arm, armv7-a, maybe even x86 and mips), writing your own Android.mk will save you time in the long run.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed my application in .Net and my installer is working fine. Now
hello i have created one windows application in c# .net and its working fine
I have a Winforms application which is working fine.. using a BackgroundWorkerThread to manage
I have developed a web application using ExtJs4.0.7. The application is working fine in
I have a web application working fine in IIS6. Its using routes using System.Web.Routing.RouteCollection.
i have used progress bar in my application..my application is working fine but the
I have web application Project having RPC call. one RPC async is working fine.
I have created an application in facebook,all is working fine except the publish to
i have developed a small application and was working fine on developing machine but
In my application I have apply new outgoing call receiver. It is working fine.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.