[osg-users] Error compiling plugin collada 2.1 and osg 2.6.1

2008-11-03 Thread Adonai S . Canêz
Hi,

 

I'm trying compile osg 2.6.1 and collada dom 2.1, but I am taking errors
during compilatiom. I am create the project of osg with Cmake 2.6.2 and
compile the source of collada with built.bat localted in
\colladadom\dom\projects\vc8. I'm put the file generated
libcollada14dom21-s.lib and libcollada14dom21-sd.lib to folder \3drParty\lib
and copied folder \colladadom\dom\include to folder 3rdParty. 

The erros is down.

 

libcollada14dom21-s.lib(daeURI.obj) : error LNK2019: unresolved external
symbol private: static bool __cdecl pcrecpp::Arg::parse_string(char const
*,int,void *) ([EMAIL PROTECTED]@pcrecpp@@[EMAIL PROTECTED]) referenced in
function public: __thiscall pcrecpp::Arg::Arg(class
std::basic_stringchar,struct std::char_traitschar,class
std::allocatorchar  *)
([EMAIL PROTECTED]@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@std@@[EMAIL PROTECTED]
@2@@std@@@Z)

 

libcollada14dom21-s.lib(daeLIBXMLPlugin.obj) : error LNK2019: unresolved
external symbol _xmlStrlen referenced in function unsigned char * __cdecl
`anonymous namespace'::utf8ToLatin1(unsigned char const *)
([EMAIL PROTECTED]@@[EMAIL PROTECTED])

 

C:\Documents and Settings\adonai\My Documents\Visual Studio
2005\Projects\OpenSceneGraph-2.6.1\bin\Release\..\osgPlugins-2.6.1\osgdb_dae
.dll : fatal error LNK1120: 36 unresolved externals
Build log was saved at file://c:\Documents file:///c:\Documents  and
Settings\adonai\My Documents\Visual Studio
2005\Projects\OpenSceneGraph-2.6.1\src\osgPlugins\dae\osgdb_dae.dir\Release\
BuildLog.htm
Plugins dae - 37 error(s), 128 warning(s)

 

  _  

Novos endereços, o Yahoo! que você conhece. Crie
http://br.rd.yahoo.com/mail/taglines/mail/*http:/br.new.mail.yahoo.com/addr
esses  um email novo com a sua cara @ymail.com ou @rocketmail.com.

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Error compiling plugin collada 2.1 and osg 2.6.1

2008-11-03 Thread Wilhelm Medetz
I have successfully built OpenSceneGraph 2.6.1 with Collada 2.1 under
VisualStudio 2008.

 

I set COLLADA_USE_STATIC to true and made the following changes 

 

OpenSceneGraph\Plugins\dae

Linker|Input|Ignore specific library[Debug]: msvcrt.lib

Linker|Input|Additional Dependencies[Debug]:

 
..\..\..\..\colladadom\dom\external-libs\libxml2\win32\lib\libxml2_a.lib

   ..\..\..\..\colladadom\dom\external-libs\libxml2\win32\lib\zlib.lib

   ..\..\..\..\colladadom\dom\external-libs\pcre\lib\vc9\pcre-d.lib

   ..\..\..\..\colladadom\dom\external-libs\pcre\lib\vc9\pcrecpp-d.lib

Linker|Input|Additional Dependencies[Release]:

 
..\..\..\..\colladadom\dom\external-libs\libxml2\win32\lib\libxml2_a.lib

   ..\..\..\..\colladadom\dom\external-libs\libxml2\win32\lib\zlib.lib

   ..\..\..\..\colladadom\dom\external-libs\pcre\lib\vc9\pcre.lib

   ..\..\..\..\colladadom\dom\external-libs\pcre\lib\vc9\pcrecpp.lib

 

Then both the Release and the Debug build worked fine.

You should change the above paths to .\vc8\... for Visual Studio 2005.

 

Hope this helps.

 

Wilhelm Medetz

 

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org