Hi Stephan,

I can't comment on the VS static build side.  I have things partially
working under Linux, and the osgstaticviewer has been be base for the
testing.  I'm able to create a viewer and load a .ive file and
navigate just like in the standard osgviewer, only it doesn't support
dynamic plugins...  Anyway look at osgstaticviewer, you'll see extras
added to the CMakeLists.txt and the source code to get the plugins and
osgViewer to work.

Robert.

On 6/14/07, Stephan Maximilian Huber <[EMAIL PROTECTED]> wrote:
Hi

I am trying to build the osg-libs as static libraries. This works --
sort of. I am getting a lot of warnings when linking my application
against the static libs. It seems, that the osg-libs are not compiled
with the flag OT_LIBRARY_STATIC, so the linker issues a lot of warnings:

osgDBd.lib(DatabasePager.obj) : warning LNK4049: Lokal definiertes
Symbol "[EMAIL PROTECTED]@OpenThreads@@QAEHXZ (public: int __thiscall
OpenThreads::Thread::testCancel(void))" wurde importiert.
osgd.lib(GraphicsThread.obj) : warning LNK4217: Lokal definiertes Symbol
"[EMAIL PROTECTED]@OpenThreads@@UAEXXZ (public: virtual void __thiscall
OpenThreads::Barrier::release(void))" wurde in "public: virtual void
__thiscall osg::BarrierOperation::release(void)"
([EMAIL PROTECTED]@osg@@UAEXXZ)-Funktion importiert.
osgDBd.lib(DatabasePager.obj) : warning LNK4217: Lokal definiertes
Symbol
"[EMAIL PROTECTED]@OpenThreads@@[EMAIL PROTECTED]@@Z
(public: int __thiscall OpenThreads::Thread::setSchedulePriority(enum
OpenThreads::Thread::ThreadPriority))" wurde in "public: virtual void
__thiscall osgDB::DatabasePager::requestNodeFile(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &,class osg::Group *,float,class
osg::FrameStamp const *,class osgDB::ReaderWriter::Options *)"
([EMAIL PROTECTED]@osgDB@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL 
PROTECTED]@2@@std@@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@2@@Z)-Funktion
importiert.
osgDBd.lib(DatabasePager.obj) : warning LNK4217: Lokal definiertes
Symbol "[EMAIL PROTECTED]@OpenThreads@@QAEHXZ (public: int
__thiscall OpenThreads::Thread::getSchedulePriority(void))" wurde in
"public: virtual void __thiscall
osgDB::DatabasePager::signalBeginFrame(class osg::FrameStamp const *)"
([EMAIL PROTECTED]@osgDB@@[EMAIL PROTECTED]@@@Z)-Funktion
importiert.

I do not know CMake at all, I was happy to get it to create VisualStudio
files, so I don't know where to tweak the settings.



Another note: the old studio files used /MT(d) instead of /MD(d) -- does
this matter as long as all parts of the app are compiled with the same
setting?


Yet again another note:

osgViewer fails completedly (could not get a WindowingSystemInterface),
I think it is because of the same issues with static linking as with the
plugins. So I tried adding graphicswindow_Win32 to the linker setting:
"force loading symbols" (sorry, don't know the exact translation from
german) analog to the symbols for used plugins, but it doesn't work :-/
Any Ideas?

Thanks for listening,

Stephan
_______________________________________________
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