Errors during Build for Linux Topic is solved

Problems building or running the engine, queries about how to use features etc.
Zoromoth
Gnoblar
Posts: 2
Joined: Sun Feb 16, 2025 6:46 pm

Errors during Build for Linux

Post by Zoromoth »

Ogre Version: :ogre-next:
Operating System: :Linux:
Render System: :Default:

I am following the following link to build the ogre package for linux

https://ogrecave.github.io/ogre-next/ap ... linux.html

However, it is showing the following error during make (Debug)

Code: Select all

/home/zoromoth/Documents/OGRE/ogre-next/OgreMain/src/OgreHlmsManager.cpp: In member function ‘void Ogre::HlmsManager::loadBlueNoise()’:
/home/zoromoth/Documents/OGRE/ogre-next/OgreMain/src/OgreHlmsManager.cpp:976:57: error: incomplete type ‘Ogre::ResourceGroupManager’ used in nested name specifier
  976 |             TextureTypes::Type2D, ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME,
      |                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [OgreMain/CMakeFiles/OgreNextMain.dir/build.make:1042: OgreMain/CMakeFiles/OgreNextMain.dir/src/OgreHlmsManager.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1538: OgreMain/CMakeFiles/OgreNextMain.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

I am new to ogre, any help will be much appreciated

Thanks & Regards,
Zoromoth

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

Re: Errors during Build for Linux

Post by dark_sylinc »

Fixed this particular bug.

However it looks like it didn't pick up the ogre-next-deps dependencies correctly as it was trying to build without JSON support. While this is supported, it's not recommended as many features will be left out.

Double check you're following the steps correctly so that RapidJSON is picked up from ogre-next-deps; or simply use the Quick Build Scripts.

If done correctly your CMake config options should look like this:

Zoromoth
Gnoblar
Posts: 2
Joined: Sun Feb 16, 2025 6:46 pm

Re: Errors during Build for Linux

Post by Zoromoth »

Thank you so much. Worked perfectly well