Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Freeimage doesn't build with latest VS 2019 versions #2

Closed
TaaTT4 opened this issue Apr 2, 2021 · 1 comment
Closed

Freeimage doesn't build with latest VS 2019 versions #2

TaaTT4 opened this issue Apr 2, 2021 · 1 comment

Comments

@TaaTT4
Copy link

TaaTT4 commented Apr 2, 2021

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.

@darksylinc
Copy link
Member

darksylinc commented Apr 15, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants