Cannot build RenderSystems/GLES2 for Android (Ogre-Next)

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


Unick
Gnoblar
Posts: 14
Joined: Wed Jan 22, 2014 4:48 pm

Cannot build RenderSystems/GLES2 for Android (Ogre-Next)

Post by Unick »

Hello.
I tried to compile Ogre-Next v2-2 branch for Android. I used this instructions: https://ogrecave.github.io/ogre-next/ap ... droid.html

I have some errors with not found headers (For example: OgreRenderWindow.h) I found these headers in Deprecated directory. Should I include these files from Deprecated directory? I enabled OGRE_CONFIG_ENABLE_GLES3_SUPPORT.

Code: Select all

In file included from /Users/user/work/ogre-next/RenderSystems/GLES2/src/OgreGLES2FBOMultiRenderTarget.cpp:29:
In file included from /Users/user/work/ogre-next/RenderSystems/GLES2/include/OgreGLES2FBOMultiRenderTarget.h:32:
In file included from /Users/user/work/ogre-next/RenderSystems/GLES2/include/OgreGLES2FrameBufferObject.h:31:
In file included from /Users/user/work/ogre-next/RenderSystems/GLES2/include/OgreGLES2RenderTexture.h:32:
In file included from /Users/user/work/ogre-next/RenderSystems/GLES2/include/OgreGLES2Texture.h:33:
/Users/user/work/ogre-next/RenderSystems/GLES2/include/OgreGLES2Support.h:33:10: fatal error: 'OgreRenderWindow.h' file not found
#include "OgreRenderWindow.h"
         ^~~~~~~~~~~~~~~~~~~~
In file included from /Users/user/work/ogre-next/RenderSystems/GLES2/src/OgreGLES2FBORenderTexture.cpp:29:
In file included from /Users/user/work/ogre-next/RenderSystems/GLES2/include/OgreGLES2FBORenderTexture.h:31:
In file included from /Users/user/work/ogre-next/RenderSystems/GLES2/include/OgreGLES2RenderTexture.h:32:
In file included from /Users/user/work/ogre-next/RenderSystems/GLES2/include/OgreGLES2Texture.h:33:
/Users/user/work/ogre-next/RenderSystems/GLES2/include/OgreGLES2Support.h:33:10: fatal error: 'OgreRenderWindow.h' file not found
#include "OgreRenderWindow.h"
         ^~~~~~~~~~~~~~~~~~~~
In file included from /Users/user/work/ogre-next/RenderSystems/GLES2/src/OgreGLES2FrameBufferObject.cpp:29:
In file included from /Users/user/work/ogre-next/RenderSystems/GLES2/include/OgreGLES2FrameBufferObject.h:31:
In file included from /Users/user/work/ogre-next/RenderSystems/GLES2/include/OgreGLES2RenderTexture.h:32:
In file included from /Users/user/work/ogre-next/RenderSystems/GLES2/include/OgreGLES2Texture.h:33:
/Users/user/work/ogre-next/RenderSystems/GLES2/include/OgreGLES2Support.h:33:10: fatal error: 'OgreRenderWindow.h' file not found
#include "OgreRenderWindow.h"
         ^~~~~~~~~~~~~~~~~~~~
In file included from /Users/user/work/ogre-next/RenderSystems/GLES2/src/OgreGLES2DepthTexture.cpp:29:
In file included from /Users/user/work/ogre-next/RenderSystems/GLES2/include/OgreGLES2DepthTexture.h:32:
In file included from /Users/user/work/ogre-next/RenderSystems/GLES2/include/OgreGLES2Texture.h:33:
/Users/user/work/ogre-next/RenderSystems/GLES2/include/OgreGLES2Support.h:33:10: fatal error: 'OgreRenderWindow.h' file not found
#include "OgreRenderWindow.h"
         ^~~~~~~~~~~~~~~~~~~~
1 error generated.
In file included from /Users/user/work/ogre-next/RenderSystems/GLES2/src/OgreGLES2DepthBuffer.cpp:28:
/Users/user/work/ogre-next/RenderSystems/GLES2/include/OgreGLES2DepthBuffer.h:59:27: error: unknown type name 'PixelFormat'; did you mean 'PixelFormatGpu'?
                          PixelFormat pixelFormat, bool isDepthTexture, bool isManual );
                          ^~~~~~~~~~~
                          PixelFormatGpu
/Users/user/work/ogre-next/OgreMain/include/OgrePixelFormatGpu.h:44:10: note: 'PixelFormatGpu' declared here
    enum PixelFormatGpu
         ^
1 error generated.
1 error generated.
In file included from /Users/user/work/ogre-next/RenderSystems/GLES2/src/OgreGLES2DepthBuffer.cpp:28:
/Users/user/work/ogre-next/RenderSystems/GLES2/include/OgreGLES2DepthBuffer.h:63:36: error: unknown type name 'RenderTarget'; did you mean 'Renderable'?
        virtual bool isCompatible( RenderTarget *renderTarget, bool exactFormatMatch ) const;
                                   ^~~~~~~~~~~~
                                   Renderable
/Users/user/work/ogre-next/OgreMain/include/OgrePrerequisites.h:296:11: note: 'Renderable' declared here
    class Renderable;
          ^
1 error generated.
In file included from /Users/user/work/ogre-next/RenderSystems/GLES2/src/OgreGLES2DepthBuffer.cpp:29:
/Users/user/work/ogre-next/RenderSystems/GLES2/include/OgreGLES2HardwarePixelBuffer.h:33:10: make[2]: fatal error: 'OgreHardwarePixelBuffer.h' *** [RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir/src/OgreGLES2FBOMultiRenderTarget.cpp.o] Error 1file not found

#include "OgreHardwarePixelBuffer.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** Waiting for unfinished jobs....
3 errors generated.
make[2]: *** [RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir/src/OgreGLES2FrameBufferObject.cpp.o] Error 1
make[2]: *** [RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir/src/OgreGLES2DepthTexture.cpp.o] Error 1
make[2]: *** [RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir/src/OgreGLES2FBORenderTexture.cpp.o] Error 1
make[2]: *** [RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir/src/OgreGLES2DepthBuffer.cpp.o] Error 1
[ 84%] Built target OgreOverlay
In file included from /Users/user/work/ogre-next/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:29:
/Users/user/work/ogre-next/RenderSystems/GLES2/include/OgreGLES2DefaultHardwareBufferManager.h:37:10: fatal error: 'OgreRenderToVertexBuffer.h' file not found
#include "OgreRenderToVertexBuffer.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
In file included from /Users/user/work/ogre-next/RenderSystems/GLES2/src/OgreGLES2HardwareBufferManager.cpp:29:
/Users/user/work/ogre-next/RenderSystems/GLES2/include/OgreGLES2HardwareBufferManager.h:53:13: error: unknown type name 'RenderToVertexBufferSharedPtr'; did you mean 'HardwareVertexBufferSharedPtr'?
            RenderToVertexBufferSharedPtr createRenderToVertexBuffer();
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            HardwareVertexBufferSharedPtr
/Users/user/work/ogre-next/OgreMain/include/OgreHardwareVertexBuffer.h:92:23: note: 'HardwareVertexBufferSharedPtr' declared here
    class _OgreExport HardwareVertexBufferSharedPtr : public SharedPtr<HardwareVertexBuffer>
                      ^
In file included from /Users/user/work/ogre-next/RenderSystems/GLES2/src/OgreGLES2HardwareBufferManager.cpp:34:
/Users/user/work/ogre-next/RenderSystems/GLES2/include/OgreGLES2RenderToVertexBuffer.h:31:10: fatal error: 'OgreRenderToVertexBuffer.h' file not found
#include "OgreRenderToVertexBuffer.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir/src/OgreGLES2DefaultHardwareBufferManager.cpp.o] Error 1
2 errors generated.
make[2]: *** [RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir/src/OgreGLES2HardwareBufferManager.cpp.o] Error 1
In file included from /Users/user/work/ogre-next/RenderSystems/GLES2/src/OgreGLES2EngineDll.cpp:30:
In file included from /Users/user/work/ogre-next/RenderSystems/GLES2/include/OgreGLES2Plugin.h:33:
In file included from /Users/user/work/ogre-next/RenderSystems/GLES2/include/OgreGLES2RenderSystem.h:37:
/Users/user/work/ogre-next/RenderSystems/GLES2/include/OgreGLES2PixelFormatToShaderType.h:33:10: fatal error: 'OgrePixelFormat.h' file not found
#include "OgrePixelFormat.h"
         ^~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir/src/OgreGLES2EngineDll.cpp.o] Error 1
make[1]: *** [RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5436
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1343

Re: Cannot build RenderSystems/GLES2 for Android (Ogre-Next)

Post by dark_sylinc »

GLES2 is not working. It may be picked up in the future.

To target Android you'll need to use Vulkan (2.3 branch, currently living in master)

Cheers
Matias