Search code examples
c++dependenciesxerces

How avoid dependencies when using Xerces?


I'm trying to integrate xerces 3.1.1 with my program, but it requires libcurl for linux and libicui18n, libicuuc, libicudata, libm for Mac OS X and Solaris. Are there some flags which can be passed to configure to avoid all this dependencies?


Solution

  • Use the following configure options when building:

    --disable-netaccessor-curl
    

    to get rid of cURL, and

    --disable-transcoder-icu
    

    to get rid of ICU. You can't get rid of a libm dependency, nor should you want to. libm implements part of the C++ language standard.

    Check the output from ./configure --help to see other potential dependencies.