GLfloat does not name a type

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
Post Reply
HoneyBunchesOfOats
Gnoblar
Posts: 9
Joined: Thu Mar 25, 2010 9:04 am

GLfloat does not name a type

Post by HoneyBunchesOfOats »

Hello,

I've been getting these errors with ogre when i'm trying to compile an ogre application on android as a native app:

Description Resource Path Location Type
'GLenum' does not name a type TDCoreAndroid line 107, external location: F:\AndroidTest\Ogre-src-1.9\RenderSystems\GL\include\OgreGLHardwareBufferManager.h C/C++ Problem
'GLenum' does not name a type TDCoreAndroid line 103, external location: F:\AndroidTest\Ogre-src-1.9\RenderSystems\GL\include\OgreGLHardwareBufferManager.h C/C++ Problem
'GLuint' does not name a type TDCoreAndroid line 120, external location: F:\AndroidTest\Ogre-src-1.9\RenderSystems\GL\include\OgreGLRenderSystem.h C/C++ Problem
'GLfloat' does not name a type TDCoreAndroid line 109, external location: F:\AndroidTest\Ogre-src-1.9\RenderSystems\GL\include\OgreGLRenderSystem.h C/C++ Problem
'GLenum' has not been declared TDCoreAndroid line 106, external location: F:\AndroidTest\Ogre-src-1.9\RenderSystems\GL\include\OgreGLRenderSystem.h C/C++ Problem
'GLfloat' does not name a type TDCoreAndroid line 100, external location: F:\AndroidTest\Ogre-src-1.9\RenderSystems\GL\include\OgreGLRenderSystem.h C/C++ Problem

I'm using eclipse cdt and created an android project using the android gcc as my compiler. I've added native support to the project as well. I've included my android.mk file below.
If anyone could help me with this it would be greatly appreciated! thanks :)

Code: Select all

LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := myOgreMain
LOCAL_SRC_FILES := /prebuild/libOgreMainStatic.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE := freeimage
LOCAL_SRC_FILES := /prebuild/armeabi/libFreeImage.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE := zzip
LOCAL_SRC_FILES := /prebuild/armeabi/libzzip.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE := freetype
LOCAL_SRC_FILES := /prebuild/armeabi/libfreetype.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE := gles2
LOCAL_SRC_FILES := /prebuild/libRenderSystem_GLES2Static.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE    := Game
LOCAL_SRC_FILES := Game.cpp
LOCAL_CFLAGS    := -Werror -fexceptions -frtti
LOCAL_C_INCLUDES += F:\Users\Core\AppData\Local\Android\android-ndk-r8c\sources\android\native_app_glue
LOCAL_C_INCLUDES += F:\Users\Core\AppData\Local\Android\android-ndk-r8c\ndk\platforms\android-14\arch-arm\usr\include
LOCAL_C_INCLUDES += F:\AndroidTest\Ogre-src-1.9\OgreMain\include
LOCAL_C_INCLUDES += F:\AndroidTest\Ogre-src-1.9\Samples\Common\include
LOCAL_C_INCLUDES += F:\AndroidTest\Ogre-src-1.9\Build\include
LOCAL_C_INCLUDES += F:\AndroidTest\Ogre-src-1.9\RenderSystems\GLES2\include
LOCAL_C_INCLUDES += F:\AndroidTest\Ogre-src-1.9\RenderSystems\GLES2\include\EGL
LOCAL_C_INCLUDES += F:\AndroidTest\Ogre-src-1.9\AndroidDependencies\include\ois
LOCAL_C_INCLUDES += F:\AndroidTest\Ogre-src-1.9\PlugIns\OctreeSceneManager\include
LOCAL_C_INCLUDES +=	F:\AndroidTest\Ogre-src-1.9\PlugIns\ParticleFX\include
LOCAL_C_INCLUDES +=	F:\AndroidTest\Ogre-src-1.9\RenderSystems\GL\include
LOCAL_C_INCLUDES += F:\workspace\boost_1_51_0\
LOCAL_C_INCLUDES += F:\workspace\boost_1_51_0\boost
LOCAL_C_INCLUDES += F:\AndroidTest\Ogre-src-1.9\Components\Overlay\include
LOCAL_C_INCLUDES += F:\Users\Core\AppData\Local\Android\android-ndk-r8c\sources\cxx-stl\gnu-libstdc++\4.6\libs\armeabi\include
LOCAL_C_INCLUDES += F:\Users\Core\AppData\Local\Android\android-ndk-r8c\sources\cxx-stl\gnu-libstdc++\4.6\include
LOCAL_STATIC_LIBRARIES += myOgreMain gles2 freeimage freetype zzip cpufeatures 
LOCAL_LDFLAGS := -llog -lz
include $(BUILD_SHARED_LIBRARY)

$(call import-module,android/cpufeatures)
Post Reply