OGRECave/ogre-next-deps

Freeimage doesn't build with latest VS 2019 versions

Closed this issue · 1 comments

With version 16.9.3 of VS 2019 (but I suspect with every version greater-equal than 16.8.x as well) Freeimage doesn't build in non-debug modes. The error is related to OpenJPEG library: uclouvain/openjpeg#1333. For what I've understood, OpenJPEG 2.x versions aren't affected by this issue.
An Freeimage upgrade should hopefully fix the problem.

Here you can find a quick and dirty patch to ovverride the issue.

Someone posted here but removed it

However he gave useful information: Apparently lrint wasn't defined in MSVC but it may have been recently added, causing a clash

Edit it appears your patch already knew this