Arch Linux: ogre-git doesn't build

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
Post Reply
Bradan
Gnoblar
Posts: 3
Joined: Fri Aug 05, 2011 9:20 am

Arch Linux: ogre-git doesn't build

Post by Bradan » Mon Nov 07, 2016 11:38 am

Hello,

I've tried to build the latest ogre-git package and I cannot get it to build:
/tmp/yaourt-tmp/aur-ogre-git/src/ogre/OgreMain/include/Threading/OgreDefaultWorkQueueStandard.h:74:24: Fehler: »OGRE_THREAD_TYPE« wurde in diesem Gültigkeitsbereich nicht definiert
typedef vector<OGRE_THREAD_TYPE*>::type WorkerThreadList;
^~~~~~~~~~~~~~~~
/tmp/yaourt-tmp/aur-ogre-git/src/ogre/OgreMain/include/Threading/OgreDefaultWorkQueueStandard.h:74:41: Fehler: Templateargument 1 ist ungültig
typedef vector<OGRE_THREAD_TYPE*>::type WorkerThreadList;
^
/tmp/yaourt-tmp/aur-ogre-git/src/ogre/OgreMain/include/Threading/OgreDefaultWorkQueueStandard.h:74:41: Fehler: Templateargument 2 ist ungültig
/tmp/yaourt-tmp/aur-ogre-git/src/ogre/OgreMain/include/Threading/OgreDefaultWorkQueueStandard.h:74:44: Fehler: typedef-Name darf kein Spezifizierer mit geschachteltem Namen sein
typedef vector<OGRE_THREAD_TYPE*>::type WorkerThreadList;
^~~~
/tmp/yaourt-tmp/aur-ogre-git/src/ogre/OgreMain/include/Threading/OgreDefaultWorkQueueStandard.h:74:44: Fehler: »;« am Ende von Elementdeklaration erwartet
/tmp/yaourt-tmp/aur-ogre-git/src/ogre/OgreMain/include/Threading/OgreDefaultWorkQueueStandard.h:74:49: Fehler: »WorkerThreadList« bezeichnet keinen Typ
typedef vector<OGRE_THREAD_TYPE*>::type WorkerThreadList;
^~~~~~~~~~~~~~~~
/tmp/yaourt-tmp/aur-ogre-git/src/ogre/OgreMain/include/Threading/OgreDefaultWorkQueueStandard.h:75:9: Fehler: »WorkerThreadList« bezeichnet keinen Typ
WorkerThreadList mWorkers;
^~~~~~~~~~~~~~~~
/tmp/yaourt-tmp/aur-ogre-git/src/ogre/OgreMain/src/OgreRoot.cpp: In Konstruktor »Ogre::Root::Root(const String&, const String&, const String&)«:
/tmp/yaourt-tmp/aur-ogre-git/src/ogre/OgreMain/src/OgreRoot.cpp:178:32: Fehler: »OGRE_THREAD_HARDWARE_CONCURRENCY« wurde in diesem Gültigkeitsbereich nicht definiert
unsigned threadCount = OGRE_THREAD_HARDWARE_CONCURRENCY;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/build.make:3639: OgreMain/CMakeFiles/OgreMain.dir/src/OgreRoot.cpp.o] Fehler 1
The main error is probably OGRE_THREAD_TYPE wasn't declared before. However on bitbucket it says that it is able to build?! The last time I tried it it was about 11th of november and it worked.

Kind regards
0 x

User avatar
TheOnlyJoey
Halfling
Posts: 53
Joined: Sun Apr 10, 2011 12:05 pm
Location: The Netherlands
Contact:

Re: Arch Linux: ogre-git doesn't build

Post by TheOnlyJoey » Mon Nov 07, 2016 5:56 pm

Ogre is not on Git but on Mercurial: https://bitbucket.org/sinbad/ogre

Any forks are not officially supported, you probably want to use the bitbucket repository.
0 x

alabd14313
Gnoblar
Posts: 5
Joined: Mon Jan 23, 2017 5:32 pm

Re: Arch Linux: ogre-git doesn't build

Post by alabd14313 » Mon Jan 23, 2017 5:37 pm

Hello !
I have this error for 2.1 branch (in bitbucket) too.
I use Arch Linux too.
Please help us for this problem.
0 x

User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 3698
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 120
Contact:

Re: Arch Linux: ogre-git doesn't build

Post by dark_sylinc » Mon Jan 23, 2017 8:04 pm

I suggest you set in CMake OGRE_CONFIG_THREADS to 0, and OGRE_CONFIG_THREAD_PROVIDER to "none" (no quotes)
0 x

alabd14313
Gnoblar
Posts: 5
Joined: Mon Jan 23, 2017 5:32 pm

Re: Arch Linux: ogre-git doesn't build

Post by alabd14313 » Tue Jan 24, 2017 10:36 am

I used OGRE_CONFIG_THREADS=0 and I have another errors:

Code: Select all

[ 39%] Building CXX object RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir/src/OgreGLES2DefaultHardwareBufferManager.cpp.o                                                
In file included from /home/alabd/bin/ogre-git/src/ogre/OgreMain/include/OgreLog.h:33:0,
                 from /home/alabd/bin/ogre-git/src/ogre/OgreMain/include/OgreLogManager.h:34,
                 from /home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/include/OgreGLES2Prerequisites.h:33,
                 from /home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/include/OgreGLES2DefaultHardwareBufferManager.h:32,
                 from /home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:29:
/home/alabd/bin/ogre-git/src/ogre/OgreMain/include/OgreCommon.h: In constructor ‘Ogre::StencilParams::StencilParams()’:
/home/alabd/bin/ogre-git/src/ogre/OgreMain/include/OgreCommon.h:159:25: warning: ‘Ogre::StencilParams::padding’ will be initialized after [-Wreorder]
         uint8           padding;
                         ^~~~~~~
/home/alabd/bin/ogre-git/src/ogre/OgreMain/include/OgreCommon.h:157:25: warning:   ‘Ogre::uint8 Ogre::StencilParams::readMask’ [-Wreorder]
         uint8           readMask;
                         ^~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/OgreMain/include/OgreCommon.h:163:9: warning:   when initialized here [-Wreorder]
         StencilParams() :
         ^~~~~~~~~~~~~
In file included from /home/alabd/bin/ogre-git/src/ogre/OgreMain/include/OgreHlmsCommon.h:35:0,
                 from /home/alabd/bin/ogre-git/src/ogre/OgreMain/include/OgreHlmsManager.h:31,
                 from /home/alabd/bin/ogre-git/src/ogre/OgreMain/include/OgreHardwareBufferManager.h:39,
                 from /home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/include/OgreGLES2DefaultHardwareBufferManager.h:33,
                 from /home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:29:
/home/alabd/bin/ogre-git/src/ogre/OgreMain/include/OgreHlmsPso.h: In member function ‘bool Ogre::HlmsPso::equalExcludePassData(const Ogre::HlmsPso&) const’:
/home/alabd/bin/ogre-git/src/ogre/OgreMain/include/OgreHlmsPso.h:232:36: warning: cast from type ‘const Ogre::OperationType*’ to type ‘Ogre::uint8* {aka unsigned char*}’ casts away qualifiers [-Wcast-qual]
                     (uint8*)&this->operationType -
                                    ^~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/OgreMain/include/OgreHlmsPso.h:233:36: warning: cast from type ‘const uint32* {aka const unsigned int*}’ to type ‘Ogre::uint8* {aka unsigned char*}’ casts away qualifiers [-Wcast-qual]
                     (uint8*)&this->sampleMask ) == 0;
                                    ^~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/OgreMain/include/OgreHlmsPso.h: In member function ‘bool Ogre::HlmsPso::lessThanExcludePassData(const Ogre::HlmsPso&) const’:
/home/alabd/bin/ogre-git/src/ogre/OgreMain/include/OgreHlmsPso.h:245:43: warning: cast from type ‘const Ogre::OperationType*’ to type ‘Ogre::uint8* {aka unsigned char*}’ casts away qualifiers [-Wcast-qual]
                            (uint8*)&this->operationType -
                                           ^~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/OgreMain/include/OgreHlmsPso.h:246:43: warning: cast from type ‘const uint32* {aka const unsigned int*}’ to type ‘Ogre::uint8* {aka unsigned char*}’ casts away qualifiers [-Wcast-qual]
                            (uint8*)&this->sampleMask ) < 0;
                                           ^~~~~~~~~~
In file included from /home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:31:0:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/include/OgreGLES2RenderSystem.h: At global scope:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/include/OgreGLES2RenderSystem.h:134:62: error: ‘Ogre::TextureUnitState::TextureAddressingMode’ has not been declared
             GLint getTextureAddressingMode(TextureUnitState::TextureAddressingMode tam) const;
                                                              ^~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/include/OgreGLES2RenderSystem.h:291:82: error: ‘UVWAddressingMode’ in ‘class Ogre::TextureUnitState’ does not name a type
        void _setTextureAddressingMode(size_t stage, const TextureUnitState::UVWAddressingMode& uvw);
                                                                             ^~~~~~~~~~~~~~~~~
In file included from /home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/include/EGL/X11/OgreX11EGLSupport.h:34:0,
                 from /home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/include/EGL/X11/OgreGLES2Util.h:32,
                 from /home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:32:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/include/EGL/OgreEGLSupport.h:82:46: error: ‘String’ in namespace ‘Ogre::Ogre’ does not name a type
             void* getProcAddress(const Ogre::String& name);
                                              ^~~~~~
In file included from /home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:32:0:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/include/EGL/X11/OgreGLES2Util.h: In function ‘Ogre::Ogre::GLES2Support* Ogre::Ogre::getGLSupport()’:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/include/EGL/X11/OgreGLES2Util.h:37:34: error: invalid new-expression of abstract class type ‘Ogre::Ogre::X11EGLSupport’
         return new X11EGLSupport();
                                  ^
In file included from /home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/include/EGL/X11/OgreGLES2Util.h:32:0,
                 from /home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:32:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/include/EGL/X11/OgreX11EGLSupport.h:140:24: note:   because the following virtual functions are pure within ‘Ogre::Ogre::X11EGLSupport’:
     class _OgrePrivate X11EGLSupport : public EGLSupport
                        ^~~~~~~~~~~~~
In file included from /home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/include/EGL/OgreEGLSupport.h:34:0,
                 from /home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/include/EGL/X11/OgreX11EGLSupport.h:34,
                 from /home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/include/EGL/X11/OgreGLES2Util.h:32,
                 from /home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:32:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/include/OgreGLES2Support.h:122:27: note:      virtual void* Ogre::Ogre::GLES2Support::getProcAddress(const String&)
             virtual void *getProcAddress(const String& procname) = 0;
                           ^~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: At global scope:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:36:5: error: ‘GLES2DefaultHardwareVertexBuffer’ does not name a type
     GLES2DefaultHardwareVertexBuffer::GLES2DefaultHardwareVertexBuffer(size_t vertexSize,
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:44:5: error: ‘GLES2DefaultHardwareVertexBuffer’ does not name a type
     GLES2DefaultHardwareVertexBuffer::GLES2DefaultHardwareVertexBuffer(HardwareBufferManagerBase* mgr,
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:53:5: error: ‘GLES2DefaultHardwareVertexBuffer’ does not name a type
     GLES2DefaultHardwareVertexBuffer::~GLES2DefaultHardwareVertexBuffer()
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:58:11: error: ‘GLES2DefaultHardwareVertexBuffer’ has not been declared
     void* GLES2DefaultHardwareVertexBuffer::lockImpl(size_t offset,
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:60:51: error: ‘LockOptions’ has not been declared
                                                   LockOptions options)
                                                   ^~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: In function ‘void* Ogre::Ogre::v1::lockImpl(size_t, size_t, int)’:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:62:16: error: ‘mData’ was not declared in this scope
         return mData + offset;
                ^~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: At global scope:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:65:10: error: ‘GLES2DefaultHardwareVertexBuffer’ has not been declared
     void GLES2DefaultHardwareVertexBuffer::unlockImpl(void)
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:70:11: error: ‘GLES2DefaultHardwareVertexBuffer’ has not been declared
     void* GLES2DefaultHardwareVertexBuffer::lock(size_t offset, size_t length, LockOptions options, UploadOptions uploadOpt)
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:70:80: error: ‘LockOptions’ has not been declared
  void* GLES2DefaultHardwareVertexBuffer::lock(size_t offset, size_t length, LockOptions options, UploadOptions uploadOpt)
                                                                             ^~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:70:101: error: ‘UploadOptions’ has not been declared
 rdwareVertexBuffer::lock(size_t offset, size_t length, LockOptions options, UploadOptions uploadOpt)
                                                                             ^~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: In function ‘void* Ogre::Ogre::v1::lock(size_t, size_t, int, int)’:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:72:9: error: ‘mIsLocked’ was not declared in this scope
         mIsLocked = true;
         ^~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:73:16: error: ‘mData’ was not declared in this scope
         return mData + offset;
                ^~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: At global scope:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:76:10: error: ‘GLES2DefaultHardwareVertexBuffer’ has not been declared
     void GLES2DefaultHardwareVertexBuffer::unlock(void)
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: In function ‘void Ogre::Ogre::v1::unlock()’:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:78:9: error: ‘mIsLocked’ was not declared in this scope
         mIsLocked = false;
         ^~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: At global scope:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:82:10: error: ‘GLES2DefaultHardwareVertexBuffer’ has not been declared
     void GLES2DefaultHardwareVertexBuffer::readData(size_t offset,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: In function ‘void Ogre::Ogre::v1::readData(size_t, size_t, void*)’:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:87:23: error: ‘mData’ was not declared in this scope
         memcpy(pDest, mData + offset, length);
                       ^~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: At global scope:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:90:10: error: ‘GLES2DefaultHardwareVertexBuffer’ has not been declared
     void GLES2DefaultHardwareVertexBuffer::writeData(size_t offset,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: In function ‘void Ogre::Ogre::v1::writeData(size_t, size_t, const void*, bool)’:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:97:16: error: ‘mData’ was not declared in this scope
         memcpy(mData + offset, pSource, length);
                ^~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: At global scope:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:100:5: error: ‘GLES2DefaultHardwareIndexBuffer’ does not name a type
     GLES2DefaultHardwareIndexBuffer::GLES2DefaultHardwareIndexBuffer(IndexType idxType,
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:118:5: error: ‘GLES2DefaultHardwareIndexBuffer’ does not name a type
     GLES2DefaultHardwareIndexBuffer::~GLES2DefaultHardwareIndexBuffer()
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:123:11: error: ‘GLES2DefaultHardwareIndexBuffer’ has not been declared
     void* GLES2DefaultHardwareIndexBuffer::lockImpl(size_t offset, size_t length, LockOptions options)
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:123:83: error: ‘LockOptions’ has not been declared
 id* GLES2DefaultHardwareIndexBuffer::lockImpl(size_t offset, size_t length, LockOptions options)
                                                                             ^~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: In function ‘void* Ogre::Ogre::v1::lockImpl(size_t, size_t, int)’:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:123:11: error: redefinition of ‘void* Ogre::Ogre::v1::lockImpl(size_t, size_t, int)’
     void* GLES2DefaultHardwareIndexBuffer::lockImpl(size_t offset, size_t length, LockOptions options)
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:58:11: note: ‘void* Ogre::Ogre::v1::lockImpl(size_t, size_t, int)’ previously defined here
     void* GLES2DefaultHardwareVertexBuffer::lockImpl(size_t offset,
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:126:16: error: ‘mData’ was not declared in this scope
         return mData + offset;
                ^~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: At global scope:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:129:10: error: ‘GLES2DefaultHardwareIndexBuffer’ has not been declared
     void GLES2DefaultHardwareIndexBuffer::unlockImpl(void)
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: In function ‘void Ogre::Ogre::v1::unlockImpl()’:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:129:10: error: redefinition of ‘void Ogre::Ogre::v1::unlockImpl()’
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:65:10: note: ‘void Ogre::Ogre::v1::unlockImpl()’ previously defined here
     void GLES2DefaultHardwareVertexBuffer::unlockImpl(void)
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: At global scope:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:134:11: error: ‘GLES2DefaultHardwareIndexBuffer’ has not been declared
     void* GLES2DefaultHardwareIndexBuffer::lock(size_t offset, size_t length, LockOptions options, UploadOptions uploadOpt)
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:134:79: error: ‘LockOptions’ has not been declared
   void* GLES2DefaultHardwareIndexBuffer::lock(size_t offset, size_t length, LockOptions options, UploadOptions uploadOpt)
                                                                             ^~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:134:100: error: ‘UploadOptions’ has not been declared
 ardwareIndexBuffer::lock(size_t offset, size_t length, LockOptions options, UploadOptions uploadOpt)
                                                                             ^~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: In function ‘void* Ogre::Ogre::v1::lock(size_t, size_t, int, int)’:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:134:11: error: redefinition of ‘void* Ogre::Ogre::v1::lock(size_t, size_t, int, int)’
     void* GLES2DefaultHardwareIndexBuffer::lock(size_t offset, size_t length, LockOptions options, UploadOptions uploadOpt)
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:70:11: note: ‘void* Ogre::Ogre::v1::lock(size_t, size_t, int, int)’ previously defined here
     void* GLES2DefaultHardwareVertexBuffer::lock(size_t offset, size_t length, LockOptions options, UploadOptions uploadOpt)
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:136:9: error: ‘mIsLocked’ was not declared in this scope
         mIsLocked = true;
         ^~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:137:16: error: ‘mData’ was not declared in this scope
         return mData + offset;
                ^~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: At global scope:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:140:10: error: ‘GLES2DefaultHardwareIndexBuffer’ has not been declared
     void GLES2DefaultHardwareIndexBuffer::unlock(void)
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: In function ‘void Ogre::Ogre::v1::unlock()’:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:140:10: error: redefinition of ‘void Ogre::Ogre::v1::unlock()’
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:76:10: note: ‘void Ogre::Ogre::v1::unlock()’ previously defined here
     void GLES2DefaultHardwareVertexBuffer::unlock(void)
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:142:9: error: ‘mIsLocked’ was not declared in this scope
         mIsLocked = false;
         ^~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: At global scope:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:146:10: error: ‘GLES2DefaultHardwareIndexBuffer’ has not been declared
     void GLES2DefaultHardwareIndexBuffer::readData(size_t offset, size_t length, void* pDest)
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: In function ‘void Ogre::Ogre::v1::readData(size_t, size_t, void*)’:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:146:10: error: redefinition of ‘void Ogre::Ogre::v1::readData(size_t, size_t, void*)’
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:82:10: note: ‘void Ogre::Ogre::v1::readData(size_t, size_t, void*)’ previously defined here
     void GLES2DefaultHardwareVertexBuffer::readData(size_t offset,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:149:23: error: ‘mData’ was not declared in this scope
         memcpy(pDest, mData + offset, length);
                       ^~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: At global scope:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:152:10: error: ‘GLES2DefaultHardwareIndexBuffer’ has not been declared
     void GLES2DefaultHardwareIndexBuffer::writeData(size_t offset, size_t length, const void* pSource,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: In function ‘void Ogre::Ogre::v1::writeData(size_t, size_t, const void*, bool)’:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:152:10: error: redefinition of ‘void Ogre::Ogre::v1::writeData(size_t, size_t, const void*, bool)’
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:90:10: note: ‘void Ogre::Ogre::v1::writeData(size_t, size_t, const void*, bool)’ previously defined here
     void GLES2DefaultHardwareVertexBuffer::writeData(size_t offset,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:157:16: error: ‘mData’ was not declared in this scope
         memcpy(mData + offset, pSource, length);
                ^~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: At global scope:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:160:5: error: ‘GLES2DefaultHardwareUniformBuffer’ does not name a type
     GLES2DefaultHardwareUniformBuffer::GLES2DefaultHardwareUniformBuffer(size_t bufferSize,
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:168:5: error: ‘GLES2DefaultHardwareUniformBuffer’ does not name a type
     GLES2DefaultHardwareUniformBuffer::GLES2DefaultHardwareUniformBuffer(HardwareBufferManagerBase* mgr,
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:177:5: error: ‘GLES2DefaultHardwareUniformBuffer’ does not name a type
     GLES2DefaultHardwareUniformBuffer::~GLES2DefaultHardwareUniformBuffer()
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:182:11: error: ‘GLES2DefaultHardwareUniformBuffer’ has not been declared
     void* GLES2DefaultHardwareUniformBuffer::lockImpl(size_t offset,
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:184:57: error: ‘LockOptions’ has not been declared
                                                         LockOptions options)
                                                         ^~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: In function ‘void* Ogre::Ogre::v1::lockImpl(size_t, size_t, int)’:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:182:11: error: redefinition of ‘void* Ogre::Ogre::v1::lockImpl(size_t, size_t, int)’
     void* GLES2DefaultHardwareUniformBuffer::lockImpl(size_t offset,
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:58:11: note: ‘void* Ogre::Ogre::v1::lockImpl(size_t, size_t, int)’ previously defined here
     void* GLES2DefaultHardwareVertexBuffer::lockImpl(size_t offset,
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:186:16: error: ‘mData’ was not declared in this scope
         return mData + offset;
                ^~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: At global scope:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:189:10: error: ‘GLES2DefaultHardwareUniformBuffer’ has not been declared
     void GLES2DefaultHardwareUniformBuffer::unlockImpl(void)
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: In function ‘void Ogre::Ogre::v1::unlockImpl()’:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:189:10: error: redefinition of ‘void Ogre::Ogre::v1::unlockImpl()’
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:65:10: note: ‘void Ogre::Ogre::v1::unlockImpl()’ previously defined here
     void GLES2DefaultHardwareVertexBuffer::unlockImpl(void)
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: At global scope:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:194:11: error: ‘GLES2DefaultHardwareUniformBuffer’ has not been declared
     void* GLES2DefaultHardwareUniformBuffer::lock(size_t offset, size_t length, LockOptions options, UploadOptions uploadOpt)
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:194:81: error: ‘LockOptions’ has not been declared
 void* GLES2DefaultHardwareUniformBuffer::lock(size_t offset, size_t length, LockOptions options, UploadOptions uploadOpt)
                                                                             ^~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:194:102: error: ‘UploadOptions’ has not been declared
 dwareUniformBuffer::lock(size_t offset, size_t length, LockOptions options, UploadOptions uploadOpt)
                                                                             ^~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: In function ‘void* Ogre::Ogre::v1::lock(size_t, size_t, int, int)’:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:194:11: error: redefinition of ‘void* Ogre::Ogre::v1::lock(size_t, size_t, int, int)’
     void* GLES2DefaultHardwareUniformBuffer::lock(size_t offset, size_t length, LockOptions options, UploadOptions uploadOpt)
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:70:11: note: ‘void* Ogre::Ogre::v1::lock(size_t, size_t, int, int)’ previously defined here
     void* GLES2DefaultHardwareVertexBuffer::lock(size_t offset, size_t length, LockOptions options, UploadOptions uploadOpt)
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:196:9: error: ‘mIsLocked’ was not declared in this scope
         mIsLocked = true;
         ^~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:197:16: error: ‘mData’ was not declared in this scope
         return mData + offset;
                ^~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: At global scope:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:200:10: error: ‘GLES2DefaultHardwareUniformBuffer’ has not been declared
     void GLES2DefaultHardwareUniformBuffer::unlock(void)
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: In function ‘void Ogre::Ogre::v1::unlock()’:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:200:10: error: redefinition of ‘void Ogre::Ogre::v1::unlock()’
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:76:10: note: ‘void Ogre::Ogre::v1::unlock()’ previously defined here
     void GLES2DefaultHardwareVertexBuffer::unlock(void)
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:202:9: error: ‘mIsLocked’ was not declared in this scope
         mIsLocked = false;
         ^~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: At global scope:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:206:10: error: ‘GLES2DefaultHardwareUniformBuffer’ has not been declared
     void GLES2DefaultHardwareUniformBuffer::readData(size_t offset,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: In function ‘void Ogre::Ogre::v1::readData(size_t, size_t, void*)’:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:206:10: error: redefinition of ‘void Ogre::Ogre::v1::readData(size_t, size_t, void*)’
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:82:10: note: ‘void Ogre::Ogre::v1::readData(size_t, size_t, void*)’ previously defined here
     void GLES2DefaultHardwareVertexBuffer::readData(size_t offset,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:211:23: error: ‘mData’ was not declared in this scope
         memcpy(pDest, mData + offset, length);
                       ^~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: At global scope:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:214:10: error: ‘GLES2DefaultHardwareUniformBuffer’ has not been declared
     void GLES2DefaultHardwareUniformBuffer::writeData(size_t offset,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: In function ‘void Ogre::Ogre::v1::writeData(size_t, size_t, const void*, bool)’:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:214:10: error: redefinition of ‘void Ogre::Ogre::v1::writeData(size_t, size_t, const void*, bool)’
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:90:10: note: ‘void Ogre::Ogre::v1::writeData(size_t, size_t, const void*, bool)’ previously defined here
     void GLES2DefaultHardwareVertexBuffer::writeData(size_t offset,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:221:16: error: ‘mData’ was not declared in this scope
         memcpy(mData + offset, pSource, length);
                ^~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp: At global scope:
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:224:5: error: ‘GLES2DefaultHardwareBufferManagerBase’ does not name a type
     GLES2DefaultHardwareBufferManagerBase::GLES2DefaultHardwareBufferManagerBase()
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:228:5: error: ‘GLES2DefaultHardwareBufferManagerBase’ does not name a type
     GLES2DefaultHardwareBufferManagerBase::~GLES2DefaultHardwareBufferManagerBase()
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:234:5: error: ‘HardwareVertexBufferSharedPtr’ does not name a type
     HardwareVertexBufferSharedPtr
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:242:5: error: ‘HardwareIndexBufferSharedPtr’ does not name a type
     HardwareIndexBufferSharedPtr
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:250:5: error: ‘HardwareUniformBufferSharedPtr’ does not name a type
     HardwareUniformBufferSharedPtr
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:264:5: error: ‘RenderToVertexBufferSharedPtr’ does not name a type
     RenderToVertexBufferSharedPtr GLES2DefaultHardwareBufferManagerBase::createRenderToVertexBuffer( void )
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alabd/bin/ogre-git/src/ogre/RenderSystems/GLES2/src/OgreGLES2DefaultHardwareBufferManager.cpp:275:1: error: expected ‘}’ at end of input
 }
 ^
make[2]: *** [RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir/build.make:87: RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir/src/OgreGLES2DefaultHardwareBufferManager.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:162: RenderSystems/GLES2/CMakeFiles/RenderSystem_GLES2.dir/all] Error 2
make: *** [Makefile:150: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
Here is my build script:

Code: Select all

pkgname=('ogre-git')
pkgver=2.1
pkgrel=1
pkgdesc='Scene-oriented, flexible 3D engine written in C++'
arch=('i686' 'x86_64')
url='http://ogre3d.org'
license=('MIT')
depends=('boost-libs' 'freeimage' 'freetype2' 'libxaw' 'libxrandr'
         'nvidia-cg-toolkit' 'zziplib' 'ois' 'glu' 'tinyxml')
makedepends=('boost' 'cmake' 'doxygen' 'graphviz' 'ttf-dejavu' 'mesa' 'mercurial')
provides=('ogre' 'ogre-docs')
conflicts=('ogre' 'ogre-docs')
_dir="OGRE"
source=("ogre.zip")
sha512sums=('SKIP')

prepare() {
  cd ogre
}

pkgver() {
  cd ogre
  printf "2.1"
}

build() {
  cd ogre

  [[ -d build ]] && rm -rf build
  mkdir build && cd build

  # Silence warnings about deprecated declarations
  CXXFLAGS+=' -Wno-deprecated-declarations'

  cmake .. \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DOGRE_INSTALL_SAMPLES=TRUE \
    -DOGRE_INSTALL_SAMPLES_SOURCE=TRUE \
    -DOGRE_INSTALL_MEDIA=TRUE \
    -DOGRE_INSTALL_DOCS=TRUE \
    -DOGRE_BUILD_COMPONENT_PAGING=TRUE \
    -DOGRE_BUILD_COMPONENT_PROPERTY=TRUE \
    -DOGRE_BUILD_COMPONENT_RTSHADERS=TRUE \
    -DOGRE_BUILD_COMPONENT_TERRAIN=TRUE \
    -DOGRE_BUILD_COMPONENT_VOLUME=TRUE \
    -DOGRE_BUILD_PLUGIN_CG=TRUE \
    -DOGRE_BUILD_RENDERSYSTEM_GL3Plus=TRUE \
    -DOGRE_BUILD_RENDERSYSTEM_GLES2=TRUE \
    -DOGRE_BUILD_SAMPLES=TRUE \
    -DOGRE_BUILD_SAMPLES2=TRUE \
    -DOGRE_CONFIG_ENABLE_QUAD_BUFFER=TRUE \
    -DOGRE_CONFIG_THREADS=0 \
    -DOGRE_BUILD_COMPONENT_OVERLAY=TRUE \
    -DOGRE_BUILD_COMPONENT_RTSHADERSYSTEM=TRUE \
    -DOGRE_BUILD_PLUGIN_BSP=TRUE \
    -DOGRE_BUILD_PLUGIN_OCTREE=TRUE \
    -DOGRE_BUILD_PLUGIN_PCZ=TRUE \
    -DOGRE_BUILD_PLUGIN_PFX=TRUE \
    -DOGRE_BUILD_TOOLS=TRUE \
    -DCMAKE_BUILD_TYPE=Release

  make

  make OgreDoc
}

package() {
  optdepends=('cppunit: unit testing'
              'intel-tbb: better threading support'
              'poco: portability'
              'boost: for developing using ogre')

  cd ogre/build

  make DESTDIR=${pkgdir} install

  #install -Dm644 ../Docs/License.html ${pkgdir}/usr/share/licenses/${pkgname}/license.html


  # symlink for docs
  install -dm755 ${pkgdir}/usr/share/OGRE/
  cd ${pkgdir}/usr/share
  ln -s /usr/share/doc/OGRE/ OGRE/docs  
 
}
0 x

farrer
Halfling
Posts: 63
Joined: Mon Sep 12, 2011 7:35 pm
x 6

Re: Arch Linux: ogre-git doesn't build

Post by farrer » Tue Jan 24, 2017 11:41 am

@alabd14313 You are trying to build lot of things from 1.x branch that isn't ported or supported on 2.1.

Try using the following build options on your package script instead:

Code: Select all

  cmake .. \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DOGRE_BUILD_COMPONENT_HLMS_PBS=TRUE \
    -DOGRE_BUILD_COMPONENT_HLMS_UNLIT=TRUE \
    -DOGRE_BUILD_RENDERSYSTEM_GL3PLUS=TRUE \
    -DOGRE_BUILD_SAMPLES2=TRUE \
    -DOGRE_CONFIG_THREADS=0 \
    -DOGRE_BUILD_COMPONENT_OVERLAY=TRUE \
    -DOGRE_BUILD_TOOLS=TRUE \
    -DCMAKE_BUILD_TYPE=Release

0 x

alabd14313
Gnoblar
Posts: 5
Joined: Mon Jan 23, 2017 5:32 pm

Re: Arch Linux: ogre-git doesn't build

Post by alabd14313 » Wed Jan 25, 2017 8:41 am

Thanks ! That helped me. but I can't run samples.
0 x

farrer
Halfling
Posts: 63
Joined: Mon Sep 12, 2011 7:35 pm
x 6

Re: Arch Linux: ogre-git doesn't build

Post by farrer » Wed Jan 25, 2017 12:44 pm

alabd14313 wrote:Thanks ! That helped me. but I can't run samples.
What happens? O Gentoo, as my SDL2 is compiled without haptic support, I had to change Samples/2.0/Common/src/GraphicsSystem.cpp from

Code: Select all

if( SDL_Init( SDL_INIT_EVERYTHING ) != 0 )
to

Code: Select all

if( SDL_Init( SDL_INIT_VIDEO | SDL_INIT_EVENTS | SDL_INIT_TIMER) != 0 )
otherwise it will crash while initing SDL. Maybe you have to do something similar on Arch (either change the line or compile SDL2 with haptic support). I've changed the line, as I believe that makes more sense to initialize just what the samples needed. Anyway, in this case it's an SDL fault, not Ogre's.
0 x

alabd14313
Gnoblar
Posts: 5
Joined: Mon Jan 23, 2017 5:32 pm

Re: Arch Linux: ogre-git doesn't build

Post by alabd14313 » Thu Jan 26, 2017 11:12 am

I have this error:
An exception has occured: OGRE EXCEPTION(7:InternalErrorException): /DebugPack.zip - error whilst opening archive: Unable to open zip file. in ZipArchive::checkZzipError at /home/alabd/bin/ogre-git/src/ogre/OgreMain/src/OgreZip.cpp (line 319)
0 x

farrer
Halfling
Posts: 63
Joined: Mon Sep 12, 2011 7:35 pm
x 6

Re: Arch Linux: ogre-git doesn't build

Post by farrer » Fri Jan 27, 2017 12:57 pm

alabd14313 wrote:I have this error:
An exception has occured: OGRE EXCEPTION(7:InternalErrorException): /DebugPack.zip - error whilst opening archive: Unable to open zip file. in ZipArchive::checkZzipError at /home/alabd/bin/ogre-git/src/ogre/OgreMain/src/OgreZip.cpp (line 319)
Seems like the resources2.cfg file is misconfigured (or maybe missing, not sure), as it is trying to get things from your root dir ("/"). Try opening it and edit its contents to the place they really are (build dir or installation dir), ie:

Code: Select all

(...)
Zip=/home/alabd/bin/ogre-git/src/ogre/Samples/Media/packs/DebugPack.zip
(...)
or if system installed somewhere (assuming for example "/usr/local/share/ogre"):

Code: Select all

(...)
Zip=/usr/local/share/ogre/Samples/Media/packs/DebugPack.zip
(...)
Remember to change all other definitions on the resources2.cfg as well.
0 x

Post Reply