[osg-users] Read frame buffer back into main memory

Robert Osfield robert.osfield at gmail.com
Wed Mar 7 00:38:42 PST 2018


Hi Antoine,

On 6 March 2018 at 17:44, Antoine Rennuit <antoinerennuit at hotmail.com> wrote:
> Error writing file /home/arennuit/testImage.bmp: Warning: Could not find plugin to write image to file "/home/arennuit/testImage.bmp".
> Error writing file /home/arennuit/testImage.jpg: Warning: Could not find plugin to write image to file "/home/arennuit/testImage.jpg".
>
> Any idea why OSG cannot my plugins?

I don't know anything about the OSG version you are using, did you
build it yourself?  Do you install it?  Are you using a system path
(possibly LD_LIBRARY_PATH) if you are under Unix.  Does you OSG
version include the jpeg and bmp plugins?  Is it a static build of the
OSG?

To investigate I would recommend setting the OSG_NOTIFY_LEVEL env var
up to DEBUG and then running the application and redirecting the
console output to a text file i.e.

  export OSG_NOTIFY_LEVEL=DEBUG
  myapplication &> output.txt


Then open up the output.txt in an editor and scroll through looking
for references for the OSG attempting to load plugins.  This will show
you where the OSG is searching for plugins, the path to the directory
containing the osgPlugins-version directory should be on the list.

Also have a look at the osgPlugins-version directory to see what
osgdb_* libs there are.

Robert.


More information about the osg-users mailing list