Coder Social home page Coder Social logo

Don't bundle TinyXML about osgearth HOT 4 CLOSED

gwaldron avatar gwaldron commented on August 27, 2024
Don't bundle TinyXML

from osgearth.

Comments (4)

jasonbeverage avatar jasonbeverage commented on August 27, 2024

Hi Volter,

The whole point of us moving to TinyXML instead of the old Expat based
XML code was to avoid having to have yet another external dependency
to build against.

If you could send in a patch that could optionally allow us to build
against the embedded TinyXML or an external one if it was found I
think that would be more appropriate than removing the embedded
TinyXML completely.

Thanks,

Jason

On Sun, Sep 11, 2011 at 8:51 AM, volter
[email protected]
wrote:

Please don't bundle TinyXML.

I threw together a Cmake script and patched Cmakelists.txt:

http://www.geofrogger.net/review/osgEarth-2.0-FindTinyXML.cmake
http://www.geofrogger.net/review/osgEarth-2.0-tinyxml.patch

Note that the patch was written for version 2.0.0.

Reply to this email directly or view it on GitHub:
#29

from osgearth.

volter avatar volter commented on August 27, 2024

I hope this works. I can't really test it because osgearth trunk doesn't build for me -- probably because of my OpenSceneGraph version.

The patch modifies CMakeLists.txt and src/osgearth/CMakeLists.txt and adds a find script in CMakeModules.

-D WITH_EXTERNAL_TINYXML causes the find script to run.

The find scripts has TINYXML_INCLUDE_DIR and TINYXML_LIBRARY. If both have values, TINYXML_FOUND is true.

If TINYXML_FOUND is true in src/osgearth/CMakeLists.txt, the bundled TinyXML files are not compiled. Therefore TINYXML_INCLUDE_DIR and TINYXML_LIBRARY are turned to use.

http://www.geofrogger.net/review/osgearth-external-tinyxml.patch

from osgearth.

jasonbeverage avatar jasonbeverage commented on August 27, 2024

Hi Volter,

I've pushed this change, thanks!

Jason

On Wed, Oct 12, 2011 at 6:20 PM, volter
[email protected]
wrote:

I hope this works. I can't really test it because osgearth trunk doesn't build for me -- probably because of my OpenSceneGraph version.

The patch modifies CMakeLists.txt and src/osgearth/CMakeLists.txt and adds a find script in CMakeModules.

-D WITH_EXTERNAL_TINYXML causes the find script to run.

The find scripts has TINYXML_INCLUDE_DIR and TINYXML_LIBRARY. If both have values, TINYXML_FOUND is true.

If TINYXML_FOUND is true in src/osgearth/CMakeLists.txt, the bundled TinyXML files are not compiled. Therefore TINYXML_INCLUDE_DIR and TINYXML_LIBRARY are turned to use.

http://www.geofrogger.net/review/osgearth-external-tinyxml.patch

Reply to this email directly or view it on GitHub:
#29 (comment)

from osgearth.

jasonbeverage avatar jasonbeverage commented on August 27, 2024

This is in the trunk now.

from osgearth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.