On Mon, Jul 11, 2011 at 12:00 AM, Chris Foster <[email protected]> wrote:
> Oh, I see the problem. The line
>
> libOpenImageIO.so.0.10.0: undefined reference to
> `OpenImageIO::v0_10::pugi::xml_node::child_value(char const*) const
>
> means that your build is still finding the OIIO version of pugixml.hpp rather
> than finding the system version, ugh. It worked on my system only because I
> had install pugixml into its own directory (not into /usr/lib) and was able to
> give an include path other than the standard one.
>
> I think this means I've got as far as I can without moving the oiio version of
> pugixml.hpp somewhere other than the main include directory.
Ok, I removed the bundled headers and all the building worked, but
then it failed on installing the headers as I guess it's still looking
for the bundled ones.
In src/include/CMakeLists.txt do we need the following?
"""
if (USE_EXTERNAL_PUGIXML)
list (APPEND public_headers pugixml.hpp pugiconfig.hpp)
endif()
"""
I would think we would want to include those headers whether we're
using the bundled or system package, right? Or are these path
specific?
Would something like this be more appropriate?
if (USE_EXTERNAL_PUGIXML)
list (APPEND public_headers $(PUGIXML_HEADERS)/pugixml.hpp
$(PUGIXML_HEADERS)/pugiconfig.hpp
)
else ()
list (APPEND public_headers pugixml.hpp pugiconfig.hpp)
endif ()
Thanks,
Richard
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org