Hi John,

The Cmake file for osgconv is the same for Windows as it is unix, so
osgViewer should be included already in the build, there is in essence
no difference between the specified libs between osgviewer and
osgconv.  Curiously osgconv even references sybmbols from
include/osgViewer (see the dynamic_cast<GraphicsWindow*>) so I'm
rather preplexed that its being so aggressive in not linking in the
lib, even though its been told to link and the code already references
symbols from it.  One suggestion is to add a getosgViewerGetVersion(),
have you tried this?

As for you app and your clients, the OSG is open source, you can
modify the source and pass on appropriate binaries to your client, you
needn't wait for use to get a non hacky solution checked into the OSG.

Robert.

On Dec 3, 2007 4:18 PM, Argentieri, John-P63223
<[EMAIL PROTECTED]> wrote:
>
>
>
> Robert,
>
> I'm not sure about *nix, but I know that on Windows, the osgViewer.dll will
> NOT get loaded unless a symbol from it gets referenced. That does not
> include this symbol:
>
> static RegisterWindowingSystemInterfaceProxy
> createWindowingSystemInterfaceProxy;
>
> From within GraphicsWindowWin32.cpp, at least by default. I'm not sure what
> you want to do for this. You could force osgconv to implicitly load
> osgViewer.dll by modifying the solution files, or create something on the
> stack in osgConv.cpp that is defined in osgViewer.dll. So far you've refuted
> both of these solutions. However, we do need to supply texture compression
> support to our customer, even on Windows. I'll bet that you guys need to do
> the same. IMHO, forcing the link is the least invasive solution. If I'm not
> mistaken, that's what happens on *nix anyway when you give g++ the
> "-losgViewer.so" so the statics and globals get created in this case.
>
> One other option would be to move osg::GraphicsContext into osgViewer.dll,
> that way when the GraphicsContext is declard in osgconv.cpp, then
> osgViewer.dll will be loaded, and the RegisterWindowingSystemInterfaceProxy
> will be created.
>
> John Argentieri
> Software Engineer
> GENERAL DYNAMICS C4S
> (407) 281-5568
> [EMAIL PROTECTED]
>
> "This email message is for the sole use of the intended recipient(s) and may
> contain GDC4S confidential or privileged information. Any unauthorized
> review, use, disclosure or distribution is prohibited. If you are not an
> intended recipient, please contact the sender by reply email and destroy all
> copies of the original message."
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to