Can't seem to build Ogre dependencies Topic is solved

Problems building or running the engine, queries about how to use features etc.
Post Reply
DFDark
Gnoblar
Posts: 2
Joined: Mon Sep 27, 2021 4:00 pm

Can't seem to build Ogre dependencies

Post by DFDark »

Ogre Version: 2.2
Operating System: Linux-Manjaro

I've been trying to build ogre-next dependencies and followed https://ogrecave.github.io/ogre-next/ap ... linux.html. But then using make the build fails on:

Code: Select all

[  2%] Building CXX object src/FreeImage/CMakeFiles/FreeImage.dir/Source/FreeImage/PluginEXR.cpp.o
In file included from /home/dfdark/Desktop/caspar/ogre-next-deps/src/FreeImage/Source/OpenEXR/IlmImf/ImfHeader.h:51,
                 from /home/dfdark/Desktop/caspar/ogre-next-deps/src/FreeImage/Source/FreeImage/../OpenEXR/IlmImf/ImfOutputFile.h:46,
                 from /home/dfdark/Desktop/caspar/ogre-next-deps/src/FreeImage/Source/FreeImage/PluginEXR.cpp:27:
/home/dfdark/Desktop/caspar/ogre-next-deps/src/FreeImage/Source/OpenEXR/Imath/ImathVec.h:227:41: error: ISO C++17 does not allow dynamic exception specifications
  227 |     const Vec2 &        normalizeExc () throw (Iex::MathExc);
Does anyone know what should I do to build it or encountered similar issue?
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5296
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1278
Contact:

Re: Can't seem to build Ogre dependencies

Post by dark_sylinc »

Hi!

What's the output of...?

Code: Select all

g++ --version
clang++ --version
As a workaround, forcing an older C++ std version should work, i.e. I think this should work:

Code: Select all

cmake ../ -DCMAKE_CXX_STANDARD=11
14 should also work.
DFDark
Gnoblar
Posts: 2
Joined: Mon Sep 27, 2021 4:00 pm

Re: Can't seem to build Ogre dependencies

Post by DFDark »

The outputs are:

Code: Select all

[dfdark@dfdark-pc build]$ g++ --version
g++ (GCC) 11.1.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[dfdark@dfdark-pc build]$ clang --version
clang version 12.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
[dfdark@dfdark-pc build]$ 
Changing the build flags for cmake did the trick.
Post Reply