[osg-users] Compiling VRML 2.0 Plugin (Visual Studio 8)

Kim C Bale K.Bale at hull.ac.uk
Mon Oct 1 13:29:59 PDT 2007


Hi all,
 
I have been trying to compile the VRML 2.0 plugin under VS8. I have noticed a number of posts on the forum about the plugin but I cannot seem to find anybody having issues with it's compilation under visual studio v8.0.
 
I followed the instructions found here to the letter [ http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecifics/VisualStudio/VisualStudioPlugins <http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecifics/VisualStudio/VisualStudioPlugins>  ]
 
And compiled the win32 source package found here: [ http://sourceforge.net/project/downloading.php?groupname=artoolkit&filename=OpenVRML-0.14.3-win32.zip <http://sourceforge.net/project/downloading.php?groupname=artoolkit&filename=OpenVRML-0.14.3-win32.zip>  ]
 
And made the directed changes to the source and directed CMake to the freshly compiled libraries. But i am getting linker errors from within .NET when i try to compile the plugin. 
 
A snippet of errors are found at the bottom of the email. 
 
In my experience linker errors are caused by using the wrong version of libraries or because .NET can't find them. 
 
I assume that I the libraries are the correct version as i got them from the suggested link, and I've added the OpenVRML lib dir to both CMake and the .NET lib search path, but alas, i get still get these blasted errors. 
 
I'm at a loss.
 
Can anybody help? Have I missed something obvious?
 
 
Thanks in advance,
 
 
Kim.
 
1>------ Build started: Project: Plug 3d vrml, Configuration: Release Win32 ------

1>Linking...

1>openvrml.lib(browser.obj) : error LNK2001: unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall antlr::RecognitionException::toString(void)const " (?toString at RecognitionException@antlr@@UBE?AV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@XZ)

1>openvrml.lib(browser.obj) : error LNK2001: unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall antlr::RecognitionException::getFileLineColumnString(void)const " (?getFileLineColumnString at RecognitionException@antlr@@UBE?AV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@XZ)

1>openvrml.lib(browser.obj) : error LNK2019: unresolved external symbol "public: virtual __thiscall antlr::Parser::~Parser(void)" (??1Parser at antlr@@UAE at XZ) referenced in function "public: virtual __thiscall antlr::LLkParser::~LLkParser(void)" (??1LLkParser at antlr@@UAE at XZ)

1>openvrml.lib(browser.obj) : error LNK2019: unresolved external symbol "public: __thiscall antlr::RecognitionException::RecognitionException(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int,int)" (??0RecognitionException at antlr@@QAE at ABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@0HH at Z) referenced in function "public: __thiscall antlr::SemanticException::SemanticException(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int,int)" (??0SemanticException at antlr@@QAE at ABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@0HH at Z)

....

1>C:\Build\OpenSceneGraph 2.0\OSG-BUILT\lib\osgPlugins-2.0.0\Release\osgdb_vrml.dll : fatal error LNK1120: 76 unresolved externals

1>Build log was saved at "file://c:\Build\OpenSceneGraph 2.0\OSG-BUILT\src\osgPlugins\vrml\osgdb_vrml.dir\Release\BuildLog.htm"

1>Plug 3d vrml - 80 error(s), 0 warning(s)

========== Build: 0 succeeded, 1 failed, 5 up-to-date, 0 skipped ==========

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20071001/1f062eb3/attachment-0002.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20071001/1f062eb3/attachment-0001.asc>


More information about the osg-users mailing list