Now that cmake . command is working again, it seems that there is a different error:
Code: Select all
In file included from /Users/masterbel2/Spring/Sources/spring/tools/unitsync/../../rts/Sim/Objects/SolidObject.h:8:0,
from /Users/masterbel2/Spring/Sources/spring/tools/unitsync/../../rts/Sim/Features/Feature.h:11,
from /Users/masterbel2/Spring/Sources/spring/rts/Lua/LuaUtils.h:17,
from /Users/masterbel2/Spring/Sources/spring/rts/Lua/LuaConstEngine.cpp:5:
/Users/masterbel2/Spring/Sources/spring/tools/unitsync/../../rts/Rendering/Models/3DModel.h: In member function 'void S3DModel::BindVertexArray() const':
/Users/masterbel2
/Spring/Sources/spring/tools/unitsync/../../rts/Rendering/Models/3DModel.h:262:33: error: 'glBindVertexArray' was not declared in this scope
void BindVertexArray() const { glBindVertexArray(vertexArray); }
^~~~~~~~~~~~~~~~~
/Users/masterbel2/Spring/Sources/spring/tools/unitsync/../../rts/Rendering/Models/3DModel.h:262:33: note: suggested alternative: 'BindVertexArray'
void BindVertexArray() const { glBindVertexArray(vertexArray); }
^~~~~~~~~~~~~~~~~
BindVertexArray
/Users/masterbel2/Spring/Sources/spring/tools/unitsync/../../rts/Rendering/Models/3DModel.h: In member function 'void S3DModel::UnbindVertexArray() const':
/Users/masterbel2/Spring/Sources/spring/tools/unitsync/../../rts/Rendering/Models/3DModel.h:265:35: error: 'glBindVertexArray' was not declared in this scope
void UnbindVertexArray() const { glBindVertexArray(0); }
^~~~~~~~~~~~~~~~~
/Users/masterbel2/Spring/Sources/spring/tools/unitsync/../../rts/Rendering/Models/3DModel.h:265:35: note: suggested alternative: 'BindVertexArray'
void UnbindVertexArray() const { glBindVertexArray(0); }
^~~~~~~~~~~~~~~~~
BindVertexArray
Now glBindVertexArray is declared in the glew.h included in Spring, so I don't know what's going on there. Apparently all other GL functions in that file are working? I don't know. No one else seems to ever have a problem with it. Turboss's buildslave comes up with the same issue.
If I were to include the said file (because based on my research there's a slight chance it's to blame) I don't know where I'd include it? Simply in 3DModel.h? And would include glew.h or OpenGL/gl3.h?