Probem building ogre-next 2.3 with script

Problems building or running the engine, queries about how to use features etc.
SkilleR666
Gnoblar
Posts: 14
Joined: Thu Oct 07, 2010 11:37 pm

Probem building ogre-next 2.3 with script

Post by SkilleR666 »

Ogre Version: ogre-next 2.3
Operating System: debian sid

Hi,

When trying to build ogre-next 2.3 with build_ogre_linux_c++latest.sh, it failed when building dependencies at end with the error :
ninja: build stopped: subcommand failed.

I saw in red during compilation :
[397/597] Building CXX object src/FreeImage/CMakeFiles/FreeImage.dir/Source/OpenEXR/OpenEXR/ImfDeepTiledInputPart.cpp.o
FAILED: src/FreeImage/CMakeFiles/FreeImage.dir/Source/OpenEXR/OpenEXR/ImfDeepTiledInputPart.cpp.o

Code: Select all

In file included from /home/unknown/Dev/build_ogre_scripts-v2-3/Ogre/ogre-next-deps/src/FreeImage/Source/OpenEXR/OpenEXR/ImfDeepTiledInputPart.cpp:6:
/home/unknown/Dev/build_ogre_scripts-v2-3/Ogre/ogre-next-deps/src/FreeImage/Source/OpenEXR/OpenEXR/ImfDeepTiledInputPart.h:314:36: error: ‘uint64_t’ has not been declared
  314 |                                    uint64_t &dataSize
      |                                    ^~~~~~~~
In file included from /home/unknown/Dev/build_ogre_scripts-v2-3/Ogre/ogre-next-deps/src/FreeImage/Source/OpenEXR/OpenEXR/ImfDeepTiledInputPart.cpp:9:
/home/unknown/Dev/build_ogre_scripts-v2-3/Ogre/ogre-next-deps/src/FreeImage/Source/OpenEXR/OpenEXR/ImfDeepTiledInputFile.h:358:38: error: ‘uint64_t’ has not been declared
  358 |                                      uint64_t &dataSize) const;
      |                                      ^~~~~~~~
/home/unknown/Dev/build_ogre_scripts-v2-3/Ogre/ogre-next-deps/src/FreeImage/Source/OpenEXR/OpenEXR/ImfDeepTiledInputPart.cpp:207:34: error: ‘uint64_t’ has not been declared
  207 |                                  uint64_t & dataSize) const

Is this the source of the problem ?

Thanks by advance

Edit:
Well i added #include <cstdint> to FreeImage/Source/OpenEXR/OpenEXR/ImfDeepTiledInputPart.h|ImfDeepTiledInputFile.h|ImfTiledMisc.h and everything compiled fine for the deps.

Just i needed to install libxcb-randr0-dev & libx11-xcb-dev or i also got a compilation error about vulkan when building ogre.

User avatar
Crystal Hammer
Gnome
Posts: 388
Joined: Sat Jun 23, 2007 5:16 pm
x 99

Re: Probem building ogre-next 2.3 with script

Post by Crystal Hammer »

Well strange, are you building on a 64 bit Debian? I think uint64_t would be undefined on 32 bit.
I just checked and it shows me uint64_t is defined here
/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h
like so:
typedef __uint64_t uint64_t;
seems to appear in here too:
/usr/include/x86_64-linux-gnu/bits/types.h
and in cstdint file,
namespace std is just using ::uint64_t;

SkilleR666
Gnoblar
Posts: 14
Joined: Thu Oct 07, 2010 11:37 pm

Re: Probem building ogre-next 2.3 with script

Post by SkilleR666 »

Hi,

Yeah i was building on 64 bits :/