Ogre 2.x new version compile errors

Discussion area about developing with Ogre2 branches (2.1, 2.2 and beyond)
Post Reply
Lax
Hobgoblin
Posts: 512
Joined: Mon Aug 06, 2007 12:53 pm
Location: Saarland, Germany
x 34

Ogre 2.x new version compile errors

Post by Lax »

Hi,

in case, someone has problems, compiling newest ogre version because of freeImage error, like:
error C2169: 'lrintf': intrinsic function, cannot be defined
See solution:

https://github.com/InsightSoftwareConso ... ssues/1967

In opj_includes line 91 replace:

Code: Select all

static INLINE long lrintf(float f){
with:

Code: Select all

static INLINE long opj_lrintf(float f){
Best regards
Lax
Image
http://www.lukas-kalinowski.com/Homepage/?page_id=1631
Please support Second Earth Technic Base built of Lego bricks for Lego ideas: https://ideas.lego.com/projects/81b9bd1 ... b97b79be62
Image
Post Reply