[osg-submissions] osgconv --compressed not working under MSVC
Robert Osfield
robert.osfield at gmail.com
Fri Aug 24 01:34:34 PDT 2007
Hi Luigi,
This problem suggest that the auto registration of of the
GraphicsWindowWin32 is not working, could it be that Windows is
ignoring the linking of osgViewer until a symbol from it is used in an
application?
Adding osgViewer::Viewer viewer to osgconv (or osgdem for that matter)
is really the wrong way to go about getting the compiler to properly
link to osgViewer. If we have to pull in something it really should
at least be something relevant to the app. I wonder if just including
a header would be enough?
Robert.
On 8/24/07, Luigi Calori <l.calori at cineca.it> wrote:
> building under Visual Studio 7.1 in debug mode the current osgconv is
> not able to compress textures : it complains:
>
> Failed to create pbuffer, failing back to normal graphics window.
> Error: Unable to create graphis context - cannot run compression
>
> this patch solved for me (similar to VPB problem)
>
> Index: applications/osgconv/osgconv.cpp
> ===================================================================
> --- applications/osgconv/osgconv.cpp (revision 7278)
> +++ applications/osgconv/osgconv.cpp (working copy)
> @@ -1,5 +1,6 @@
> #include <stdio.h>
>
> +#include <osgViewer/Viewer>
> #include <osg/ArgumentParser>
> #include <osg/ApplicationUsage>
> #include <osg/Group>
> @@ -602,6 +603,8 @@
> fileNames.pop_back();
> }
>
> + osgViewer::Viewer viewer;
> +
> osg::Timer_t startTick = osg::Timer::instance()->tick();
>
> osg::ref_ptr<osg::Node> root = osgDB::readNodeFiles(fileNames);
>
> _______________________________________________
> osg-submissions mailing list
> osg-submissions at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
More information about the osg-submissions
mailing list