Code: Select all
[ 33%] Building CXX object CMakeFiles/BtOgre21.dir/sources/BtOgreGP.cpp.o
In file included from BtOgre21/include/BtOgrePG.h:21:0,
from BtOgre21/sources/BtOgreGP.cpp:16:
BtOgre21/include/BtOgreExtras.h:34:8: error: expected nested-name-specifier before ‘Vector3Array’
using Vector3Array = std::vector<Ogre::Vector3>;
^
BtOgre21/include/BtOgreExtras.h:34:8: error: ‘Vector3Array’ has not been declared
BtOgre21/include/BtOgreExtras.h:34:21: error: expected ‘;’ before ‘=’ token
using Vector3Array = std::vector<Ogre::Vector3>;
^
BtOgre21/include/BtOgreExtras.h:34:21: error: expected unqualified-id before ‘=’ token
BtOgre21/include/BtOgreExtras.h:40:15: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 [enabled by default]
Convert() = delete;
^
BtOgre21/include/BtOgreExtras.h:119:10: error: ‘constexpr’ does not name a type
static constexpr const char* unlitDatablockName{ "DebugLinesGenerated" };
^
BtOgre21/include/BtOgreExtras.h:119:10: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
In file included from BtOgre21/include/BtOgrePG.h:21:0,
from BtOgre21/sources/BtOgreGP.cpp:16:
BtOgre21/include/BtOgreExtras.h:146:10: error: ‘constexpr’ does not name a type
static constexpr const char* BtOgre21ResourceGroup{ "BtOgre21" };
^
BtOgre21/include/BtOgreExtras.h:146:10: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
BtOgre21/include/BtOgreExtras.h:162:28: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 [enabled by default]
virtual ~DebugDrawer() = default;
^
BtOgre21/include/BtOgreExtras.h:168:83: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
void drawLine(const btVector3& from, const btVector3& to, const btVector3& color) override;
^
BtOgre21/include/BtOgreExtras.h:171:68: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
void draw3dText(const btVector3& location, const char* textString) override;
^
BtOgre21/include/BtOgreExtras.h:174:135: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
void drawContactPoint(const btVector3& PointOnB, const btVector3& normalOnB, btScalar distance, int lifeTime, const btVector3& color) override;
^
BtOgre21/include/BtOgreExtras.h:177:52: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
void reportErrorWarning(const char* warningString) override;
^
BtOgre21/include/BtOgreExtras.h:180:29: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
void setDebugMode(int isOn) override;
^
BtOgre21/include/BtOgreExtras.h:183:22: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
int getDebugMode() const override;
^
In file included from BtOgre21/sources/BtOgreGP.cpp:16:0:
BtOgre21/include/BtOgrePG.h:51:44: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
void getWorldTransform(btTransform& ret) const override;
^
BtOgre21/include/BtOgrePG.h:55:47: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
void setWorldTransform(const btTransform& in) override;
^
In file included from BtOgre21/include/BtOgreGP.h:34:0,
from BtOgre21/sources/BtOgreGP.cpp:17:
BtOgre21/include/BtOgre.hpp:9:113: note: #pragma message: You are using OGRE 2.1 Tindalos
#pragma message ("You are using OGRE " STR(OGRE_VERSION_MAJOR) "." STR(OGRE_VERSION_MINOR) " " OGRE_VERSION_NAME)
^
BtOgre21/include/BtOgre.hpp:14:54: note: #pragma message: Your version of Ogre is compatible
#pragma message ("Your version of Ogre is compatible")
^
In file included from BtOgre21/sources/BtOgreGP.cpp:17:0:
BtOgre21/include/BtOgreGP.h:38:8: error: expected nested-name-specifier before ‘BoneIndex’
using BoneIndex = std::map<unsigned, Vector3Array*>;
^
BtOgre21/include/BtOgreGP.h:38:8: error: ‘BoneIndex’ has not been declared
BtOgre21/include/BtOgreGP.h:38:18: error: expected ‘;’ before ‘=’ token
using BoneIndex = std::map<unsigned, Vector3Array*>;
^
BtOgre21/include/BtOgreGP.h:38:18: error: expected unqualified-id before ‘=’ token
BtOgre21/include/BtOgreGP.h:39:8: error: expected nested-name-specifier before ‘BoneKeyIndex’
using BoneKeyIndex = std::pair<unsigned, Vector3Array*>;
^
BtOgre21/include/BtOgreGP.h:39:8: error: ‘BoneKeyIndex’ has not been declared
BtOgre21/include/BtOgreGP.h:39:21: error: expected ‘;’ before ‘=’ token
using BoneKeyIndex = std::pair<unsigned, Vector3Array*>;
^
BtOgre21/include/BtOgreGP.h:39:21: error: expected unqualified-id before ‘=’ token
BtOgre21/include/BtOgreGP.h:42:8: error: expected nested-name-specifier before ‘VertexBuffer’
using VertexBuffer = std::vector<Ogre::Vector3>;
^
BtOgre21/include/BtOgreGP.h:42:8: error: ‘VertexBuffer’ has not been declared
BtOgre21/include/BtOgreGP.h:42:21: error: expected ‘;’ before ‘=’ token
using VertexBuffer = std::vector<Ogre::Vector3>;
^
BtOgre21/include/BtOgreGP.h:42:21: error: expected unqualified-id before ‘=’ token
BtOgre21/include/BtOgreGP.h:45:8: error: expected nested-name-specifier before ‘IndexBuffer’
using IndexBuffer = std::vector<unsigned int>;
^
BtOgre21/include/BtOgreGP.h:45:8: error: ‘IndexBuffer’ has not been declared
BtOgre21/include/BtOgreGP.h:45:20: error: expected ‘;’ before ‘=’ token
using IndexBuffer = std::vector<unsigned int>;
^
BtOgre21/include/BtOgreGP.h:45:20: error: expected unqualified-id before ‘=’ token
In file included from BtOgre21/sources/BtOgreGP.cpp:17:0:
BtOgre21/include/BtOgreGP.h:149:3: error: ‘VertexBuffer’ does not name a type
VertexBuffer mVertexBuffer;
^
BtOgre21/include/BtOgreGP.h:152:3: error: ‘IndexBuffer’ does not name a type
IndexBuffer mIndexBuffer;
^
BtOgre21/include/BtOgreGP.h:160:3: error: ‘BoneIndex’ does not name a type
BoneIndex* mBoneIndex;
^
BtOgre21/include/BtOgreGP.h: In member function ‘void BtOgre::VertexIndexToShape::loadV1IndexBuffer(Ogre::v1::HardwareIndexBufferSharedPtr, const size_t&, const size_t&, const size_t&)’:
BtOgre21/include/BtOgreGP.h:109:9: error: ‘pointerData’ does not name a type
auto pointerData = static_cast<const T*>(ibuf->lock(Ogre::v1::HardwareBuffer::HBL_READ_ONLY));
^
BtOgre21/include/BtOgreGP.h:110:14: error: ‘i’ does not name a type
for (auto i = 0u; i < appendedIndexes; ++i)
^
BtOgre21/include/BtOgreGP.h:110:22: error: expected ‘;’ before ‘i’
for (auto i = 0u; i < appendedIndexes; ++i)
^
BtOgre21/include/BtOgreGP.h:110:22: error: ‘i’ was not declared in this scope
BtOgre21/include/BtOgreGP.h:112:5: error: ‘mIndexBuffer’ was not declared in this scope
mIndexBuffer[previousSize + i] = static_cast<unsigned>(offset + pointerData[i]);
^
BtOgre21/include/BtOgreGP.h:112:69: error: ‘pointerData’ was not declared in this scope
mIndexBuffer[previousSize + i] = static_cast<unsigned>(offset + pointerData[i]);
^
BtOgre21/include/BtOgreGP.h: In member function ‘void BtOgre::VertexIndexToShape::loadV2IndexBuffer(Ogre::AsyncTicketPtr, const size_t&, const size_t&, const size_t&)’:
BtOgre21/include/BtOgreGP.h:135:9: error: ‘pointerData’ does not name a type
auto pointerData = static_cast<const T*>(asyncTicket->map());
^
BtOgre21/include/BtOgreGP.h:136:14: error: ‘i’ does not name a type
for (auto i = 0; i < appendedIndexes; ++i)
^
BtOgre21/include/BtOgreGP.h:136:21: error: expected ‘;’ before ‘i’
for (auto i = 0; i < appendedIndexes; ++i)
^
BtOgre21/include/BtOgreGP.h:136:21: error: ‘i’ was not declared in this scope
BtOgre21/include/BtOgreGP.h:138:5: error: ‘mIndexBuffer’ was not declared in this scope
mIndexBuffer[perviousSize + i] = static_cast<unsigned>(offset + pointerData[i]);
^
BtOgre21/include/BtOgreGP.h:138:69: error: ‘pointerData’ was not declared in this scope
mIndexBuffer[perviousSize + i] = static_cast<unsigned>(offset + pointerData[i]);
^
BtOgre21/include/BtOgreGP.h: At global scope:
BtOgre21/include/BtOgreGP.h:189:43: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 [enabled by default]
virtual ~StaticMeshToShapeConverter() = default;
^
BtOgre21/sources/BtOgreGP.cpp: In member function ‘void BtOgre::VertexIndexToShape::appendV1VertexData(const Ogre::v1::VertexData*)’:
BtOgre21/sources/BtOgreGP.cpp:38:13: error: ‘previousSize’ does not name a type
const auto previousSize = mVertexBuffer.size();
^
BtOgre21/sources/BtOgreGP.cpp:41:2: error: ‘mVertexBuffer’ was not declared in this scope
mVertexBuffer.resize(previousSize + vertex_data->vertexCount);
^
BtOgre21/sources/BtOgreGP.cpp:41:23: error: ‘previousSize’ was not declared in this scope
mVertexBuffer.resize(previousSize + vertex_data->vertexCount);
^
BtOgre21/sources/BtOgreGP.cpp:44:13: error: ‘posElem’ does not name a type
const auto posElem = vertex_data->vertexDeclaration->findElementBySemantic(VES_POSITION);
^
BtOgre21/sources/BtOgreGP.cpp:45:13: error: ‘vbuf’ does not name a type
const auto vbuf = vertex_data->vertexBufferBinding->getBuffer(posElem->getSource());
^
BtOgre21/sources/BtOgreGP.cpp:46:13: error: ‘vertexSize’ does not name a type
const auto vertexSize = static_cast<unsigned int>(vbuf->getVertexSize());
^
BtOgre21/sources/BtOgreGP.cpp:49:13: error: ‘vertex’ does not name a type
const auto vertex = static_cast<unsigned char*>(vbuf->lock(v1::HardwareBuffer::HBL_READ_ONLY));
^
BtOgre21/sources/BtOgreGP.cpp:50:8: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default]
Real* rawVertex{ nullptr }; // this pointer will be used a a buffer to write the [float, float, float] array of the vertex
^
BtOgre21/sources/BtOgreGP.cpp:50:19: error: ‘nullptr’ was not declared in this scope
Real* rawVertex{ nullptr }; // this pointer will be used a a buffer to write the [float, float, float] array of the vertex
^
BtOgre21/sources/BtOgreGP.cpp:53:13: error: ‘vertexCount’ does not name a type
const auto vertexCount = static_cast<unsigned int>(vertex_data->vertexCount);
^
BtOgre21/sources/BtOgreGP.cpp:54:12: error: ‘j’ does not name a type
for (auto j = size_t{ 0U }; j < vertexCount; ++j)
^
BtOgre21/sources/BtOgreGP.cpp:54:30: error: ‘j’ was not declared in this scope
for (auto j = size_t{ 0U }; j < vertexCount; ++j)
^
BtOgre21/sources/BtOgreGP.cpp:54:34: error: ‘vertexCount’ was not declared in this scope
for (auto j = size_t{ 0U }; j < vertexCount; ++j)
^
BtOgre21/sources/BtOgreGP.cpp:57:3: error: ‘posElem’ was not declared in this scope
posElem->baseVertexPointerToElement(vertex + j * vertexSize, &rawVertex);
^
BtOgre21/sources/BtOgreGP.cpp:57:39: error: ‘vertex’ was not declared in this scope
posElem->baseVertexPointerToElement(vertex + j * vertexSize, &rawVertex);
^
BtOgre21/sources/BtOgreGP.cpp:57:52: error: ‘vertexSize’ was not declared in this scope
posElem->baseVertexPointerToElement(vertex + j * vertexSize, &rawVertex);
^
BtOgre21/sources/BtOgreGP.cpp:58:50: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default]
mVertexBuffer[previousSize + j] = mTransform * Vector3{ rawVertex };
^
BtOgre21/sources/BtOgreGP.cpp:62:2: error: ‘vbuf’ was not declared in this scope
vbuf->unlock();
^
BtOgre21/sources/BtOgreGP.cpp: In member function ‘void BtOgre::VertexIndexToShape::addAnimatedVertexData(const Ogre::v1::VertexData*, const Ogre::v1::VertexData*, const IndexMap*)’:
BtOgre21/sources/BtOgreGP.cpp:72:13: error: ‘data’ does not name a type
const auto data = blend_data;
^
BtOgre21/sources/BtOgreGP.cpp:75:13: error: ‘prev_size’ does not name a type
const auto prev_size = mVertexBuffer.size();
^
BtOgre21/sources/BtOgreGP.cpp:78:21: error: ‘data’ was not declared in this scope
appendV1VertexData(data);
^
BtOgre21/sources/BtOgreGP.cpp:80:13: error: ‘bneElem’ does not name a type
const auto bneElem = vertex_data->vertexDeclaration->findElementBySemantic(VES_BLEND_INDICES);
^
In file included from /usr/local/include/OGRE/OgreLwConstString.h:37:0,
from /usr/local/include/OGRE/OgreHlmsJson.h:36,
from /usr/local/include/OGRE/OgreHlms.h:35,
from BtOgre21/include/BtOgreExtras.h:27,
from BtOgre21/include/BtOgrePG.h:21,
from BtOgre21/sources/BtOgreGP.cpp:16:
BtOgre21/sources/BtOgreGP.cpp:81:9: error: ‘bneElem’ was not declared in this scope
assert(bneElem);
^
BtOgre21/sources/BtOgreGP.cpp:83:13: error: ‘vbuf’ does not name a type
const auto vbuf = vertex_data->vertexBufferBinding->getBuffer(bneElem->getSource());
^
BtOgre21/sources/BtOgreGP.cpp:84:13: error: ‘vSize’ does not name a type
const auto vSize = static_cast<unsigned int>(vbuf->getVertexSize());
^
BtOgre21/sources/BtOgreGP.cpp:85:13: error: ‘vertex’ does not name a type
const auto vertex = static_cast<unsigned char*>(vbuf->lock(v1::HardwareBuffer::HBL_READ_ONLY));
^
BtOgre21/sources/BtOgreGP.cpp:89:7: error: ‘mBoneIndex’ was not declared in this scope
if (!mBoneIndex)
^
BtOgre21/sources/BtOgreGP.cpp:90:20: error: expected type-specifier before ‘BoneIndex’
mBoneIndex = new BoneIndex();
^
BtOgre21/sources/BtOgreGP.cpp:90:20: error: expected ‘;’ before ‘BoneIndex’
BtOgre21/sources/BtOgreGP.cpp:91:2: error: ‘BoneIndex’ has not been declared
BoneIndex::iterator i;
^
BtOgre21/sources/BtOgreGP.cpp:91:22: error: expected ‘;’ before ‘i’
BoneIndex::iterator i;
^
BtOgre21/sources/BtOgreGP.cpp:94:7: error: ‘curVertices’ does not name a type
auto curVertices = &mVertexBuffer.data()[prev_size];
^
BtOgre21/sources/BtOgreGP.cpp:96:13: error: ‘vertexCount’ does not name a type
const auto vertexCount = static_cast<unsigned int>(vertex_data->vertexCount);
^
BtOgre21/sources/BtOgreGP.cpp:97:12: error: ‘j’ does not name a type
for (auto j = size_t{ 0U }; j < vertexCount; ++j)
^
BtOgre21/sources/BtOgreGP.cpp:97:30: error: ‘j’ was not declared in this scope
for (auto j = size_t{ 0U }; j < vertexCount; ++j)
^
BtOgre21/sources/BtOgreGP.cpp:97:34: error: ‘vertexCount’ was not declared in this scope
for (auto j = size_t{ 0U }; j < vertexCount; ++j)
^
BtOgre21/sources/BtOgreGP.cpp:99:39: error: ‘vertex’ was not declared in this scope
bneElem->baseVertexPointerToElement(vertex + j * vSize, &pBone);
^
BtOgre21/sources/BtOgreGP.cpp:99:52: error: ‘vSize’ was not declared in this scope
bneElem->baseVertexPointerToElement(vertex + j * vSize, &pBone);
^
BtOgre21/sources/BtOgreGP.cpp:101:14: error: ‘currBone’ does not name a type
const auto currBone = static_cast<unsigned char>(indexMap ? (*indexMap)[*pBone] : *pBone);
^
BtOgre21/sources/BtOgreGP.cpp:102:3: error: ‘i’ was not declared in this scope
i = mBoneIndex->find(currBone);
^
BtOgre21/sources/BtOgreGP.cpp:102:7: error: ‘mBoneIndex’ was not declared in this scope
i = mBoneIndex->find(currBone);
^
BtOgre21/sources/BtOgreGP.cpp:102:24: error: ‘currBone’ was not declared in this scope
i = mBoneIndex->find(currBone);
^
BtOgre21/sources/BtOgreGP.cpp:104:3: error: ‘Vector3Array’ was not declared in this scope
Vector3Array* l = nullptr;
^
BtOgre21/sources/BtOgreGP.cpp:104:17: error: ‘l’ was not declared in this scope
Vector3Array* l = nullptr;
^
BtOgre21/sources/BtOgreGP.cpp:104:21: error: ‘nullptr’ was not declared in this scope
Vector3Array* l = nullptr;
^
BtOgre21/sources/BtOgreGP.cpp:108:12: error: expected type-specifier before ‘Vector3Array’
l = new Vector3Array;
^
BtOgre21/sources/BtOgreGP.cpp:108:12: error: expected ‘;’ before ‘Vector3Array’
BtOgre21/sources/BtOgreGP.cpp:109:47: error: ‘BoneKeyIndex’ was not declared in this scope
mBoneIndex->insert(BoneKeyIndex(currBone, l));
^
BtOgre21/sources/BtOgreGP.cpp:116:17: error: ‘curVertices’ was not declared in this scope
l->push_back(*curVertices);
^
BtOgre21/sources/BtOgreGP.cpp:120:2: error: ‘vbuf’ was not declared in this scope
vbuf->unlock();
^
BtOgre21/sources/BtOgreGP.cpp: In member function ‘void BtOgre::VertexIndexToShape::appendV1IndexData(Ogre::v1::IndexData*, size_t)’:
BtOgre21/sources/BtOgreGP.cpp:125:13: error: ‘appendedIndexes’ does not name a type
const auto appendedIndexes = data->indexCount;
^
BtOgre21/sources/BtOgreGP.cpp:126:13: error: ‘previousSize’ does not name a type
const auto previousSize = mIndexBuffer.size();
^
BtOgre21/sources/BtOgreGP.cpp:128:2: error: ‘mIndexBuffer’ was not declared in this scope
mIndexBuffer.resize(previousSize + appendedIndexes);
^
BtOgre21/sources/BtOgreGP.cpp:128:22: error: ‘previousSize’ was not declared in this scope
mIndexBuffer.resize(previousSize + appendedIndexes);
^
BtOgre21/sources/BtOgreGP.cpp:128:37: error: ‘appendedIndexes’ was not declared in this scope
mIndexBuffer.resize(previousSize + appendedIndexes);
^
BtOgre21/sources/BtOgreGP.cpp:130:7: error: ‘ibuf’ does not name a type
auto ibuf = data->indexBuffer;
^
BtOgre21/sources/BtOgreGP.cpp:133:6: error: ‘ibuf’ was not declared in this scope
if (ibuf->getType() == v1::HardwareIndexBuffer::IT_32BIT)
^
BtOgre21/sources/BtOgreGP.cpp: In member function ‘Ogre::Vector3 BtOgre::VertexIndexToShape::getSize()’:
BtOgre21/sources/BtOgreGP.cpp:153:8: error: ‘vmin’ does not name a type
auto vmin = mVertexBuffer[0];
^
BtOgre21/sources/BtOgreGP.cpp:154:8: error: ‘vmax’ does not name a type
auto vmax = vmin;
^
BtOgre21/sources/BtOgreGP.cpp:156:19: error: ‘vertex’ does not name a type
for (const auto vertex : mVertexBuffer)
^
BtOgre21/sources/BtOgreGP.cpp:166:3: error: expected ‘;’ before ‘mBounds’
mBounds = vmax - vmin;
^
BtOgre21/sources/BtOgreGP.cpp:166:13: error: ‘vmax’ was not declared in this scope
mBounds = vmax - vmin;
^
BtOgre21/sources/BtOgreGP.cpp:166:20: error: ‘vmin’ was not declared in this scope
mBounds = vmax - vmin;
^
BtOgre21/sources/BtOgreGP.cpp:167:2: error: expected primary-expression before ‘}’ token
}
^
BtOgre21/sources/BtOgreGP.cpp:167:2: error: expected ‘)’ before ‘}’ token
BtOgre21/sources/BtOgreGP.cpp:167:2: error: expected primary-expression before ‘}’ token
BtOgre21/sources/BtOgreGP.cpp:167:2: error: expected ‘;’ before ‘}’ token
BtOgre21/sources/BtOgreGP.cpp: In member function ‘const Ogre::Vector3* BtOgre::VertexIndexToShape::getVertices()’:
BtOgre21/sources/BtOgreGP.cpp:175:9: error: ‘mVertexBuffer’ was not declared in this scope
return mVertexBuffer.data();
^
BtOgre21/sources/BtOgreGP.cpp: In member function ‘size_t BtOgre::VertexIndexToShape::getVertexCount() const’:
BtOgre21/sources/BtOgreGP.cpp:180:9: error: ‘mVertexBuffer’ was not declared in this scope
return mVertexBuffer.size();
^
BtOgre21/sources/BtOgreGP.cpp: In member function ‘const unsigned int* BtOgre::VertexIndexToShape::getIndices()’:
BtOgre21/sources/BtOgreGP.cpp:184:9: error: ‘mIndexBuffer’ was not declared in this scope
return mIndexBuffer.data();
^
BtOgre21/sources/BtOgreGP.cpp: In member function ‘size_t BtOgre::VertexIndexToShape::getIndexCount() const’:
BtOgre21/sources/BtOgreGP.cpp:189:9: error: ‘mIndexBuffer’ was not declared in this scope
return mIndexBuffer.size();
^
BtOgre21/sources/BtOgreGP.cpp: In member function ‘btSphereShape* BtOgre::VertexIndexToShape::createSphere()’:
BtOgre21/sources/BtOgreGP.cpp:199:13: error: ‘rad’ does not name a type
const auto rad = getRadius();
^
In file included from /usr/local/include/OGRE/OgreLwConstString.h:37:0,
from /usr/local/include/OGRE/OgreHlmsJson.h:36,
from /usr/local/include/OGRE/OgreHlms.h:35,
from BtOgre21/include/BtOgreExtras.h:27,
from BtOgre21/include/BtOgrePG.h:21,
from BtOgre21/sources/BtOgreGP.cpp:16:
BtOgre21/sources/BtOgreGP.cpp:200:10: error: ‘rad’ was not declared in this scope
assert((rad > 0.0) &&
^
BtOgre21/sources/BtOgreGP.cpp:202:7: error: ‘shape’ does not name a type
auto shape = new btSphereShape(rad);
^
BtOgre21/sources/BtOgreGP.cpp:204:2: error: ‘shape’ was not declared in this scope
shape->setLocalScaling(Convert::toBullet(mScale));
^
BtOgre21/sources/BtOgreGP.cpp: In member function ‘btBoxShape* BtOgre::VertexIndexToShape::createBox()’:
BtOgre21/sources/BtOgreGP.cpp:211:13: error: ‘sz’ does not name a type
const auto sz = getSize();
^
In file included from /usr/local/include/OGRE/OgreLwConstString.h:37:0,
from /usr/local/include/OGRE/OgreHlmsJson.h:36,
from /usr/local/include/OGRE/OgreHlms.h:35,
from BtOgre21/include/BtOgreExtras.h:27,
from BtOgre21/include/BtOgrePG.h:21,
from BtOgre21/sources/BtOgreGP.cpp:16:
BtOgre21/sources/BtOgreGP.cpp:213:10: error: ‘sz’ was not declared in this scope
assert((sz.x > 0.0) && (sz.y > 0.0) && (sz.z > 0.0) &&
^
BtOgre21/sources/BtOgreGP.cpp:216:7: error: ‘shape’ does not name a type
auto shape = new btBoxShape(Convert::toBullet(sz * 0.5));
^
BtOgre21/sources/BtOgreGP.cpp:218:2: error: ‘shape’ was not declared in this scope
shape->setLocalScaling(Convert::toBullet(mScale));
^
BtOgre21/sources/BtOgreGP.cpp: In member function ‘btCylinderShape* BtOgre::VertexIndexToShape::createCylinder()’:
BtOgre21/sources/BtOgreGP.cpp:225:13: error: ‘sz’ does not name a type
const auto sz = getSize()*.5f;
^
In file included from /usr/local/include/OGRE/OgreLwConstString.h:37:0,
from /usr/local/include/OGRE/OgreHlmsJson.h:36,
from /usr/local/include/OGRE/OgreHlms.h:35,
from BtOgre21/include/BtOgreExtras.h:27,
from BtOgre21/include/BtOgrePG.h:21,
from BtOgre21/sources/BtOgreGP.cpp:16:
BtOgre21/sources/BtOgreGP.cpp:227:10: error: ‘sz’ was not declared in this scope
assert((sz.x > 0.0) && (sz.y > 0.0) && (sz.z > 0.0) &&
^
BtOgre21/sources/BtOgreGP.cpp:230:7: error: ‘biggest’ does not name a type
auto biggest = std::max(sz.x, std::max(sz.y, sz.z));
^
BtOgre21/sources/BtOgreGP.cpp:235:6: error: ‘biggest’ was not declared in this scope
if (biggest == sz.x)
^
BtOgre21/sources/BtOgreGP.cpp: In member function ‘btConvexHullShape* BtOgre::VertexIndexToShape::createConvex()’:
BtOgre21/sources/BtOgreGP.cpp:253:7: error: ‘shape’ does not name a type
auto shape = new btConvexHullShape{ static_cast<btScalar*>(&mVertexBuffer[0].x), int(getVertexCount()), sizeof(Vector3) };
^
BtOgre21/sources/BtOgreGP.cpp:255:2: error: ‘shape’ was not declared in this scope
shape->setLocalScaling(Convert::toBullet(mScale));
^
BtOgre21/sources/BtOgreGP.cpp: In member function ‘btBvhTriangleMeshShape* BtOgre::VertexIndexToShape::createTrimesh()’:
BtOgre21/sources/BtOgreGP.cpp:265:13: error: ‘numFaces’ does not name a type
const auto numFaces = getTriangleCount();
^
BtOgre21/sources/BtOgreGP.cpp:266:7: error: ‘trimesh’ does not name a type
auto trimesh = new btTriangleMesh();
^
BtOgre21/sources/BtOgreGP.cpp:269:12: error: ‘i’ does not name a type
for (auto i = size_t{ 0U }; i < numFaces; ++i)
^
BtOgre21/sources/BtOgreGP.cpp:269:30: error: ‘i’ was not declared in this scope
for (auto i = size_t{ 0U }; i < numFaces; ++i)
^
BtOgre21/sources/BtOgreGP.cpp:269:34: error: ‘numFaces’ was not declared in this scope
for (auto i = size_t{ 0U }; i < numFaces; ++i)
^
BtOgre21/sources/BtOgreGP.cpp:271:19: error: ‘j’ does not name a type
for (const auto j : { 0, 1, 2 })
^
BtOgre21/sources/BtOgreGP.cpp:271:34: error: expected ‘;’ before ‘)’ token
for (const auto j : { 0, 1, 2 })
^
BtOgre21/sources/BtOgreGP.cpp:271:34: error: expected primary-expression before ‘)’ token
BtOgre21/sources/BtOgreGP.cpp:271:34: error: expected ‘;’ before ‘)’ token
BtOgre21/sources/BtOgreGP.cpp:272:14: error: ‘j’ was not declared in this scope
vertexPos[j] = Convert::toBullet(mVertexBuffer[mIndexBuffer[3 * i + j]]);
^
BtOgre21/sources/BtOgreGP.cpp:272:37: error: ‘mVertexBuffer’ was not declared in this scope
vertexPos[j] = Convert::toBullet(mVertexBuffer[mIndexBuffer[3 * i + j]]);
^
BtOgre21/sources/BtOgreGP.cpp:272:51: error: ‘mIndexBuffer’ was not declared in this scope
vertexPos[j] = Convert::toBullet(mVertexBuffer[mIndexBuffer[3 * i + j]]);
^
BtOgre21/sources/BtOgreGP.cpp:274:3: error: ‘trimesh’ was not declared in this scope
trimesh->addTriangle(vertexPos[0], vertexPos[1], vertexPos[2]);
^
BtOgre21/sources/BtOgreGP.cpp:277:13: error: ‘useQuantizedAABB’ does not name a type
const auto useQuantizedAABB = true;
^
BtOgre21/sources/BtOgreGP.cpp:278:7: error: ‘shape’ does not name a type
auto shape = new btBvhTriangleMeshShape(trimesh, useQuantizedAABB);
^
BtOgre21/sources/BtOgreGP.cpp:280:2: error: ‘shape’ was not declared in this scope
shape->setLocalScaling(Convert::toBullet(mScale));
^
BtOgre21/sources/BtOgreGP.cpp: In member function ‘btCapsuleShape* BtOgre::VertexIndexToShape::createCapsule()’:
BtOgre21/sources/BtOgreGP.cpp:287:13: error: ‘sz’ does not name a type
const auto sz = getSize();
^
In file included from /usr/local/include/OGRE/OgreLwConstString.h:37:0,
from /usr/local/include/OGRE/OgreHlmsJson.h:36,
from /usr/local/include/OGRE/OgreHlms.h:35,
from BtOgre21/include/BtOgreExtras.h:27,
from BtOgre21/include/BtOgrePG.h:21,
from BtOgre21/sources/BtOgreGP.cpp:16:
BtOgre21/sources/BtOgreGP.cpp:289:10: error: ‘sz’ was not declared in this scope
assert((sz.x > 0.0) && (sz.y > 0.0) && (sz.z > 0.0) &&
^
BtOgre21/sources/BtOgreGP.cpp:292:7: error: ‘height’ does not name a type
auto height = std::max(sz.x, std::max(sz.y, sz.z));
^
BtOgre21/sources/BtOgreGP.cpp:296:6: error: ‘height’ was not declared in this scope
if (height == sz.y)
^
BtOgre21/sources/BtOgreGP.cpp: In destructor ‘virtual BtOgre::VertexIndexToShape::~VertexIndexToShape()’:
BtOgre21/sources/BtOgreGP.cpp:319:6: error: ‘mBoneIndex’ was not declared in this scope
if (mBoneIndex)
^
BtOgre21/sources/BtOgreGP.cpp:321:13: error: ‘i’ does not name a type
for (auto i = begin(*mBoneIndex);
^
BtOgre21/sources/BtOgreGP.cpp:322:4: error: expected ‘;’ before ‘i’
i != end(*mBoneIndex);
^
BtOgre21/sources/BtOgreGP.cpp:322:4: error: ‘i’ was not declared in this scope
BtOgre21/sources/BtOgreGP.cpp:322:24: error: ‘end’ was not declared in this scope
i != end(*mBoneIndex);
^
BtOgre21/sources/BtOgreGP.cpp:325:10: error: type ‘<type error>’ argument given to ‘delete’, expected pointer
delete mBoneIndex;
^
BtOgre21/sources/BtOgreGP.cpp: In constructor ‘BtOgre::VertexIndexToShape::VertexIndexToShape(const Ogre::Matrix4&)’:
BtOgre21/sources/BtOgreGP.cpp:332:2: error: class ‘BtOgre::VertexIndexToShape’ does not have any field named ‘mBoneIndex’
mBoneIndex(nullptr),
^
BtOgre21/sources/BtOgreGP.cpp:332:13: error: ‘nullptr’ was not declared in this scope
mBoneIndex(nullptr),
^
BtOgre21/sources/BtOgreGP.cpp: In constructor ‘BtOgre::StaticMeshToShapeConverter::StaticMeshToShapeConverter()’:
BtOgre21/sources/BtOgreGP.cpp:346:10: error: ‘nullptr’ was not declared in this scope
mEntity(nullptr),
^
BtOgre21/sources/BtOgreGP.cpp: In constructor ‘BtOgre::StaticMeshToShapeConverter::StaticMeshToShapeConverter(Ogre::v1::Entity*, const Ogre::Matrix4&)’:
BtOgre21/sources/BtOgreGP.cpp:354:10: error: ‘nullptr’ was not declared in this scope
mEntity(nullptr),
^
BtOgre21/sources/BtOgreGP.cpp: In constructor ‘BtOgre::StaticMeshToShapeConverter::StaticMeshToShapeConverter(Ogre::v1::Mesh*, const Ogre::Matrix4&)’:
BtOgre21/sources/BtOgreGP.cpp:363:10: error: ‘nullptr’ was not declared in this scope
mEntity(nullptr),
^
BtOgre21/sources/BtOgreGP.cpp: In constructor ‘BtOgre::StaticMeshToShapeConverter::StaticMeshToShapeConverter(Ogre::Renderable*, const Ogre::Matrix4&)’:
BtOgre21/sources/BtOgreGP.cpp:377:10: error: ‘nullptr’ was not declared in this scope
mEntity(nullptr),
^
BtOgre21/sources/BtOgreGP.cpp: In member function ‘void BtOgre::StaticMeshToShapeConverter::addMesh(const Ogre::v1::Mesh*, const Ogre::Matrix4&)’:
BtOgre21/sources/BtOgreGP.cpp:416:8: error: ‘sub_mesh’ does not name a type
auto sub_mesh = mesh->getSubMesh(i);
^
BtOgre21/sources/BtOgreGP.cpp:418:8: error: ‘sub_mesh’ was not declared in this scope
if (!sub_mesh->useSharedVertices)
^
BtOgre21/sources/BtOgreGP.cpp: In member function ‘void BtOgre::VertexIndexToShape::getV2MeshBufferSize(const Ogre::Mesh*, size_t&, size_t&)’:
BtOgre21/sources/BtOgreGP.cpp:435:23: error: ‘mVertexBuffer’ was not declared in this scope
previousVertexSize = mVertexBuffer.size();
^
BtOgre21/sources/BtOgreGP.cpp:438:18: error: ‘subMesh’ does not name a type
for (const auto subMesh : mesh->getSubMeshes())
^
BtOgre21/sources/BtOgreGP.cpp:444:2: error: expected ‘;’ before ‘mVertexBuffer’
mVertexBuffer.resize(mVertexBuffer.size() + numVertices);
^
BtOgre21/sources/BtOgreGP.cpp:445:2: error: ‘mIndexBuffer’ was not declared in this scope
mIndexBuffer.resize(mIndexBuffer.size() + numIndices);
^
BtOgre21/sources/BtOgreGP.cpp:445:55: error: expected ‘)’ before ‘;’ token
mIndexBuffer.resize(mIndexBuffer.size() + numIndices);
^
BtOgre21/sources/BtOgreGP.cpp: In member function ‘void BtOgre::VertexIndexToShape::extractV2SubMeshVertexBuffer(size_t&, Ogre::VertexArrayObject::ReadRequestsArray, const size_t&)’:
BtOgre21/sources/BtOgreGP.cpp:452:7: error: ‘subMeshVerticiesNum’ does not name a type
auto subMeshVerticiesNum = requests[0].vertexBuffer->getNumElements();
^
BtOgre21/sources/BtOgreGP.cpp:456:26: error: ‘subMeshVerticiesNum’ was not declared in this scope
for (size_t i = 0; i < subMeshVerticiesNum; ++i)
^
BtOgre21/sources/BtOgreGP.cpp:458:9: error: ‘pos’ does not name a type
auto pos = reinterpret_cast<const uint16*>(requests[0].data); //Stored as 16 bits. Need to use Ogre::Bitwise utilities to extract a floating point form this
^
BtOgre21/sources/BtOgreGP.cpp:460:4: error: ‘mVertexBuffer’ was not declared in this scope
mVertexBuffer[prevSize + i + subMeshOffset] = mTransform * Vector3{ Bitwise::halfToFloat(pos[0]), Bitwise::halfToFloat(pos[1]), Bitwise::halfToFloat(pos[2]) };
^
BtOgre21/sources/BtOgreGP.cpp:460:63: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default]
mVertexBuffer[prevSize + i + subMeshOffset] = mTransform * Vector3{ Bitwise::halfToFloat(pos[0]), Bitwise::halfToFloat(pos[1]), Bitwise::halfToFloat(pos[2]) };
^
BtOgre21/sources/BtOgreGP.cpp:460:93: error: ‘pos’ was not declared in this scope
mVertexBuffer[prevSize + i + subMeshOffset] = mTransform * Vector3{ Bitwise::halfToFloat(pos[0]), Bitwise::halfToFloat(pos[1]), Bitwise::halfToFloat(pos[2]) };
^
BtOgre21/sources/BtOgreGP.cpp:460:161: error: no matching function for call to ‘Ogre::Vector3::Vector3(<brace-enclosed initializer list>)’
mVertexBuffer[prevSize + i + subMeshOffset] = mTransform * Vector3{ Bitwise::halfToFloat(pos[0]), Bitwise::halfToFloat(pos[1]), Bitwise::halfToFloat(pos[2]) };
^
BtOgre21/sources/BtOgreGP.cpp:460:161: note: candidates are:
In file included from /usr/local/include/OGRE/OgreMatrix3.h:33:0,
from /usr/local/include/OGRE/OgreMatrix4.h:36,
from /usr/local/include/OGRE/OgreNode.h:33,
from /usr/local/include/OGRE/OgreSceneNode.h:33,
from BtOgre21/include/BtOgrePG.h:20,
from BtOgre21/sources/BtOgreGP.cpp:16:
/usr/local/include/OGRE/OgreVector3.h:88:25: note: Ogre::Vector3::Vector3(Ogre::Real)
inline explicit Vector3( const Real scaler )
^
/usr/local/include/OGRE/OgreVector3.h:88:25: note: candidate expects 1 argument, 3 provided
/usr/local/include/OGRE/OgreVector3.h:83:25: note: Ogre::Vector3::Vector3(Ogre::Real*)
inline explicit Vector3( Real* const r )
^
/usr/local/include/OGRE/OgreVector3.h:83:25: note: candidate expects 1 argument, 3 provided
/usr/local/include/OGRE/OgreVector3.h:76:25: note: Ogre::Vector3::Vector3(const int*)
inline explicit Vector3( const int afCoordinate[3] )
^
/usr/local/include/OGRE/OgreVector3.h:76:25: note: candidate expects 1 argument, 3 provided
/usr/local/include/OGRE/OgreVector3.h:69:25: note: Ogre::Vector3::Vector3(const Real*)
inline explicit Vector3( const Real afCoordinate[3] )
^
/usr/local/include/OGRE/OgreVector3.h:69:25: note: candidate expects 1 argument, 3 provided
/usr/local/include/OGRE/OgreVector3.h:64:16: note: Ogre::Vector3::Vector3(Ogre::Real, Ogre::Real, Ogre::Real)
inline Vector3( const Real fX, const Real fY, const Real fZ )
^
/usr/local/include/OGRE/OgreVector3.h:64:16: note: no known conversion for argument 1 from ‘<type error>’ to ‘Ogre::Real {aka float}’
/usr/local/include/OGRE/OgreVector3.h:60:16: note: Ogre::Vector3::Vector3()
inline Vector3()
^
/usr/local/include/OGRE/OgreVector3.h:60:16: note: candidate expects 0 arguments, 3 provided
/usr/local/include/OGRE/OgreVector3.h:50:23: note: Ogre::Vector3::Vector3(const Ogre::Vector3&)
class _OgreExport Vector3
^
/usr/local/include/OGRE/OgreVector3.h:50:23: note: candidate expects 1 argument, 3 provided
BtOgre21/sources/BtOgreGP.cpp:464:26: error: ‘subMeshVerticiesNum’ was not declared in this scope
for (size_t i = 0; i < subMeshVerticiesNum; ++i)
^
BtOgre21/sources/BtOgreGP.cpp:466:9: error: ‘pos’ does not name a type
auto pos = reinterpret_cast<const Real*>(requests[0].data);
^
BtOgre21/sources/BtOgreGP.cpp:468:4: error: ‘mVertexBuffer’ was not declared in this scope
mVertexBuffer[prevSize + i + subMeshOffset] = mTransform * Vector3(pos);
^
BtOgre21/sources/BtOgreGP.cpp:468:71: error: ‘pos’ was not declared in this scope
mVertexBuffer[prevSize + i + subMeshOffset] = mTransform * Vector3(pos);
^
BtOgre21/sources/BtOgreGP.cpp:474:19: error: ‘subMeshVerticiesNum’ was not declared in this scope
subMeshOffset += subMeshVerticiesNum;
^
BtOgre21/sources/BtOgreGP.cpp: In member function ‘void BtOgre::VertexIndexToShape::extractV2SubMeshIndexBuffer(const size_t&, const size_t&, const bool&, Ogre::IndexBufferPacked*)’:
BtOgre21/sources/BtOgreGP.cpp:489:8: error: ‘asyncTicket’ does not name a type
auto asyncTicket = indexBuffer->readRequest(0, indexBuffer->getNumElements());
^
BtOgre21/sources/BtOgreGP.cpp:491:44: error: ‘asyncTicket’ was not declared in this scope
if (indices32) loadV2IndexBuffer<uint32>(asyncTicket, offset, previousSize, indexBuffer->getNumElements());
^
BtOgre21/sources/BtOgreGP.cpp:492:34: error: ‘asyncTicket’ was not declared in this scope
else loadV2IndexBuffer<uint16>(asyncTicket, offset, previousSize, indexBuffer->getNumElements());
^
BtOgre21/sources/BtOgreGP.cpp: In member function ‘void BtOgre::StaticMeshToShapeConverter::addMesh(const Ogre::Mesh*, const Ogre::Matrix4&)’:
BtOgre21/sources/BtOgreGP.cpp:507:12: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default]
mBounds = Vector3{ -1, -1, -1 };
^
BtOgre21/sources/BtOgreGP.cpp:523:7: error: ‘indexOffset’ does not name a type
auto indexOffset{ mIndexBuffer.empty() ? 0U : mIndexBuffer[mIndexBuffer.size() - 1] };
^
BtOgre21/sources/BtOgreGP.cpp:529:19: error: ISO C++ forbids declaration of ‘subMesh’ with no type [-fpermissive]
for (const auto& subMesh : mesh->getSubMeshes())
^
BtOgre21/sources/BtOgreGP.cpp:529:29: error: range-based ‘for’ loops are not allowed in C++98 mode
for (const auto& subMesh : mesh->getSubMeshes())
^
BtOgre21/sources/BtOgreGP.cpp:532:14: error: ‘vaos’ does not name a type
const auto vaos = subMesh->mVao[0];
^
BtOgre21/sources/BtOgreGP.cpp:533:7: error: ‘vaos’ was not declared in this scope
if (vaos.empty()) continue;
^
BtOgre21/sources/BtOgreGP.cpp:536:14: error: ‘vao’ does not name a type
const auto vao = vaos[0];
^
BtOgre21/sources/BtOgreGP.cpp:539:15: error: ISO C++ forbids declaration of ‘vertexBuffers’ with no type [-fpermissive]
const auto& vertexBuffers = vao->getVertexBuffers();
^
BtOgre21/sources/BtOgreGP.cpp:539:31: error: ‘vao’ was not declared in this scope
const auto& vertexBuffers = vao->getVertexBuffers();
^
BtOgre21/sources/BtOgreGP.cpp:540:14: error: ‘indexBuffer’ does not name a type
const auto indexBuffer = vao->getIndexBuffer();
^
BtOgre21/sources/BtOgreGP.cpp:554:4: error: ‘indexOffset’ was not declared in this scope
indexOffset,
^
BtOgre21/sources/BtOgreGP.cpp:556:4: error: ‘indexBuffer’ was not declared in this scope
indexBuffer);
^
BtOgre21/sources/BtOgreGP.cpp:559:33: error: invalid types ‘const int[int]’ for array subscript
indexOffset += vertexBuffers[0]->getNumElements();
^
BtOgre21/sources/BtOgreGP.cpp: In constructor ‘BtOgre::AnimatedMeshToShapeConverter::AnimatedMeshToShapeConverter(Ogre::v1::Entity*, const Ogre::Matrix4&)’:
BtOgre21/sources/BtOgreGP.cpp:572:10: error: ‘nullptr’ was not declared in this scope
mEntity(nullptr),
^
BtOgre21/sources/BtOgreGP.cpp: In constructor ‘BtOgre::AnimatedMeshToShapeConverter::AnimatedMeshToShapeConverter()’:
BtOgre21/sources/BtOgreGP.cpp:582:10: error: ‘nullptr’ was not declared in this scope
mEntity(nullptr),
^
BtOgre21/sources/BtOgreGP.cpp: In member function ‘void BtOgre::AnimatedMeshToShapeConverter::addEntity(Ogre::v1::Entity*, const Ogre::Matrix4&)’:
BtOgre21/sources/BtOgreGP.cpp:619:8: error: ‘sub_mesh’ does not name a type
auto sub_mesh = mEntity->getSubEntity(i)->getSubMesh();
^
BtOgre21/sources/BtOgreGP.cpp:621:8: error: ‘sub_mesh’ was not declared in this scope
if (!sub_mesh->useSharedVertices)
^
BtOgre21/sources/BtOgreGP.cpp: In member function ‘void BtOgre::AnimatedMeshToShapeConverter::addMesh(const MeshPtr&, const Ogre::Matrix4&)’:
BtOgre21/sources/BtOgreGP.cpp:651:4: error: ‘nullptr’ was not declared in this scope
nullptr,
^
BtOgre21/sources/BtOgreGP.cpp:657:8: error: ‘sub_mesh’ does not name a type
auto sub_mesh = mesh->getSubMesh(i);
^
BtOgre21/sources/BtOgreGP.cpp:659:8: error: ‘sub_mesh’ was not declared in this scope
if (!sub_mesh->useSharedVertices)
^
BtOgre21/sources/BtOgreGP.cpp:664:5: error: ‘nullptr’ was not declared in this scope
nullptr,
^
BtOgre21/sources/BtOgreGP.cpp: In member function ‘bool BtOgre::AnimatedMeshToShapeConverter::getBoneVertices(unsigned char, unsigned int&, Ogre::Vector3*&, const Ogre::Vector3&)’:
BtOgre21/sources/BtOgreGP.cpp:679:7: error: ‘i’ does not name a type
auto i = mBoneIndex->find(bone);
^
BtOgre21/sources/BtOgreGP.cpp:681:6: error: ‘i’ was not declared in this scope
if (i == mBoneIndex->end())
^
BtOgre21/sources/BtOgreGP.cpp:681:11: error: ‘mBoneIndex’ was not declared in this scope
if (i == mBoneIndex->end())
^
BtOgre21/sources/BtOgreGP.cpp:684:6: error: ‘i’ was not declared in this scope
if (i->second->empty())
^
BtOgre21/sources/BtOgreGP.cpp:687:43: error: ‘i’ was not declared in this scope
vertex_count = static_cast<unsigned int>(i->second->size()) + 1;
^
BtOgre21/sources/BtOgreGP.cpp:703:7: error: ‘j’ does not name a type
auto j = i->second->begin();
^
BtOgre21/sources/BtOgreGP.cpp:704:9: error: ‘j’ was not declared in this scope
while (j != i->second->end())
^
BtOgre21/sources/BtOgreGP.cpp: In member function ‘btBoxShape* BtOgre::AnimatedMeshToShapeConverter::createAlignedBox(unsigned char, const Ogre::Vector3&, const Ogre::Quaternion&)’:
BtOgre21/sources/BtOgreGP.cpp:721:10: error: ‘nullptr’ was not declared in this scope
return nullptr;
^
BtOgre21/sources/BtOgreGP.cpp:723:15: error: ISO C++ forbids declaration of ‘min_vec’ with no type [-fpermissive]
auto min_vec(vertices[0]);
^
BtOgre21/sources/BtOgreGP.cpp:723:26: error: cannot convert ‘Ogre::Vector3’ to ‘int’ in initialization
auto min_vec(vertices[0]);
^
BtOgre21/sources/BtOgreGP.cpp:724:15: error: ISO C++ forbids declaration of ‘max_vec’ with no type [-fpermissive]
auto max_vec(vertices[0]);
^
BtOgre21/sources/BtOgreGP.cpp:724:26: error: cannot convert ‘Ogre::Vector3’ to ‘int’ in initialization
auto max_vec(vertices[0]);
^
BtOgre21/sources/BtOgreGP.cpp:728:11: error: request for member ‘x’ in ‘min_vec’, which is of non-class type ‘int’
min_vec.x = std::min(min_vec.x, vertices[j].x);
^
BtOgre21/sources/BtOgreGP.cpp:728:32: error: request for member ‘x’ in ‘min_vec’, which is of non-class type ‘int’
min_vec.x = std::min(min_vec.x, vertices[j].x);
^
BtOgre21/sources/BtOgreGP.cpp:729:11: error: request for member ‘y’ in ‘min_vec’, which is of non-class type ‘int’
min_vec.y = std::min(min_vec.y, vertices[j].y);
^
BtOgre21/sources/BtOgreGP.cpp:729:32: error: request for member ‘y’ in ‘min_vec’, which is of non-class type ‘int’
min_vec.y = std::min(min_vec.y, vertices[j].y);
^
BtOgre21/sources/BtOgreGP.cpp:730:11: error: request for member ‘z’ in ‘min_vec’, which is of non-class type ‘int’
min_vec.z = std::min(min_vec.z, vertices[j].z);
^
BtOgre21/sources/BtOgreGP.cpp:730:32: error: request for member ‘z’ in ‘min_vec’, which is of non-class type ‘int’
min_vec.z = std::min(min_vec.z, vertices[j].z);
^
BtOgre21/sources/BtOgreGP.cpp:732:11: error: request for member ‘x’ in ‘max_vec’, which is of non-class type ‘int’
max_vec.x = std::max(max_vec.x, vertices[j].x);
^
BtOgre21/sources/BtOgreGP.cpp:732:32: error: request for member ‘x’ in ‘max_vec’, which is of non-class type ‘int’
max_vec.x = std::max(max_vec.x, vertices[j].x);
^
BtOgre21/sources/BtOgreGP.cpp:733:11: error: request for member ‘y’ in ‘max_vec’, which is of non-class type ‘int’
max_vec.y = std::max(max_vec.y, vertices[j].y);
^
BtOgre21/sources/BtOgreGP.cpp:733:32: error: request for member ‘y’ in ‘max_vec’, which is of non-class type ‘int’
max_vec.y = std::max(max_vec.y, vertices[j].y);
^
BtOgre21/sources/BtOgreGP.cpp:734:11: error: request for member ‘z’ in ‘max_vec’, which is of non-class type ‘int’
max_vec.z = std::max(max_vec.z, vertices[j].z);
^
BtOgre21/sources/BtOgreGP.cpp:734:32: error: request for member ‘z’ in ‘max_vec’, which is of non-class type ‘int’
max_vec.z = std::max(max_vec.z, vertices[j].z);
^
BtOgre21/sources/BtOgreGP.cpp:736:25: error: ISO C++ forbids declaration of ‘maxMinusMin’ with no type [-fpermissive]
const auto maxMinusMin(max_vec - min_vec);
^
BtOgre21/sources/BtOgreGP.cpp:737:7: error: ‘box’ does not name a type
auto box = new btBoxShape(Convert::toBullet(maxMinusMin));
^
BtOgre21/sources/BtOgreGP.cpp:746:9: error: ‘box’ was not declared in this scope
return box;
^
BtOgre21/sources/BtOgreGP.cpp: In member function ‘bool BtOgre::AnimatedMeshToShapeConverter::getOrientedBox(unsigned char, const Ogre::Vector3&, const Ogre::Quaternion&, Ogre::Vector3&, Ogre::Vector3*, Ogre::Vector3&)’:
BtOgre21/sources/BtOgreGP.cpp:769:14: error: ‘invVertexCount’ does not name a type
const auto invVertexCount = 1.0f / vertex_count;
^
BtOgre21/sources/BtOgreGP.cpp:770:18: error: ‘invVertexCount’ was not declared in this scope
box_kCenter *= invVertexCount;
^
BtOgre21/sources/BtOgreGP.cpp:772:7: error: ‘orient’ does not name a type
auto orient = boneOrientation;
^
BtOgre21/sources/BtOgreGP.cpp:773:2: error: ‘orient’ was not declared in this scope
orient.ToAxes(box_akAxis);
^
BtOgre21/sources/BtOgreGP.cpp:782:13: error: ISO C++ forbids declaration of ‘kDiff’ with no type [-fpermissive]
auto kDiff(vertices[1] - box_kCenter);
^
BtOgre21/sources/BtOgreGP.cpp:782:38: error: cannot convert ‘Ogre::Vector3’ to ‘int’ in initialization
auto kDiff(vertices[1] - box_kCenter);
^
BtOgre21/sources/BtOgreGP.cpp:783:7: error: ‘fY0Min’ does not name a type
auto fY0Min = kDiff.dotProduct(box_akAxis[0]), fY0Max = fY0Min;
^
BtOgre21/sources/BtOgreGP.cpp:784:7: error: ‘fY1Min’ does not name a type
auto fY1Min = kDiff.dotProduct(box_akAxis[1]), fY1Max = fY1Min;
^
BtOgre21/sources/BtOgreGP.cpp:785:7: error: ‘fY2Min’ does not name a type
auto fY2Min = kDiff.dotProduct(box_akAxis[2]), fY2Max = fY2Min;
^
BtOgre21/sources/BtOgreGP.cpp:789:9: error: cannot convert ‘Ogre::Vector3’ to ‘int’ in assignment
kDiff = vertices[i] - box_kCenter;
^
BtOgre21/sources/BtOgreGP.cpp:791:14: error: ‘fY0’ does not name a type
const auto fY0 = kDiff.dotProduct(box_akAxis[0]);
^
BtOgre21/sources/BtOgreGP.cpp:792:7: error: ‘fY0’ was not declared in this scope
if (fY0 < fY0Min)
^
BtOgre21/sources/BtOgreGP.cpp:792:13: error: ‘fY0Min’ was not declared in this scope
if (fY0 < fY0Min)
^
BtOgre21/sources/BtOgreGP.cpp:794:18: error: ‘fY0Max’ was not declared in this scope
else if (fY0 > fY0Max)
^
BtOgre21/sources/BtOgreGP.cpp:797:14: error: ‘fY1’ does not name a type
const auto fY1 = kDiff.dotProduct(box_akAxis[1]);
^
BtOgre21/sources/BtOgreGP.cpp:798:7: error: ‘fY1’ was not declared in this scope
if (fY1 < fY1Min)
^
BtOgre21/sources/BtOgreGP.cpp:798:13: error: ‘fY1Min’ was not declared in this scope
if (fY1 < fY1Min)
^
BtOgre21/sources/BtOgreGP.cpp:800:18: error: ‘fY1Max’ was not declared in this scope
else if (fY1 > fY1Max)
^
BtOgre21/sources/BtOgreGP.cpp:803:14: error: ‘fY2’ does not name a type
const auto fY2 = kDiff.dotProduct(box_akAxis[2]);
^
BtOgre21/sources/BtOgreGP.cpp:804:7: error: ‘fY2’ was not declared in this scope
if (fY2 < fY2Min)
^
BtOgre21/sources/BtOgreGP.cpp:804:13: error: ‘fY2Min’ was not declared in this scope
if (fY2 < fY2Min)
^
BtOgre21/sources/BtOgreGP.cpp:806:18: error: ‘fY2Max’ was not declared in this scope
else if (fY2 > fY2Max)
^
BtOgre21/sources/BtOgreGP.cpp:810:31: error: ‘fY0Max’ was not declared in this scope
box_afExtent.x = Real(0.5f)*(fY0Max - fY0Min);
^
BtOgre21/sources/BtOgreGP.cpp:810:40: error: ‘fY0Min’ was not declared in this scope
box_afExtent.x = Real(0.5f)*(fY0Max - fY0Min);
^
BtOgre21/sources/BtOgreGP.cpp:811:31: error: ‘fY1Max’ was not declared in this scope
box_afExtent.y = Real(0.5f)*(fY1Max - fY1Min);
^
BtOgre21/sources/BtOgreGP.cpp:811:40: error: ‘fY1Min’ was not declared in this scope
box_afExtent.y = Real(0.5f)*(fY1Max - fY1Min);
^
BtOgre21/sources/BtOgreGP.cpp:812:31: error: ‘fY2Max’ was not declared in this scope
box_afExtent.z = Real(0.5f)*(fY2Max - fY2Min);
^
BtOgre21/sources/BtOgreGP.cpp:812:40: error: ‘fY2Min’ was not declared in this scope
box_afExtent.z = Real(0.5f)*(fY2Max - fY2Min);
^
BtOgre21/sources/BtOgreGP.cpp: In member function ‘btBoxShape* BtOgre::AnimatedMeshToShapeConverter::createOrientedBox(unsigned char, const Ogre::Vector3&, const Ogre::Quaternion&)’:
BtOgre21/sources/BtOgreGP.cpp:835:10: error: ‘nullptr’ was not declared in this scope
return nullptr;
^
BtOgre21/sources/BtOgreGP.cpp:837:7: error: ‘geom’ does not name a type
auto geom = new btBoxShape(Convert::toBullet(box_afExtent));
^
BtOgre21/sources/BtOgreGP.cpp:840:9: error: ‘geom’ was not declared in this scope
return geom;
^
make[2]: *** [CMakeFiles/BtOgre21.dir/sources/BtOgreGP.cpp.o] Error 1
make[1]: *** [CMakeFiles/BtOgre21.dir/all] Error 2
make: *** [all] Error 2