Yegor,

Sorry not to be able to help much except that I am building both release and 
debug dlls in VC Express with considerable success.

Most of your 'A' problems are handled in the '3rdparty' download - dependencies 
section of the web site.

When I rebuild osgIntrospection I get the messages:

1>------ Rebuild All started: Project: Core osgIntrospection, Configuration: 
Debug Win32 ------
1>Deleting intermediate and output files for project 'Core osgIntrospection', 
configuration 'Debug|Win32'
1>Compiling...
1>ConstructorInfo.cpp
1>CustomAttributeProvider.cpp
1>DefaultReflectors.cpp
1>MethodInfo.cpp
1>PropertyInfo.cpp
1>Reflection.cpp
1>Type.cpp
1>Utility.cpp
1>Value.cpp
1>Generating Code...
1>Compiling manifest to resources...
1>Linking...
1>LINK : .\../../bin/Win32/osgIntrospectiond.dll not found or not built by the 
last incremental link; performing full link
1> Creating library ../../lib/Win32/osgIntrospectiond.lib and object 
../../lib/Win32/osgIntrospectiond.exp
1>Embedding manifest...
1>Build log was saved at 
"file://c:\OSG_OP_OT-1.2\OpenSceneGraph\VisualStudio\osgIntrospection\Win32\Debug\BuildLog.htm"
1>Core osgIntrospection - 0 error(s), 0 warning(s)
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

that is - no errors like yours. 

My main difference appears to be that I dont have any msvc80pd.dll or msvc80 
dll - they dont seem to be needed. i have msvcp70 and msvcp71.dlls if that is 
of any information to you. The dependency walker shows the files as missing 
when I open (say) osg.dll, but somehow the calls are satisfied elsewhere. 

Geoff
  ----- Original Message ----- 
  From: Yegor Plam at RR 
  To: [email protected] 
  Sent: Friday, November 24, 2006 10:41 PM
  Subject: [osg-users] Help: errors building osgCore and examples (VC++Express, 
WinXP)


  Hello,

   

  I'm a new user and am having trouble building the core and examples.

   

  1)    I am using VC++ Express on WinXP.

  2)       I downloaded OSG_OP_OT-1.2.zip and OpenSceneGraph-Data-1.1.zip

  3)       I built (in this order): OpenThreads, Producer, osg Core&Examples 
(the whole solution)

  4)       The first 2 seemed to build correctly.  OpenThreads project 
generated OpenThreadsWin32d_s.lib in /lib/win32, and Producer project generated 
Producerd_s.lib in its /lib/win32.

  5)       Attempt to build Core and "everything else" generated a bunch of 
errors.

   

  On my first try, I (mistakenly) tried to build osgCore before OThreads and 
Producer, which resulted in a bunch of linker errors, something to the effect 
of "LINK error: can't find OpenThreadsWin32d.lib" (the osg solution build 
setting is "debug|static", btw).

   

  I then read the README.txt and tried again, building OT and P first.  The 
resulting libraries have different names than the LINK error.  (extra "_s").  
So I created copies of both libraries without the "_s" and tried a clean build. 
 Now I have the following set of errors:

   

  A) compile errors: can't find the following .h files:

  ....

   

  I searched for some of these files with WinExp search function. couldn't find 
them.

   

  B) Linker errors: 

  1>------ Build started: Project: Core osgIntrospection, Configuration: Debug 
Win32 ------

  1>Linking...

  2>------ Build started: Project: Core osgTerrain, Configuration: Debug Static 
Win32 ------

  2>Compiling...

  2>DataSet.cpp

  1>   Creating library ../../lib/Win32/osgIntrospectiond.lib and object 
../../lib/Win32/osgIntrospectiond.exp

  1>Reflection.obj : error LNK2019: unresolved external symbol 
"__declspec(dllimport) public: __thiscall OpenThreads::Mutex::Mutex(void)" 
([EMAIL PROTECTED]@@[EMAIL PROTECTED]) referenced in function "private: static 
struct osgIntrospection::Reflection::StaticData & __cdecl 
osgIntrospection::Reflection::getOrCreateStaticData(void)" ([EMAIL 
PROTECTED]@osgIntrospection@@[EMAIL PROTECTED]@XZ)

  1>Reflection.obj : error LNK2019: unresolved external symbol 
"__declspec(dllimport) public: virtual __thiscall 
OpenThreads::Mutex::~Mutex(void)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED]) 
referenced in function "void __cdecl `private: static struct 
Reflection::getOrCreateStaticData::StaticData & __cdecl 
osgIntrospection::Reflection::getOrCreateStaticData(void)'::`2'::`dynamic 
atexit destructor for 'access_mtx''(void)" ([EMAIL PROTECTED]@[EMAIL 
PROTECTED]@@[EMAIL PROTECTED]@[EMAIL PROTECTED])

  1>.\../../bin/Win32/osgIntrospectiond.dll : fatal error LNK1120: 2 unresolved 
externals

  1>Build log was saved at 
"file://c:\OSG_OP_OT-1.2\OpenSceneGraph\VisualStudio\osgIntrospection\Win32\Debug\BuildLog.htm"

  1>Core osgIntrospection - 3 error(s), 0 warning(s)

   

  And.

   

  9>------ Build started: Project: Example osgwindows, Configuration: Debug 
Win32 ------

  10>------ Build started: Project: Example osgvolume, Configuration: Debug 
Win32 ------

  9>Linking...

  10>Linking...

  9>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: class 
std::basic_ostream<char,struct std::char_traits<char> > & __thiscall 
std::basic_ostream<char,struct std::char_traits<char> >::operator<<(class 
std::basic_ostream<char,struct std::char_traits<char> > & (__cdecl*)(class 
std::basic_ostream<char,struct std::char_traits<char> > &))" ([EMAIL 
PROTECTED]@[EMAIL PROTECTED]@@@std@@[EMAIL PROTECTED]@AAV01@@[EMAIL PROTECTED]) 
already defined in OpenThreadsWin32d.lib(Win32Thread.obj)

  9>msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "class 
std::basic_ostream<char,struct std::char_traits<char> > & __cdecl 
std::endl(class 



  .....



  Seems like there are unresolved Mutex:: function calls and collisions between 
different DLLs/Libraries?

  This kind of stuff is actually my weakest point as a programmer, I could 
really use some help.

   

  Thanks!

   

  -Yegor



--
This email has been verified as Virus free
Virus Protection and more available at http://www.plus.net





------------------------------------------------------------------------------


  _______________________________________________
  osg-users mailing list
  [email protected]
  http://openscenegraph.net/mailman/listinfo/osg-users
  http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to