Selu wrote:
Hi there,
I've been using OF and FreeImage for long time ago and never saw something like this.
![]()
I get an iMx6 board and installed openframeworks to run in the framebuffer. Everything is working properly except loading png images that ends in a "terminate called after throwing an instance of 'char const*'" error message.
I sent the result of FreeImage_GetFileType to the output and all PNGs are detected as FIF_PGM.
If I set the first parameter to FIF_PNG it will return 0, which means that the file was not loaded.I read about PGM format and how can the PNG file being confused with PGM, no sense at all....
I'm cross compiling and I checked multiple times the libraries versions that is being linked, headers, etc... of freeimage and libpng. What can be wrong?!! I'm totally out of ideas....
Thank you in advance.
Posts: 4
Participants: 2