2.3 build issue on OpenSUSE Tumbleweed.
Posted: Thu Oct 15, 2020 3:01 am
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:
to:
This way it includes <linux/sysctl.h> instead
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
Code: Select all
#if OGRE_PLATFORM == OGRE_PLATFORM_ANDROID || OGRE_PLATFORM == OGRE_PLATFORM_LINUX
This way it includes <linux/sysctl.h> instead