Page 1 of 1

2.3 build issue on OpenSUSE Tumbleweed.

Posted: Thu Oct 15, 2020 3:01 am
by libolt
So I decided to build the latest git of 2.3 and ran into a build issue on my system. It failed due to OgreMain/src/OgrePlatformInformation.cpp
trying to include <sys/sysctl.h> which my system does not have.

I fixed it by changing line 44 from:

Code: Select all

    #if OGRE_PLATFORM == OGRE_PLATFORM_ANDROID
to:

Code: Select all

    #if OGRE_PLATFORM == OGRE_PLATFORM_ANDROID || OGRE_PLATFORM == OGRE_PLATFORM_LINUX


This way it includes <linux/sysctl.h> instead