MyGUI for Ogre 2.1

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

MyGUI for Ogre 2.1

Post by libolt »

So I managed to get my test mesh rendered with Ogre 2.1 using HlmsPbs. Now I want to start reintegrating the rest of my code which uses btOgre and MyGUI. I found the btOgre 2.1 fork and got that to compile. However, I'm having more issues finding a copy of MyGUI that works with 2.1.

I initially tried building MyGUI from their git tree and it dies with the following:

Code: Select all

c:\Users\libolt\builds\build-msvc-amd64\mygui-build>jom

jom 1.1.3 - empower your cores

jom: parallel job execution disabled for Makefile
[ 90%] Built target MyGUIEngine
[ 94%] Built target Plugin_StrangeButton
[ 95%] Building CXX object Platforms/Ogre/OgrePlatform/CMakeFiles/MyGUI.OgrePlatform.dir/src/MyGUI_OgreRTTexture.cpp.obj
[ 96%] Building CXX object Platforms/Ogre/OgrePlatform/CMakeFiles/MyGUI.OgrePlatform.dir/src/MyGUI_OgreRenderManager.cpp.obj
MyGUI_OgreRTTexture.cpp
[ 97%] Building CXX object Platforms/Ogre/OgrePlatform/CMakeFiles/MyGUI.OgrePlatform.dir/src/MyGUI_OgreTexture.cpp.obj
[ 98%] Building CXX object Platforms/Ogre/OgrePlatform/CMakeFiles/MyGUI.OgrePlatform.dir/src/MyGUI_OgreVertexBuffer.cpp.obj
MyGUI_OgreVertexBuffer.cpp
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(39): error C2039: 'RenderOperation': is not a member of 'Ogre'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreTextureManager.h(39): note: see declaration of 'Ogre'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(39): error C2143: syntax error: missing ';' before '*'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(39): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(40): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(53): error C2039: 'RenderOperation': is not a member of 'Ogre'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreTextureManager.h(39): note: see declaration of 'Ogre'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(53): error C3646: 'mRenderOperation': unknown override specifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(53): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(54): error C2039: 'HardwareVertexBufferSharedPtr': is not a member of 'Ogre'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreTextureManager.h(39): note: see declaration of 'Ogre'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(54): error C3646: 'mVertexBuffer': unknown override specifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(54): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(31): error C2065: 'mRenderOperation': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(31): error C2039: 'VertexData': is not a member of 'Ogre'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreTextureManager.h(39): note: see declaration of 'Ogre'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(31): error C2061: syntax error: identifier 'VertexData'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(32): error C2065: 'mRenderOperation': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(34): error C2039: 'VertexDeclaration': is not a member of 'Ogre'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreTextureManager.h(39): note: see declaration of 'Ogre'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(34): error C2065: 'VertexDeclaration': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(34): error C2065: 'vd': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(34): error C2065: 'mRenderOperation': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(35): error C2065: 'vd': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(36): error C2065: 'vd': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(36): error C2039: 'VertexElement': is not a member of 'Ogre'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreTextureManager.h(39): note: see declaration of 'Ogre'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(36): error C3083: 'VertexElement': the symbol to the left of a '::' must be a type
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(36): error C2039: 'getTypeSize': is not a member of 'Ogre'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreTextureManager.h(39): note: see declaration of 'Ogre'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(36): error C3861: 'getTypeSize': identifier not found
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(37): error C2065: 'vd': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(37): error C2039: 'VertexElement': is not a member of 'Ogre'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreTextureManager.h(39): note: see declaration of 'Ogre'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(37): error C3083: 'VertexElement': the symbol to the left of a '::' must be a type
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(37): error C2039: 'getTypeSize': is not a member of 'Ogre'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreTextureManager.h(39): note: see declaration of 'Ogre'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(37): error C3861: 'getTypeSize': identifier not found
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(38): error C2039: 'VertexElement': is not a member of 'Ogre'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreTextureManager.h(39): note: see declaration of 'Ogre'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(38): error C3083: 'VertexElement': the symbol to the left of a '::' must be a type
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(38): error C2039: 'getTypeSize': is not a member of 'Ogre'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreTextureManager.h(39): note: see declaration of 'Ogre'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(38): error C3861: 'getTypeSize': identifier not found
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(42): error C2065: 'mVertexBuffer': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(42): error C2039: 'HardwareBufferManager': is not a member of 'Ogre'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreTextureManager.h(39): note: see declaration of 'Ogre'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(42): error C3083: 'HardwareBufferManager': the symbol to the left of a '::' must be a type
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(42): error C2039: 'getSingleton': is not a member of 'Ogre'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreTextureManager.h(39): note: see declaration of 'Ogre'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(42): error C3861: 'getSingleton': identifier not found
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(43): error C2065: 'mRenderOperation': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(45): error C2039: 'HardwareBuffer': is not a member of 'Ogre'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreTextureManager.h(39): note: see declaration of 'Ogre'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(45): error C3083: 'HardwareBuffer': the symbol to the left of a '::' must be a type
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(45): error C2039: 'HBU_DYNAMIC_WRITE_ONLY_DISCARDABLE': is not a member of 'Ogre'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreTextureManager.h(39): note: see declaration of 'Ogre'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(45): error C2065: 'HBU_DYNAMIC_WRITE_ONLY_DISCARDABLE': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(49): error C2065: 'mRenderOperation': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(49): error C2065: 'mVertexBuffer': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(50): error C2065: 'mRenderOperation': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(50): error C2039: 'RenderOperation': is not a member of 'Ogre'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreTextureManager.h(39): note: see declaration of 'Ogre'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(50): error C3083: 'RenderOperation': the symbol to the left of a '::' must be a type
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(51): error C2065: 'mRenderOperation': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(56): error C2065: 'mRenderOperation': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(57): error C2065: 'mRenderOperation': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(58): error C2065: 'mVertexBuffer': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(83): error C2065: 'mVertexBuffer': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(83): error C2039: 'HardwareVertexBuffer': is not a member of 'Ogre'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreTextureManager.h(39): note: see declaration of 'Ogre'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(83): error C3083: 'HardwareVertexBuffer': the symbol to the left of a '::' must be a type
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(83): error C2039: 'HBL_DISCARD': is not a member of 'Ogre'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreTextureManager.h(39): note: see declaration of 'Ogre'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(83): error C2065: 'HBL_DISCARD': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreVertexBuffer.cpp(88): error C2065: 'mVertexBuffer': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreRenderManager.h(130): error C2039: 'Sampler': is not a member of 'Ogre'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreShadowCameraSetupFocused.h(38): note: see declaration of 'Ogre'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreRenderManager.h(130): error C3083: 'Sampler': the symbol to the left of a '::' must be a type
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreRenderManager.h(130): error C2039: 'UVWAddressingMode': is not a member of 'Ogre'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreShadowCameraSetupFocused.h(38): note: see declaration of 'Ogre'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreRenderManager.h(130): error C3646: 'mTextureAddressMode': unknown override specifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreRenderManager.h(130): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
MyGUI_OgreTexture.cpp
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreTexture.h(95): error C2079: 'MyGUI::OgreTexture::mTmpData' uses undefined class 'Ogre::PixelBox'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreRenderManager.h(130): error C2039: 'Sampler': is not a member of 'Ogre'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreShadowCameraSetupFocused.h(38): note: see declaration of 'Ogre'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreRenderManager.h(130): error C3083: 'Sampler': the symbol to the left of a '::' must be a type
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreRenderManager.h(130): error C2039: 'UVWAddressingMode': is not a member of 'Ogre'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreShadowCameraSetupFocused.h(38): note: see declaration of 'Ogre'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreRenderManager.h(130): error C3646: 'mTextureAddressMode': unknown override specifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreRenderManager.h(130): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(93): error C2039: 'HardwareBuffer': is not a member of 'Ogre'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreShadowCameraSetupFocused.h(38): note: see declaration of 'Ogre'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(93): error C3083: 'HardwareBuffer': the symbol to the left of a '::' must be a type
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(93): error C2039: 'HBL_DISCARD': is not a member of 'Ogre'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreShadowCameraSetupFocused.h(38): note: see declaration of 'Ogre'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(93): error C2065: 'HBL_DISCARD': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(105): error C2440: '=': cannot convert from 'Ogre::PixelBox' to 'int'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(105): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(108): error C2664: 'void Ogre::v1::HardwarePixelBuffer::blitToMemory(const Ogre::PixelBox &)': cannot convert argument 1 from 'int' to 'const Ogre::PixelBox &'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(108): note: Reason: cannot convert from 'int' to 'const Ogre::PixelBox'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp(108): note: No constructor could take the source type, or constructor overload resolution was ambiguous
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRTTexture.cpp(53): error C2664: 'Ogre::Viewport *Ogre::RenderTarget::addViewport(float,float,float,float)': cannot convert argument 1 from 'nullptr' to 'float'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRTTexture.cpp(53): note: nullptr can only be converted to pointer or handle types
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRTTexture.cpp(54): error C2039: 'setClearEveryFrame': is not a member of 'Ogre::Viewport'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreViewport.h(67): note: see declaration of 'Ogre::Viewport'
jom: C:\Users\libolt\builds\build-msvc-amd64\mygui-build\Platforms\Ogre\OgrePlatform\CMakeFiles\MyGUI.OgrePlatform.dir\build.make [Platforms\Ogre\OgrePlatform\CMakeFiles\MyGUI.OgrePlatform.dir\src\MyGUI_OgreRTTexture.cpp.obj] Error 2
MyGUI_OgreRenderManager.cpp
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreRenderManager.h(130): error C2039: 'Sampler': is not a member of 'Ogre'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreShadowCameraSetupFocused.h(38): note: see declaration of 'Ogre'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreRenderManager.h(130): error C3083: 'Sampler': the symbol to the left of a '::' must be a type
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreRenderManager.h(130): error C2039: 'UVWAddressingMode': is not a member of 'Ogre'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreShadowCameraSetupFocused.h(38): note: see declaration of 'Ogre'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreRenderManager.h(130): error C3646: 'mTextureAddressMode': unknown override specifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreRenderManager.h(130): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(39): error C2039: 'RenderOperation': is not a member of 'Ogre'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreShadowCameraSetupFocused.h(38): note: see declaration of 'Ogre'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(39): error C2143: syntax error: missing ';' before '*'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(39): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(40): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(53): error C2039: 'RenderOperation': is not a member of 'Ogre'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreShadowCameraSetupFocused.h(38): note: see declaration of 'Ogre'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(53): error C3646: 'mRenderOperation': unknown override specifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(53): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(54): error C2039: 'HardwareVertexBufferSharedPtr': is not a member of 'Ogre'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreShadowCameraSetupFocused.h(38): note: see declaration of 'Ogre'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(54): error C3646: 'mVertexBuffer': unknown override specifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(54): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(55): error C2065: 'mTextureAddressMode': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(55): error C2039: 'TAM_CLAMP': is not a member of 'Ogre::TextureUnitState'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreTextureUnitState.h(61): note: see declaration of 'Ogre::TextureUnitState'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(55): error C2065: 'TAM_CLAMP': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(56): error C2065: 'mTextureAddressMode': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(56): error C2039: 'TAM_CLAMP': is not a member of 'Ogre::TextureUnitState'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreTextureUnitState.h(61): note: see declaration of 'Ogre::TextureUnitState'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(56): error C2065: 'TAM_CLAMP': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(57): error C2065: 'mTextureAddressMode': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(57): error C2039: 'TAM_CLAMP': is not a member of 'Ogre::TextureUnitState'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreTextureUnitState.h(61): note: see declaration of 'Ogre::TextureUnitState'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(57): error C2065: 'TAM_CLAMP': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(215): error C2039: 'RENDER_QUEUE_OVERLAY': is not a member of 'Ogre'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreShadowCameraSetupFocused.h(38): note: see declaration of 'Ogre'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(215): error C2065: 'RENDER_QUEUE_OVERLAY': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(317): error C2664: 'void Ogre::RenderSystem::_setTexture(size_t,bool,const Ogre::String &)': cannot convert argument 3 from 'Ogre::TexturePtr' to 'Ogre::Texture *'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(317): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(318): error C2039: '_setTextureUnitFiltering': is not a member of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreRenderSystem.h(98): note: see declaration of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(323): error C2039: 'RenderOperation': is not a member of 'Ogre'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreShadowCameraSetupFocused.h(38): note: see declaration of 'Ogre'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(323): error C2065: 'RenderOperation': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(323): error C2065: 'operation': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(323): error C2039: 'getRenderOperation': is not a member of 'MyGUI::OgreVertexBuffer'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\include\MyGUI_OgreVertexBuffer.h(26): note: see declaration of 'MyGUI::OgreVertexBuffer'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(324): error C2065: 'operation': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(326): error C2065: 'operation': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(345): error C2039: 'setLightingEnabled': is not a member of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreRenderSystem.h(98): note: see declaration of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(346): error C2039: '_setDepthBufferParams': is not a member of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreRenderSystem.h(98): note: see declaration of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(347): error C2039: '_setDepthBias': is not a member of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreRenderSystem.h(98): note: see declaration of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(348): error C2039: '_setCullingMode': is not a member of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreRenderSystem.h(98): note: see declaration of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(349): error C2039: '_setFog': is not a member of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreRenderSystem.h(98): note: see declaration of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(350): error C2039: '_setColourBufferWriteEnabled': is not a member of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreRenderSystem.h(98): note: see declaration of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(353): error C2039: 'unbindGpuProgram': is not a member of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreRenderSystem.h(98): note: see declaration of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(354): error C2039: 'unbindGpuProgram': is not a member of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreRenderSystem.h(98): note: see declaration of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(358): error C2039: 'bindGpuProgram': is not a member of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreRenderSystem.h(98): note: see declaration of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(359): error C2039: 'bindGpuProgram': is not a member of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreRenderSystem.h(98): note: see declaration of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(365): error C2039: 'setShadingType': is not a member of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreRenderSystem.h(98): note: see declaration of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(370): error C2039: '_setTextureUnitFiltering': is not a member of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreRenderSystem.h(98): note: see declaration of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(371): error C2039: '_setTextureAddressingMode': is not a member of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreRenderSystem.h(98): note: see declaration of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(371): error C2065: 'mTextureAddressMode': undeclared identifier
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(376): error C2039: '_setAlphaRejectSettings': is not a member of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreRenderSystem.h(98): note: see declaration of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(383): error C2039: '_setSceneBlending': is not a member of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreRenderSystem.h(98): note: see declaration of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\sources\mygui\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp(387): error C2039: '_setPolygonMode': is not a member of 'Ogre::RenderSystem'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreRenderSystem.h(98): note: see declaration of 'Ogre::RenderSystem'
jom: C:\Users\libolt\builds\build-msvc-amd64\mygui-build\Platforms\Ogre\OgrePlatform\CMakeFiles\MyGUI.OgrePlatform.dir\build.make [Platforms\Ogre\OgrePlatform\CMakeFiles\MyGUI.OgrePlatform.dir\src\MyGUI_OgreRenderManager.cpp.obj] Error 2
jom: C:\Users\libolt\builds\build-msvc-amd64\mygui-build\Platforms\Ogre\OgrePlatform\CMakeFiles\MyGUI.OgrePlatform.dir\build.make [Platforms\Ogre\OgrePlatform\CMakeFiles\MyGUI.OgrePlatform.dir\src\MyGUI_OgreTexture.cpp.obj] Error 2
jom: C:\Users\libolt\builds\build-msvc-amd64\mygui-build\Platforms\Ogre\OgrePlatform\CMakeFiles\MyGUI.OgrePlatform.dir\build.make [Platforms\Ogre\OgrePlatform\CMakeFiles\MyGUI.OgrePlatform.dir\src\MyGUI_OgreVertexBuffer.cpp.obj] Error 2
jom: C:\Users\libolt\builds\build-msvc-amd64\mygui-build\CMakeFiles\Makefile2 [Platforms\Ogre\OgrePlatform\CMakeFiles\MyGUI.OgrePlatform.dir\all] Error 2
jom: C:\Users\libolt\builds\build-msvc-amd64\mygui-build\Makefile [all] Error 2
So then I went and looked for a 2.1 port and found the fork mentioned here: https://forums.ogre3d.org/viewtopic.php?f=25&t=83569

But it dies with the following during build:

Code: Select all

c:\Users\libolt\builds\sources\mygui-ogre-2.1-build>jom

jom 1.1.3 - empower your cores

jom: parallel job execution disabled for Makefile
[ 89%] Built target MyGUIEngine
[ 93%] Built target Plugin_StrangeButton
[ 94%] Building CXX object Platforms/Ogre2/Ogre2Platform/CMakeFiles/MyGUI.Ogre2Platform.dir/src/MyGUI_Ogre2RTTexture.cpp.obj
[ 95%] Building CXX object Platforms/Ogre2/Ogre2Platform/CMakeFiles/MyGUI.Ogre2Platform.dir/src/MyGUI_Ogre2RenderManager.cpp.obj
MyGUI_Ogre2RTTexture.cpp
[ 96%] Building CXX object Platforms/Ogre2/Ogre2Platform/CMakeFiles/MyGUI.Ogre2Platform.dir/src/MyGUI_Ogre2Texture.cpp.obj
[ 97%] Building CXX object Platforms/Ogre2/Ogre2Platform/CMakeFiles/MyGUI.Ogre2Platform.dir/src/MyGUI_Ogre2VertexBuffer.cpp.obj
MyGUI_Ogre2VertexBuffer.cpp
C:\Users\libolt\builds\sources\mygui-ogre-2.1\MyGUIEngine\include\MyGUI_Exception.h(19): warning C4275: non dll-interface class 'std::exception' used as base for dll-interface class 'MyGUI::Exception'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.20.27508\include\vcruntime_exception.h(44): note: see declaration of 'std::exception'
C:\Users\libolt\builds\sources\mygui-ogre-2.1\MyGUIEngine\include\MyGUI_Exception.h(17): note: see declaration of 'MyGUI::Exception'
C:\Users\libolt\builds\sources\mygui-ogre-2.1\Platforms\Ogre2\Ogre2Platform\src\MyGUI_Ogre2VertexBuffer.cpp(56): error C2039: 'OT_TRIANGLE_LIST': is not a member of 'Ogre::v1::RenderOperation'
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreRenderOperation.h(45): note: see declaration of 'Ogre::v1::RenderOperation'
C:\Users\libolt\builds\sources\mygui-ogre-2.1\Platforms\Ogre2\Ogre2Platform\src\MyGUI_Ogre2VertexBuffer.cpp(56): error C2065: 'OT_TRIANGLE_LIST': undeclared identifier
C:\Users\libolt\builds\sources\mygui-ogre-2.1\Platforms\Ogre2\Ogre2Platform\include\MyGUI_Ogre2RenderManager.h(33): error C2664: 'Ogre::CompositorPassDef::CompositorPassDef(const Ogre::CompositorPassDef &)': cannot convert argument 2 from 'MyGUI::uint32' to 'Ogre::CompositorTargetDef *'
C:\Users\libolt\builds\sources\mygui-ogre-2.1\Platforms\Ogre2\Ogre2Platform\include\MyGUI_Ogre2RenderManager.h(34): note: Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
jom: C:\Users\libolt\builds\sources\mygui-ogre-2.1-build\Platforms\Ogre2\Ogre2Platform\CMakeFiles\MyGUI.Ogre2Platform.dir\build.make [Platforms\Ogre2\Ogre2Platform\CMakeFiles\MyGUI.Ogre2Platform.dir\src\MyGUI_Ogre2RTTexture.cpp.obj] Error 2
MyGUI_Ogre2RenderManager.cpp
C:\Users\libolt\builds\sources\mygui-ogre-2.1\MyGUIEngine\include\MyGUI_Exception.h(19): warning C4275: non dll-interface class 'std::exception' used as base for dll-interface class 'MyGUI::Exception'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.20.27508\include\vcruntime_exception.h(44): note: see declaration of 'std::exception'
C:\Users\libolt\builds\sources\mygui-ogre-2.1\MyGUIEngine\include\MyGUI_Exception.h(17): note: see declaration of 'MyGUI::Exception'
C:\Users\libolt\builds\sources\mygui-ogre-2.1\Platforms\Ogre2\Ogre2Platform\include\MyGUI_Ogre2RenderManager.h(33): error C2664: 'Ogre::CompositorPassDef::CompositorPassDef(const Ogre::CompositorPassDef &)': cannot convert argument 2 from 'MyGUI::uint32' to 'Ogre::CompositorTargetDef *'
C:\Users\libolt\builds\sources\mygui-ogre-2.1\Platforms\Ogre2\Ogre2Platform\include\MyGUI_Ogre2RenderManager.h(34): note: Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
MyGUI_Ogre2Texture.cpp
C:\Users\libolt\builds\sources\mygui-ogre-2.1\MyGUIEngine\include\MyGUI_Exception.h(19): warning C4275: non dll-interface class 'std::exception' used as base for dll-interface class 'MyGUI::Exception'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.20.27508\include\vcruntime_exception.h(44): note: see declaration of 'std::exception'
C:\Users\libolt\builds\sources\mygui-ogre-2.1\MyGUIEngine\include\MyGUI_Exception.h(17): note: see declaration of 'MyGUI::Exception'
C:\Users\libolt\builds\sources\mygui-ogre-2.1\Platforms\Ogre2\Ogre2Platform\include\MyGUI_Ogre2RenderManager.h(33): error C2664: 'Ogre::CompositorPassDef::CompositorPassDef(const Ogre::CompositorPassDef &)': cannot convert argument 2 from 'MyGUI::uint32' to 'Ogre::CompositorTargetDef *'
C:\Users\libolt\builds\sources\mygui-ogre-2.1\Platforms\Ogre2\Ogre2Platform\include\MyGUI_Ogre2RenderManager.h(34): note: Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
jom: C:\Users\libolt\builds\sources\mygui-ogre-2.1-build\Platforms\Ogre2\Ogre2Platform\CMakeFiles\MyGUI.Ogre2Platform.dir\build.make [Platforms\Ogre2\Ogre2Platform\CMakeFiles\MyGUI.Ogre2Platform.dir\src\MyGUI_Ogre2Texture.cpp.obj] Error 2
C:\Users\libolt\builds\sources\mygui-ogre-2.1\Platforms\Ogre2\Ogre2Platform\src\MyGUI_Ogre2RenderManager.cpp(59): error C2259: 'MyGUI::OgreCompositorPassProvider': cannot instantiate abstract class
C:\Users\libolt\builds\sources\mygui-ogre-2.1\Platforms\Ogre2\Ogre2Platform\src\MyGUI_Ogre2RenderManager.cpp(59): note: due to following members:
C:\Users\libolt\builds\sources\mygui-ogre-2.1\Platforms\Ogre2\Ogre2Platform\src\MyGUI_Ogre2RenderManager.cpp(59): note: 'Ogre::CompositorPassDef *Ogre::CompositorPassProvider::addPassDef(Ogre::CompositorPassType,Ogre::IdString,Ogre::CompositorTargetDef *,Ogre::CompositorNodeDef *)': is abstract
C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\Compositor/Pass/OgreCompositorPassProvider.h(85): note: see declaration of 'Ogre::CompositorPassProvider::addPassDef'
C:\Users\libolt\builds\sources\mygui-ogre-2.1\Platforms\Ogre2\Ogre2Platform\src\MyGUI_Ogre2RenderManager.cpp(405): error C2259: 'MyGUI::Ogre2GuiRenderable': cannot instantiate abstract class
C:\Users\libolt\builds\sources\mygui-ogre-2.1\Platforms\Ogre2\Ogre2Platform\src\MyGUI_Ogre2RenderManager.cpp(405): note: due to following members:
C:\Users\libolt\builds\sources\mygui-ogre-2.1\Platforms\Ogre2\Ogre2Platform\src\MyGUI_Ogre2RenderManager.cpp(405): note: 'void Ogre::Renderable::getRenderOperation(Ogre::v1::RenderOperation &,bool)': is abstract

C:\Users\libolt\Nextcloud\builds\msvc-amd64\ogre-2.1-sdk\include\OGRE\OgreRenderable.h(88): note: see declaration of 'Ogre::Renderable::getRenderOperation'
jom: C:\Users\libolt\builds\sources\mygui-ogre-2.1-build\Platforms\Ogre2\Ogre2Platform\CMakeFiles\MyGUI.Ogre2Platform.dir\build.make [Platforms\Ogre2\Ogre2Platform\CMakeFiles\MyGUI.Ogre2Platform.dir\src\MyGUI_Ogre2RenderManager.cpp.obj] Error 2
jom: C:\Users\libolt\builds\sources\mygui-ogre-2.1-build\Platforms\Ogre2\Ogre2Platform\CMakeFiles\MyGUI.Ogre2Platform.dir\build.make [Platforms\Ogre2\Ogre2Platform\CMakeFiles\MyGUI.Ogre2Platform.dir\src\MyGUI_Ogre2VertexBuffer.cpp.obj] Error 2
jom: C:\Users\libolt\builds\sources\mygui-ogre-2.1-build\CMakeFiles\Makefile2 [Platforms\Ogre2\Ogre2Platform\CMakeFiles\MyGUI.Ogre2Platform.dir\all] Error 2
jom: C:\Users\libolt\builds\sources\mygui-ogre-2.1-build\Makefile [all] Error 2
Is there a more up to date fork that works with 2.1?

Any help is appreciated.
rujialiu
Goblin
Posts: 296
Joined: Mon May 09, 2016 8:21 am
x 35

Re: MyGUI for Ogre 2.1

Post by rujialiu »

libolt wrote: Fri Oct 25, 2019 11:04 pm Is there a more up to date fork that works with 2.1?
hmmm... you can try either:
https://github.com/al2950/mygui/commits/ogre2.1

or the official one (but in ogre2.1 branch):
https://github.com/MyGUI/mygui/commits/ogre2.1

They diverged a little bit :-S

But since the branch is Since there are occasionally some API breaking changes in Ogre 2.1, it may not compile, but either one should be very very close. If you still have compile errors, you can post errors here and tell us which one (al2950's or official one) you're using.
libolt
Greenskin
Posts: 126
Joined: Wed Jan 19, 2005 4:48 am
x 9

Re: MyGUI for Ogre 2.1

Post by libolt »

rujialiu,

Thanks, I used the Ogre 2.1 branch of the main mygui repo and got it to work. The only downside is the version shows as 3.2.3 instead of 3.4.0 with the main branch. I'm not sure what differences there are or if they'll impact me yet.

Thank you,