I've tried changing #include <cpu-features.h> to #include <machine/cpu-features.h> and that leads to another set of issues.
Currently trying to build version 1.9
If I change to #include <machine/cpu-features.h> in OgrePlatformInformation.cpp:
Code: Select all
/home/simon/Downloads/ogre/OgreMain/src/OgrePlatformInformation.cpp: In function 'Ogre::uint Ogre::_detectCpuFeatures()':
/home/simon/Downloads/ogre/OgreMain/src/OgrePlatformInformation.cpp:482:55: error: 'android_getCpuFeatures' was not declared in this scope
uint64_t cpufeatures = android_getCpuFeatures();
^
/home/simon/Downloads/ogre/OgreMain/src/OgrePlatformInformation.cpp:484:27: error: 'ANDROID_CPU_ARM_FEATURE_NEON' was not declared in this scope
if (cpufeatures & ANDROID_CPU_ARM_FEATURE_NEON)
^
/home/simon/Downloads/ogre/OgreMain/src/OgrePlatformInformation.cpp:489:27: error: 'ANDROID_CPU_ARM_FEATURE_VFPv3' was not declared in this scope
if (cpufeatures & ANDROID_CPU_ARM_FEATURE_VFPv3)
^
/home/simon/Downloads/ogre/OgreMain/src/OgrePlatformInformation.cpp: In function 'Ogre::String Ogre::_detectCpuIdentifier()':
/home/simon/Downloads/ogre/OgreMain/src/OgrePlatformInformation.cpp:499:9: error: 'AndroidCpuFamily' was not declared in this scope
AndroidCpuFamily cpuInfo = android_getCpuFamily();
^
/home/simon/Downloads/ogre/OgreMain/src/OgrePlatformInformation.cpp:501:17: error: 'cpuInfo' was not declared in this scope
switch (cpuInfo) {
^
/home/simon/Downloads/ogre/OgreMain/src/OgrePlatformInformation.cpp:502:18: error: 'ANDROID_CPU_FAMILY_ARM' was not declared in this scope
case ANDROID_CPU_FAMILY_ARM:
^
/home/simon/Downloads/ogre/OgreMain/src/OgrePlatformInformation.cpp:504:44: error: 'android_getCpuFeatures' was not declared in this scope
if (android_getCpuFeatures() & ANDROID_CPU_ARM_FEATURE_ARMv7)
^
/home/simon/Downloads/ogre/OgreMain/src/OgrePlatformInformation.cpp:504:48: error: 'ANDROID_CPU_ARM_FEATURE_ARMv7' was not declared in this scope
if (android_getCpuFeatures() & ANDROID_CPU_ARM_FEATURE_ARMv7)
^
/home/simon/Downloads/ogre/OgreMain/src/OgrePlatformInformation.cpp:514:18: error: 'ANDROID_CPU_FAMILY_X86' was not declared in this scope
case ANDROID_CPU_FAMILY_X86:
^
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgrePlatformInformation.cpp.o] Error 1
make[1]: *** [OgreMain/CMakeFiles/OgreMain.dir/all] Error 2
make: *** [all] Error 2