2.3 build issue on OpenSUSE Tumbleweed.

Discussion area about developing with Ogre-Next (2.1, 2.2 and beyond)


libolt
Greenskin
Posts: 126
Joined: Wed Jan 19, 2005 4:48 am
x 9

2.3 build issue on OpenSUSE Tumbleweed.

Post 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