Re: [osg-users] [build] Can't compile own project as release build

2010-12-24 Thread Mourad Boufarguine
On Fri, Dec 24, 2010 at 11:52 AM, Heiko Thiel 
heiko.th...@student.hpi.uni-potsdam.de wrote:

 Hi,

 since some SVN versions i'm not anymore able to compile my project as
 release build. Debug build works without problems.

 I get following error by VS 2010:


  Fehler2   error LNK2001: Nicht aufgelöstes externes Symbol
 public: virtual void __thiscall osg::BufferData::releaseGLObjects(class
 osg::State *)const  (?releaseglobje...@bufferdata@osg@@ubexpavst...@2@@Z).
 C:\Users\SunBlack\Desktop\GP\build\main.obj Towerdefense
  Fehler1   error LNK2001: Nicht aufgelöstes externes Symbol
 public: virtual void __thiscall
 osg::BufferData::resizeGLObjectBuffers(unsigned int)
 (?resizeglobjectbuff...@bufferdata@osg@@ua...@z).
 C:\Users\SunBlack\Desktop\GP\build\main.obj Towerdefense
 


 Interesting is: Notepad++ found releaseglobje...@bufferdata in osgd.lib
 and osgrd.lib, but not in osg.lib and osgr.lib. Any idea why?


 Thank you!

 Cheers,
 Heiko


Hi Heiko,

These two methods were added two weeks ago to BufferData in svn/trunk. The
only reason I can think of, is that you didn't build release osg libs
recently, or you are linking to an old osg.lib. Check your linker paths.
Maybe a clean build can help you.

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


Re: [osg-users] [build] Can't compile own project as release build

2010-12-24 Thread Heiko Thiel
You are right. It looks like a mistaken by me. I had compile osg two times: 
Debug and RelWithDbgInfo. I had think, that Debug creates osgd.lib and 
RelWithDbgInfo osg.lib with additional debug files (pdm and so on). But it 
seems RelWithDbgInfo is not that, what I have expected, so I must compile 
RelWithDbgInfo and Release to get libs for both versions.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=35152#35152





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


Re: [osg-users] [build] Can't compile own project as release build

2010-12-24 Thread Mourad Boufarguine
On Fri, Dec 24, 2010 at 2:41 PM, Heiko Thiel osgfo...@tevs.eu wrote:

 You are right. It looks like a mistaken by me. I had compile osg two times:
 Debug and RelWithDbgInfo. I had think, that Debug creates osgd.lib and
 RelWithDbgInfo osg.lib with additional debug files (pdm and so on). But it
 seems RelWithDbgInfo is not that, what I have expected, so I must compile
 RelWithDbgInfo and Release to get libs for both versions.



Indeed, RelWithDbgInfo creates osgrd.lib not osg.lib.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org