Hi Sukender, hi Robert,
After using this patch on a fresh checkout it doesn't build for me on OS X 10.8
with clang++:
Linking CXX shared module ../../../lib/osgPlugins-3.1.3/osgdb_x.so
Undefined symbols for architecture x86_64:
"VTT for WriterNodeVisitorDirectX", referenced from:
WriterNodeVisitorDirectX::WriterNodeVisitorDirectX(std::ostream&, bool,
bool,
std::string, std::string) in ReaderWriterDirectX.cpp.o
WriterNodeVisitorDirectX::~WriterNodeVisitorDirectX() in
ReaderWriterDirectX.cpp.o
"vtable for WriterNodeVisitorDirectX", referenced from:
WriterNodeVisitorDirectX::WriterNodeVisitorDirectX(std::ostream&, bool,
bool,
std::string, std::string) in ReaderWriterDirectX.cpp.o
NOTE: a missing vtable usually means the first non-inline virtual member
function has no
definition.
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/osgPlugins-3.1.3/osgdb_x.so] Error 1
make[1]: *** [src/osgPlugins/x/CMakeFiles/osgdb_x.dir/all] Error 2
make: *** [all] Error 2
This is something I've seen (and fixed) before but don't remember what the fix
was.
At that time I also found that the plugin isn't able to read files generated by
itself.
Given this last issue and some coding issues (e.g. passing std::string copies
instead of
references) maybe Sukender could address these and re-submit?
Cheers,
/ulrich
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org