On Sun, Jul 10, 2011 at 2:03 AM, Chris Foster <[email protected]> wrote:
> On Sun, Jul 10, 2011 at 12:09 PM, Chris Foster <[email protected]> wrote:
>>> On another notice I was playing around with trying to get
>>> libOpenImageIO.so to link against my pugixml.so without luck. I
>>> figured out how to get it "FOUND" but couldn't find the right
>>> combination to get it to link to it.
>
> It was a bit fiddly to get this working properly, but I think I've done it.
> Get the latest source, and set the option
>
> -DUSE_EXTERNAL_PUGIXML:BOOL=TRUE
>
> in order to use an externally-supplied PUGIXML.

I pulled the 118.diff again but this time it didn't apply cleanly to
the 0.10 release source. I re-created the patch with some "fuzz" which
worked.

I think we're almost there but when I try to build I get the following
error during linking:
"""
Linking CXX executable imagespec_test
cd 
/home/build/rpmbuild/OpenImageIO/BUILD/OpenImageIO-oiio-8055b0f/build/libOpenImageIO
&& /usr/bin/cmake -E cmake_link_script
CMakeFiles/imagespec_test.dir/link.txt --verbose=1
/usr/lib64/ccache/c++   -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic  -O3 -DNDEBUG
CMakeFiles/imagebufalgo_test.dir/imagebufalgo_test.cpp.o  -o
imagebufalgo_test -rdynamic -lHalf -lIex -lImath -lIlmThread -lpthread
libOpenImageIO.so.0.10.0 -lboost_filesystem-mt -lboost_regex-mt
-lboost_system-mt -lboost_thread-mt -ldl -lHalf -lIex -lImath
-lIlmThread -lpthread -lpng -lz -ltiff -ljpeg -lz -ltiff -ljpeg
-ljasper -lIlmImf -lpugixml
/usr/lib64/ccache/c++   -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic  -O3 -DNDEBUG
CMakeFiles/imagespec_test.dir/imagespec_test.cpp.o  -o imagespec_test
-rdynamic libOpenImageIO.so.0.10.0 -lboost_filesystem-mt
-lboost_regex-mt -lboost_system-mt -lboost_thread-mt -ldl -lHalf -lIex
-lImath -lIlmThread -lpthread -lpng -lz -ltiff -ljpeg -lz -ltiff
-ljpeg -ljasper -lIlmImf -lpugixml
libOpenImageIO.so.0.10.0: undefined reference to
`OpenImageIO::v0_10::pugi::xml_node::child_value(char const*) const'
libOpenImageIO.so.0.10.0: undefined reference to
`OpenImageIO::v0_10::pugi::xml_node::operator
OpenImageIO::v0_10::pugi::xml_node_struct*
OpenImageIO::v0_10::pugi::xml_node::*() const'
libOpenImageIO.so.0.10.0: undefined reference to
`OpenImageIO::v0_10::pugi::xml_node::next_sibling(char const*) const'
libOpenImageIO.so.0.10.0: undefined reference to
`OpenImageIO::v0_10::pugi::xml_attribute::operator=(int)'
libOpenImageIO.so.0.10.0: undefined reference to
`OpenImageIO::v0_10::pugi::xml_node::child_value() const'
libOpenImageIO.so.0.10.0: undefined reference to
`OpenImageIO::v0_10::pugi::xml_document::xml_document()'
libOpenImageIO.so.0.10.0: undefined reference to
`OpenImageIO::v0_10::pugi::xml_node::append_attribute(char const*)'
libOpenImageIO.so.0.10.0: undefined reference to
`OpenImageIO::v0_10::pugi::xml_node::print(std::basic_ostream<char,
std::char_traits<char> >&, char const*, unsigned int,
OpenImageIO::v0_10::pugi::xml_encoding, unsigned int) const'
libOpenImageIO.so.0.10.0: undefined reference to
`OpenImageIO::v0_10::pugi::xml_node::append_child(OpenImageIO::v0_10::pugi::xml_node_type)'
libOpenImageIO.so.0.10.0: undefined reference to
`OpenImageIO::v0_10::pugi::xml_node::set_name(char const*)'
libOpenImageIO.so.0.10.0: undefined reference to
`OpenImageIO::v0_10::pugi::xml_node::child(char const*) const'
libOpenImageIO.so.0.10.0: undefined reference to
`OpenImageIO::v0_10::pugi::xml_document::load(char const*, unsigned
int)'
libOpenImageIO.so.0.10.0: undefined reference to
`OpenImageIO::v0_10::pugi::xml_document::~xml_document()'
libOpenImageIO.so.0.10.0: undefined reference to
`OpenImageIO::v0_10::pugi::xml_node::set_value(char const*)'
"""

And I get the same thing for "atomic_tests"...


> IIRC this the last thing on the todo list for the packaging cleanup.  Is there
> anything I've forgotten?

That's definitely all the big stuff.

Thanks,
Richard
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to