OgreMain Build Error FreeImage

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

OgreMain Build Error FreeImage

Post by Lax »

Hi,

I'm trying to build the newest Ogre version from master:

Code: Select all

Author: Matias N. Goldberg <dark_sylinc@yahoo.com.ar>
Date:   Thu Sep 15 13:29:46 2022 -0300

Revert "fixed #213 "Breaking in linux with intel GPU via mesa"."

This reverts commit dc1e39cc53bc5c7d2dd44ad50a0d08cca94d8c58.

commit 91c01433ff04b296f4b05ec3629e3444201ee8ab

FreeImage does compile correctly. But when building OgreMain, I get those errors:

Code: Select all

1>C:\Users\lukas\Documents\GameEngineDevelopment\external\Ogre2.2SDK\OgreMain\src\OgreFreeImageCodec2.cpp(660,29): error C3861: "FreeImage_ValidateFromMemory": Bezeichner wurde nicht gefunden.
1>C:\Users\lukas\Documents\GameEngineDevelopment\external\Ogre2.2SDK\OgreMain\src\OgreFreeImageCodec2.cpp(687,18): error C2065: "FIF_WEBP": nichtdeklarierter Bezeichner
1>C:\Users\lukas\Documents\GameEngineDevelopment\external\Ogre2.2SDK\OgreMain\src\OgreFreeImageCodec2.cpp(687,5): error C2051: case-Ausdruck ist keine Konstante

I'm using Visual Studio 2022 Community edition:

  • Visual Studio 2022 (v143)
  • Windows SDK10.0.22000.0

I have no idea how to fix that.

Best Regards
Lax

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

jwwalker
Gremlin
Posts: 151
Joined: Thu Aug 12, 2021 10:06 pm
x 12

Re: OgreMain Build Error FreeImage

Post by jwwalker »

It sounds like you don't have the right version of FreeImage, which is part of the dependencies package.

User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 4971
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1164
Contact:

Re: OgreMain Build Error FreeImage

Post by dark_sylinc »

We updated FreeImage to a newer version in ogre-next-deps.

If you're still using the older version, this error happens.
Update ogre-next-deps to latest, rebuild it, and then try again.

Lax
Hobgoblin
Posts: 535
Joined: Mon Aug 06, 2007 12:53 pm
Location: Saarland, Germany
x 38

Re: OgreMain Build Error FreeImage

Post by Lax »

Hi all,

thanks for the information.
I used the build_ogre_Visual_Studio_16_2019_x64.bat script file, but now I get those errors:

Code: Select all

C:\Users\lukas\Documents\GameEngineDevelopment\external\Ogre\ogre-next\OgreMain\src\OgreRenderSystem.cpp(58,14): fatal
 error C1083: Datei (Include) kann nicht geöffnet werden: "renderdoc/renderdoc_app.h": No such file or directory [C:\Us
ers\lukas\Documents\GameEngineDevelopment\external\Ogre\ogre-next\build\OgreMain\OgreMain.vcxproj]

C:\Users\lukas\Documents\GameEngineDevelopment\external\Ogre\ogre-next\OgreMain\src\OgreRootLayout.cpp(48,10): fatal  e
rror C1083: Datei (Include) kann nicht geöffnet werden: "rapidjson/document.h": No such file or directory [C:\Users\luk
as\Documents\GameEngineDevelopment\external\Ogre\ogre-next\build\OgreMain\OgreMain.vcxproj]

Even the rapidjson folder does exist in the ogre-next-depts folder.

Best Regards
Lax

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

User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 4971
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1164
Contact:

Re: OgreMain Build Error FreeImage

Post by dark_sylinc »

Lax wrote: Sat Sep 17, 2022 9:55 am

Hi all,

thanks for the information.
I used the build_ogre_Visual_Studio_16_2019_x64.bat script file, but now I get those errors:

Code: Select all

C:\Users\lukas\Documents\GameEngineDevelopment\external\Ogre\ogre-next\OgreMain\src\OgreRenderSystem.cpp(58,14): fatal
 error C1083: Datei (Include) kann nicht geöffnet werden: "renderdoc/renderdoc_app.h": No such file or directory [C:\Us
ers\lukas\Documents\GameEngineDevelopment\external\Ogre\ogre-next\build\OgreMain\OgreMain.vcxproj]

C:\Users\lukas\Documents\GameEngineDevelopment\external\Ogre\ogre-next\OgreMain\src\OgreRootLayout.cpp(48,10): fatal  e
rror C1083: Datei (Include) kann nicht geöffnet werden: "rapidjson/document.h": No such file or directory [C:\Users\luk
as\Documents\GameEngineDevelopment\external\Ogre\ogre-next\build\OgreMain\OgreMain.vcxproj]

Even the rapidjson folder does exist in the ogre-next-depts folder.

Best Regards
Lax

Try deleting everything and starting from scratch, including downloading the script again.

I just tested the script on a Windows machine to make sure it works (it does! :) )

There have been a few subtle changes/fixes to the scripts and repos that could explain the problems you are seeing and I suspect you have a lingering problem from an old version causing trouble.

Lax
Hobgoblin
Posts: 535
Joined: Mon Aug 06, 2007 12:53 pm
Location: Saarland, Germany
x 38

Re: OgreMain Build Error FreeImage

Post by Lax »

Hi all,

ok I finally got it working.
Thanks for the advices!

Best Regards
Lax

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

Post Reply