Hello Florent,
Florent Berthaut wrote:
> i have a problem with the cvs version of OpenSG 1.x (on gnu/linux
> fedora 10)
>
> i have configured it with : ./configure --enable-jpg --enable-png
> --enable-gif --enable-experimental --enable-contrib --enable-glut
>
> then make and make install, which works fine.
ok.
> then when i try to load an image using : ImagePtr text =
> ImageFileHandler::the().read(texImages[tex].c_str());
>
> I get for example :
> WARNING: Found wrong image header trying to autodetect image type!
> WARNING: Couldn't autodetect image type!
> WARNING: could not read pierres.png; unknown image format
>
> So it looks like OpenSG wasn't built with png support , but it was ;)
> (indeed ldd /usr/local/lib/dbg/libOSGSystem.so gives : libpng12.so.0 =>
> /usr/lib/libpng12.so.0 (0xb6892000) ) .
>
> Does anyone have an idea ?
It seems that PNGImageFileType::validateHeader() does not find the
expected magic byte sequence at the beginning of the image and none of
the other image types find one they recognize either. Are you positive
this is a valid PNG image? Could it be that its header is damaged?
Can you share the image? If it is large the mailing list attachment
limit may reject it, you can send it directly to me instead then.
Cheers,
Carsten
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users