Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Compilation error #1

@luntik2012

Description

@luntik2012

Ubuntu 16.04, gcc5.2.1, Qt version 5.6.1

../ViewerCore/Object.cpp: In member function ‘virtual bool Object::PostGLInitialize()’:
../ViewerCore/Object.cpp:45:49: error: ‘glGenVertexArrays’ was not declared in this scope
glGenVertexArrays(1, &this->vertex_array_handle);
^
../ViewerCore/Object.cpp:46:45: error: ‘glBindVertexArray’ was not declared in this scope
glBindVertexArray(this->vertex_array_handle);
^
../ViewerCore/Object.cpp:48:43: error: ‘glGenBuffers’ was not declared in this scope
glGenBuffers(1, &this->vertex_data_handle);
^
../ViewerCore/Object.cpp:49:56: error: ‘glBindBuffer’ was not declared in this scope
glBindBuffer(GL_ARRAY_BUFFER, this->vertex_data_handle);
^
../ViewerCore/Object.cpp:51:120: error: ‘glBufferData’ was not declared in this scope
glBufferData(GL_ARRAY_BUFFER, this->vertices.size() * sizeof(VertexAttributesPCNT), &this->vertices[0], GL_STATIC_DRAW);
^
../ViewerCore/Object.cpp: In member function ‘virtual void Object::TakeDown()’:
../ViewerCore/Object.cpp:89:53: error: ‘glDeleteVertexArrays’ was not declared in this scope
glDeleteVertexArrays(1, &this->vertex_array_handle);
^
../ViewerCore/Object.cpp:92:47: error: ‘glDeleteBuffers’ was not declared in this scope
glDeleteBuffers(1, &this->vertex_data_handle);
^
../ViewerCore/Object.cpp:95:50: error: ‘glDeleteBuffers’ was not declared in this scope
glDeleteBuffers(1, &this->vertex_indices_handle);
^
../ViewerCore/Object.cpp:98:61: error: ‘glDeleteBuffers’ was not declared in this scope
glDeleteBuffers(1, &this->vertex_indices_wire_frame_handle);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions