Hi,
I'm working in Windows XP and I’m trying to compile in VC9.0 the plugings vrml
to OSG-2.8.2 and generate osgdb_vrml.dll and osg_vrlmd.dll.
I downloaded the OSG-2.8.2 binaries and I have working with it until now. But
now, I need to load vrml models, and osgdb_vrml.dll and osgdb_vrmld.dll are
missing.
So, I have downloaded the openVRML0-14.3 binaries compiled to VC9.0. I have
done some changes in openVRML, following the guide that is in OSG web. These
are the changes:
Token.hpp line 76: replace this line
inline operator<(RefToken l,RefToken r); //{return true;}
with this
inline bool operator<(RefToken l,RefToken r); //{return true;}
AST.hpp line 151: same thing - replace this line
inline operator<(RefAST l,RefAST r); // {return true;}
with this
inline bool operator<(RefAST l,RefAST r); // {return true;}
And finally, in regerror.c, we have an old-style C function definition:
size_t
regerror(errcode, preg, errbuf, errbuf_size)
int errcode;
const regex_t *preg;
char *errbuf;
size_t errbuf_size;
{
I did the changes and I recompiled, and all is OK!
Then, I downloaded the 3rdParty prebuilt dependency package for my platform. I
have downloaded the sources of OSG-2.8.2 to generate the project and solution
files with Cmake-2.6.
I specified the path of OPENVRML_INCLUDE_DIR and OPENVRML_LIBRARY and then, I
configure and generate.
When I generated the project I opened with VisualStudio and I compiled only
Plugins vrml, because I have the OSG-2.8.2 binaries but I haven't plugings of
VRML, so I only need osdb_vrml.dll and osgdb_vrmld.dll. It's not necessary
compile all OSG project.
But I have problems compiling plugging-vrml. It’s strange, because if I compile
it in Debug mode, no error appears and I generate osgdb_vrmld.dll without
problems. But if I compile it in Release mode, the following error appears:
6>openvrml.lib(img.obj) : error LNK2019: unresolved external symbol_png_init_io
undefined reference to "int __cdecl `anonymous namespace'::pngreadstr(struct
_iobuf *,unsigned int *,unsigned int *,unsigned int *,struct png_struct_def
*,struct png_info_struct *,unsigned char * *,unsigned char * * *)"
I need osgdb_vrml.dll because I have to work in Release mode. I don’t know why
this is happening. I don’t understand the error and I don’t understand why
there aren’t problems compiling it in Debug mode and why there are problems
compiling it in Release mode.
Thanks in advance!
Cheers,
Nagore
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=32341#32341
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org