-
Notifications
You must be signed in to change notification settings - Fork 259
Build Issue #81
Comments
Also interested in your work but facing the same issue. |
I was also having an issue with compiling Pangolin, but was able to resolve it by using v0.6 instead of master: https://github.com/stevenlovegrove/Pangolin/tree/v0.6 |
I use the command below to make it works without having error. Also when Get Pangolingit clone --recursive https://github.com/stevenlovegrove/Pangolin.git Install dependencies (as described above, or your preferred method)./scripts/install_prerequisites.sh recommended git checkout v0.6 Configure and buildmkdir build && cd build sudo make install |
Is pangolin::get a valid command? I managed to get the other parts working but when I try to compile the PreprocessMesh.cpp file, I get errors saying /home/parawr/Projects/scenegraphs/external/DeepSDF/src/PreprocessMesh.cpp:349:23: error: ‘get’ is not a member of ‘pangolin’ |
@ShanPoon I tried using the v0.6, but still got a similar error (although I did Error : Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): |
This solved a lot of problem when run the 'make -j' in DeepSDF build git clone https://github.com/stevenlovegrove/Pangolin.git -b v0.6 |
@DerekGrant I am trying to build it on colab. Please take a look at the error. I don't seem to find any solution. |
Any updates? |
for the newest pangolin ,I figure it out, change you makelists.txt in deepsdf like this: find_package(CLI11 CONFIG REQUIRED) add_subdirectory(third-party/cnpy) set(SOURCES add_executable(PreprocessMesh src/PreprocessMesh.cpp ${SOURCES}) add_executable(SampleVisibleMeshSurface src/SampleVisibleMeshSurface.cpp ${SOURCES}) |
When I make the project with the CMakeLists.txt from @AlexWang1900 I get the following error: It looks like the linker cannot find these modules. Does anyone know how to fix this? |
This worked for me, the current ffmpeg version doesn't seem to work with it but it can be turned off with: cmake -DBUILD_PANGOLIN_FFMPEG=OFF .. |
Hi there, I would like to know what version of your GCC and G++ are for compiling this. Because when I tried your setting, I still meet the problem of: [ 14%] Built target cnpy |
Hi, I'm a master's student and I'm interested in your paper.
I built and installed requied library(CLI11, Pangolin, nanoflann, Eigen3).
However I can't build this Pre-processing Project.
Perhaps I'm having problems with the include graphics api.
I can't find anything addressing this issue. What do I need to do to get this to compile?
thank you.
I get:
DeepSDF/build$ cmake --build .
[ 14%] Built target cnpy
[ 21%] Building CXX object CMakeFiles/SampleVisibleMeshSurface.dir/src/SampleVisibleMeshSurface.cpp.o
In file included from /home/keito/develop/3dml/DeepSDFProject/DeepSDF/src/SampleVisibleMeshSurface.cpp:11:0:
/usr/local/include/pangolin/geometry/geometry.h:55:32: error: ‘variant’ in namespace ‘std’ does not name a template type
using Attribute = std::variant<Image,Image<uint32_t>,Image<uint16_t>,Image<uint8_t>>;
^~~~~~~
/usr/local/include/pangolin/geometry/geometry.h:57:31: error: ‘Attribute’ was not declared in this scope
std::map<std::string, Attribute> attributes;
^~~~~~~~~
/usr/local/include/pangolin/geometry/geometry.h:57:40: error: template argument 2 is invalid
std::map<std::string, Attribute> attributes;
^
/usr/local/include/pangolin/geometry/geometry.h:57:40: error: template argument 4 is invalid
In file included from /usr/local/include/pangolin/gl/gl.h:295:0,
from /usr/local/include/pangolin/geometry/glgeometry.h:31,
from /home/keito/develop/3dml/DeepSDFProject/DeepSDF/src/SampleVisibleMeshSurface.cpp:12:
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘void pangolin::GlTexture::CopyFrom(const pangolin::GlTexture&)’:
/usr/local/include/pangolin/gl/gl.hpp:334:5: error: ‘glCopyImageSubDataNV’ was not declared in this scope
glCopyImageSubDataNV(tex.tid, GL_TEXTURE_2D, 0, 0, 0, 0,
^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:334:5: note: suggested alternative: ‘glCopyColorSubTable’
glCopyImageSubDataNV(tex.tid, GL_TEXTURE_2D, 0, 0, 0, 0,
^~~~~~~~~~~~~~~~~~~~
glCopyColorSubTable
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘void pangolin::GlRenderBuffer::Reinitialise(GLint, GLint, GLint)’:
/usr/local/include/pangolin/gl/gl.hpp:508:9: error: ‘glDeleteRenderbuffersEXT’ was not declared in this scope
glDeleteRenderbuffersEXT(1, &rbid);
^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:508:9: note: suggested alternative: ‘GlRenderBuffer’
glDeleteRenderbuffersEXT(1, &rbid);
^~~~~~~~~~~~~~~~~~~~~~~~
GlRenderBuffer
/usr/local/include/pangolin/gl/gl.hpp:513:5: error: ‘glGenRenderbuffersEXT’ was not declared in this scope
glGenRenderbuffersEXT(1, &rbid);
^~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:513:5: note: suggested alternative: ‘GlRenderBuffer’
glGenRenderbuffersEXT(1, &rbid);
^~~~~~~~~~~~~~~~~~~~~
GlRenderBuffer
/usr/local/include/pangolin/gl/gl.hpp:514:5: error: ‘glBindRenderbufferEXT’ was not declared in this scope
glBindRenderbufferEXT(GL_RENDERBUFFER_EXT, rbid);
^~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:514:5: note: suggested alternative: ‘GlRenderBuffer’
glBindRenderbufferEXT(GL_RENDERBUFFER_EXT, rbid);
^~~~~~~~~~~~~~~~~~~~~
GlRenderBuffer
/usr/local/include/pangolin/gl/gl.hpp:515:5: error: ‘glRenderbufferStorageEXT’ was not declared in this scope
glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, internal_format, width, height);
^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:515:5: note: suggested alternative: ‘GlRenderBuffer’
glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, internal_format, width, height);
^~~~~~~~~~~~~~~~~~~~~~~~
GlRenderBuffer
/usr/local/include/pangolin/gl/gl.hpp: In destructor ‘pangolin::GlRenderBuffer::~GlRenderBuffer()’:
/usr/local/include/pangolin/gl/gl.hpp:522:9: error: ‘glDeleteRenderbuffersEXT’ was not declared in this scope
glDeleteRenderbuffersEXT(1, &rbid);
^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:522:9: note: suggested alternative: ‘GlRenderBuffer’
glDeleteRenderbuffersEXT(1, &rbid);
^~~~~~~~~~~~~~~~~~~~~~~~
GlRenderBuffer
/usr/local/include/pangolin/gl/gl.hpp: In destructor ‘pangolin::GlFramebuffer::~GlFramebuffer()’:
/usr/local/include/pangolin/gl/gl.hpp:571:9: error: ‘glDeleteFramebuffersEXT’ was not declared in this scope
glDeleteFramebuffersEXT(1, &fbid);
^~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:571:9: note: suggested alternative: ‘GlFramebuffer’
glDeleteFramebuffersEXT(1, &fbid);
^~~~~~~~~~~~~~~~~~~~~~~
GlFramebuffer
/usr/local/include/pangolin/gl/gl.hpp: In constructor ‘pangolin::GlFramebuffer::GlFramebuffer(pangolin::GlTexture&, pangolin::GlRenderBuffer&)’:
/usr/local/include/pangolin/gl/gl.hpp:578:5: error: ‘glGenFramebuffersEXT’ was not declared in this scope
glGenFramebuffersEXT(1, &fbid);
^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:578:5: note: suggested alternative: ‘GlFramebuffer’
glGenFramebuffersEXT(1, &fbid);
^~~~~~~~~~~~~~~~~~~~
GlFramebuffer
/usr/local/include/pangolin/gl/gl.hpp: In constructor ‘pangolin::GlFramebuffer::GlFramebuffer(pangolin::GlTexture&, pangolin::GlTexture&, pangolin::GlRenderBuffer&)’:
/usr/local/include/pangolin/gl/gl.hpp:587:5: error: ‘glGenFramebuffersEXT’ was not declared in this scope
glGenFramebuffersEXT(1, &fbid);
^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:587:5: note: suggested alternative: ‘GlFramebuffer’
glGenFramebuffersEXT(1, &fbid);
^~~~~~~~~~~~~~~~~~~~
GlFramebuffer
/usr/local/include/pangolin/gl/gl.hpp: In constructor ‘pangolin::GlFramebuffer::GlFramebuffer(pangolin::GlTexture&, pangolin::GlTexture&, pangolin::GlTexture&, pangolin::GlRenderBuffer&)’:
/usr/local/include/pangolin/gl/gl.hpp:597:5: error: ‘glGenFramebuffersEXT’ was not declared in this scope
glGenFramebuffersEXT(1, &fbid);
^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:597:5: note: suggested alternative: ‘GlFramebuffer’
glGenFramebuffersEXT(1, &fbid);
^~~~~~~~~~~~~~~~~~~~
GlFramebuffer
/usr/local/include/pangolin/gl/gl.hpp: In constructor ‘pangolin::GlFramebuffer::GlFramebuffer(pangolin::GlTexture&, pangolin::GlTexture&, pangolin::GlTexture&, pangolin::GlTexture&, pangolin::GlRenderBuffer&)’:
/usr/local/include/pangolin/gl/gl.hpp:608:5: error: ‘glGenFramebuffersEXT’ was not declared in this scope
glGenFramebuffersEXT(1, &fbid);
^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:608:5: note: suggested alternative: ‘GlFramebuffer’
glGenFramebuffersEXT(1, &fbid);
^~~~~~~~~~~~~~~~~~~~
GlFramebuffer
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘void pangolin::GlFramebuffer::Bind() const’:
/usr/local/include/pangolin/gl/gl.hpp:619:5: error: ‘glBindFramebufferEXT’ was not declared in this scope
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fbid);
^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:619:5: note: suggested alternative: ‘GlFramebuffer’
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fbid);
^~~~~~~~~~~~~~~~~~~~
GlFramebuffer
/usr/local/include/pangolin/gl/gl.hpp:620:5: error: ‘glDrawBuffers’ was not declared in this scope
glDrawBuffers( attachments, attachment_buffers );
^~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:620:5: note: suggested alternative: ‘glDrawBuffer’
glDrawBuffers( attachments, attachment_buffers );
^~~~~~~~~~~~~
glDrawBuffer
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘void pangolin::GlFramebuffer::Reinitialise()’:
/usr/local/include/pangolin/gl/gl.hpp:626:9: error: ‘glDeleteFramebuffersEXT’ was not declared in this scope
glDeleteFramebuffersEXT(1, &fbid);
^~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:626:9: note: suggested alternative: ‘GlFramebuffer’
glDeleteFramebuffersEXT(1, &fbid);
^~~~~~~~~~~~~~~~~~~~~~~
GlFramebuffer
/usr/local/include/pangolin/gl/gl.hpp:628:5: error: ‘glGenFramebuffersEXT’ was not declared in this scope
glGenFramebuffersEXT(1, &fbid);
^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:628:5: note: suggested alternative: ‘GlFramebuffer’
glGenFramebuffersEXT(1, &fbid);
^~~~~~~~~~~~~~~~~~~~
GlFramebuffer
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘void pangolin::GlFramebuffer::Unbind() const’:
/usr/local/include/pangolin/gl/gl.hpp:633:5: error: ‘glDrawBuffers’ was not declared in this scope
glDrawBuffers( 1, attachment_buffers );
^~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:633:5: note: suggested alternative: ‘glDrawBuffer’
glDrawBuffers( 1, attachment_buffers );
^~~~~~~~~~~~~
glDrawBuffer
/usr/local/include/pangolin/gl/gl.hpp:634:5: error: ‘glBindFramebufferEXT’ was not declared in this scope
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);
^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:634:5: note: suggested alternative: ‘GlFramebuffer’
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);
^~~~~~~~~~~~~~~~~~~~
GlFramebuffer
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘GLenum pangolin::GlFramebuffer::AttachColour(pangolin::GlTexture&)’:
/usr/local/include/pangolin/gl/gl.hpp:642:5: error: ‘glBindFramebufferEXT’ was not declared in this scope
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fbid);
^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:642:5: note: suggested alternative: ‘GlFramebuffer’
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fbid);
^~~~~~~~~~~~~~~~~~~~
GlFramebuffer
/usr/local/include/pangolin/gl/gl.hpp:643:5: error: ‘glFramebufferTexture2DEXT’ was not declared in this scope
glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, color_attachment, GL_TEXTURE_2D, tex.tid, 0);
^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘void pangolin::GlFramebuffer::AttachDepth(pangolin::GlRenderBuffer&)’:
/usr/local/include/pangolin/gl/gl.hpp:654:5: error: ‘glBindFramebufferEXT’ was not declared in this scope
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fbid);
^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:654:5: note: suggested alternative: ‘GlFramebuffer’
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fbid);
^~~~~~~~~~~~~~~~~~~~
GlFramebuffer
/usr/local/include/pangolin/gl/gl.hpp:656:5: error: ‘glFramebufferRenderbufferEXT’ was not declared in this scope
glFramebufferRenderbufferEXT(GL_FRAMEBUFFER_EXT, GL_DEPTH_ATTACHMENT_EXT, GL_RENDERBUFFER_EXT, rb.rbid);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘void pangolin::GlBufferData::Free()’:
/usr/local/include/pangolin/gl/gl.hpp:712:9: error: ‘glDeleteBuffers’ was not declared in this scope
glDeleteBuffers(1, &bo);
^~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:712:9: note: suggested alternative: ‘glSelectBuffer’
glDeleteBuffers(1, &bo);
^~~~~~~~~~~~~~~
glSelectBuffer
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘void pangolin::GlBufferData::Reinitialise(pangolin::GlBufferType, GLsizeiptr, GLenum, const void*)’:
/usr/local/include/pangolin/gl/gl.hpp:729:9: error: ‘glGenBuffers’ was not declared in this scope
glGenBuffers(1, &bo);
^~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:729:9: note: suggested alternative: ‘glReadBuffer’
glGenBuffers(1, &bo);
^~~~~~~~~~~~
glReadBuffer
/usr/local/include/pangolin/gl/gl.hpp:737:5: error: ‘glBufferData’ was not declared in this scope
glBufferData(buffer_type, size_bytes, data, gluse);
^~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:737:5: note: suggested alternative: ‘GlBufferData’
glBufferData(buffer_type, size_bytes, data, gluse);
^~~~~~~~~~~~
GlBufferData
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘void pangolin::GlBufferData::Bind() const’:
/usr/local/include/pangolin/gl/gl.hpp:743:5: error: ‘glBindBuffer’ was not declared in this scope
glBindBuffer(buffer_type, bo);
^~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:743:5: note: suggested alternative: ‘glReadBuffer’
glBindBuffer(buffer_type, bo);
^~~~~~~~~~~~
glReadBuffer
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘void pangolin::GlBufferData::Unbind() const’:
/usr/local/include/pangolin/gl/gl.hpp:748:5: error: ‘glBindBuffer’ was not declared in this scope
glBindBuffer(buffer_type, 0);
^~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:748:5: note: suggested alternative: ‘glReadBuffer’
glBindBuffer(buffer_type, 0);
^~~~~~~~~~~~
glReadBuffer
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘void pangolin::GlBufferData::Upload(const GLvoid*, GLsizeiptr, GLintptr)’:
/usr/local/include/pangolin/gl/gl.hpp:758:5: error: ‘glBufferSubData’ was not declared in this scope
glBufferSubData(buffer_type,offset,size_bytes,data);
^~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:758:5: note: suggested alternative: ‘GlBufferData’
glBufferSubData(buffer_type,offset,size_bytes,data);
^~~~~~~~~~~~~~~
GlBufferData
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘void pangolin::GlBufferData::Download(GLvoid*, GLsizeiptr, GLintptr) const’:
/usr/local/include/pangolin/gl/gl.hpp:765:5: error: ‘glGetBufferSubData’ was not declared in this scope
glGetBufferSubData(buffer_type, offset, size_bytes, data);
^~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:765:5: note: suggested alternative: ‘GlBufferData’
glGetBufferSubData(buffer_type, offset, size_bytes, data);
^~~~~~~~~~~~~~~~~~
GlBufferData
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘void pangolin::GlBufferData::Upload(const std::vector<_RealType>&, GLintptr)’:
/usr/local/include/pangolin/gl/gl.hpp:773:5: error: there are no arguments to ‘assert’ that depend on a template parameter, so a declaration of ‘assert’ must be available [-fpermissive]
assert(offset + total_bytes <= size_bytes);
^~~~~~
/usr/local/include/pangolin/gl/gl.hpp:773:5: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/usr/local/include/pangolin/gl/gl.hpp: In member function ‘void pangolin::GlBuffer::Resize(GLuint)’:
/usr/local/include/pangolin/gl/gl.hpp:841:9: error: ‘glGetBufferSubData’ was not declared in this scope
glGetBufferSubData(buffer_type, 0, backup_size_bytes, backup);
^~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:841:9: note: suggested alternative: ‘GlBufferData’
glGetBufferSubData(buffer_type, 0, backup_size_bytes, backup);
^~~~~~~~~~~~~~~~~~
GlBufferData
/usr/local/include/pangolin/gl/gl.hpp:842:9: error: ‘glBufferData’ was not declared in this scope
glBufferData(buffer_type, new_num_elements*GlDataTypeBytes(datatype)count_per_element, 0, gluse);
^~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:842:9: note: suggested alternative: ‘GlBufferData’
glBufferData(buffer_type, new_num_elementsGlDataTypeBytes(datatype)*count_per_element, 0, gluse);
^~~~~~~~~~~~
GlBufferData
/usr/local/include/pangolin/gl/gl.hpp:843:9: error: ‘glBufferSubData’ was not declared in this scope
glBufferSubData(buffer_type, 0, backup_size_bytes, backup);
^~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/gl.hpp:843:9: note: suggested alternative: ‘GlBufferData’
glBufferSubData(buffer_type, 0, backup_size_bytes, backup);
^~~~~~~~~~~~~~~
GlBufferData
In file included from /usr/local/include/pangolin/geometry/glgeometry.h:32:0,
from /home/keito/develop/3dml/DeepSDFProject/DeepSDF/src/SampleVisibleMeshSurface.cpp:12:
/usr/local/include/pangolin/gl/glsl.h: In static member function ‘static void pangolin::GlSlUtilities::UseNone()’:
/usr/local/include/pangolin/gl/glsl.h:242:9: error: ‘glUseProgram’ was not declared in this scope
glUseProgram(0);
^~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:242:9: note: suggested alternative: ‘GlSlProgram’
glUseProgram(0);
^~~~~~~~~~~~
GlSlProgram
/usr/local/include/pangolin/gl/glsl.h: In function ‘bool pangolin::IsLinkSuccessPrintLog(GLhandleARB)’:
/usr/local/include/pangolin/gl/glsl.h:331:5: error: ‘glGetProgramiv’ was not declared in this scope
glGetProgramiv(prog, GL_LINK_STATUS, &status);
^~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:331:5: note: suggested alternative: ‘GlSlProgram’
glGetProgramiv(prog, GL_LINK_STATUS, &status);
^~~~~~~~~~~~~~
GlSlProgram
/usr/local/include/pangolin/gl/glsl.h:337:9: error: ‘glGetProgramInfoLog’ was not declared in this scope
glGetProgramInfoLog(prog, PROGRAM_LOG_MAX_LEN, &len, infolog);
^~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/pangolin/geometry/glgeometry.h:32:0,
from /home/keito/develop/3dml/DeepSDFProject/DeepSDF/src/SampleVisibleMeshSurface.cpp:12:
/usr/local/include/pangolin/gl/glsl.h: In function ‘bool pangolin::IsCompileSuccessPrintLog(GLhandleARB, const string&, const string&)’:
/usr/local/include/pangolin/gl/glsl.h:351:5: error: ‘glGetShaderiv’ was not declared in this scope
glGetShaderiv(shader, GL_COMPILE_STATUS, &status);
^~~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:351:5: note: suggested alternative: ‘glGetMapiv’
glGetShaderiv(shader, GL_COMPILE_STATUS, &status);
^~~~~~~~~~~~~
glGetMapiv
/usr/local/include/pangolin/gl/glsl.h:357:9: error: ‘glGetShaderInfoLog’ was not declared in this scope
glGetShaderInfoLog(shader, SHADER_LOG_MAX_LEN, &len, infolog);
^~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:357:9: note: suggested alternative: ‘glGetString’
glGetShaderInfoLog(shader, SHADER_LOG_MAX_LEN, &len, infolog);
^~~~~~~~~~~~~~~~~~
glGetString
/usr/local/include/pangolin/gl/glsl.h: In destructor ‘pangolin::GlSlProgram::~GlSlProgram()’:
/usr/local/include/pangolin/gl/glsl.h:388:9: error: ‘glDeleteProgram’ was not declared in this scope
glDeleteProgram(prog);
^~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:388:9: note: suggested alternative: ‘GlSlProgram’
glDeleteProgram(prog);
^~~~~~~~~~~~~~~
GlSlProgram
/usr/local/include/pangolin/gl/glsl.h: In member function ‘bool pangolin::GlSlProgram::AddPreprocessedShader(pangolin::GlSlShaderType, const string&, const string&)’:
/usr/local/include/pangolin/gl/glsl.h:408:16: error: ‘glCreateProgram’ was not declared in this scope
prog = glCreateProgram();
^~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:408:16: note: suggested alternative: ‘GlSlProgram’
prog = glCreateProgram();
^~~~~~~~~~~~~~~
GlSlProgram
/usr/local/include/pangolin/gl/glsl.h:411:26: error: ‘glCreateShader’ was not declared in this scope
GLhandleARB shader = glCreateShader(shader_type);
^~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:411:26: note: suggested alternative: ‘ClearShaders’
GLhandleARB shader = glCreateShader(shader_type);
^~~~~~~~~~~~~~
ClearShaders
/usr/local/include/pangolin/gl/glsl.h:413:5: error: ‘glShaderSource’ was not declared in this scope
glShaderSource(shader, 1, &source, NULL);
^~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:413:5: note: suggested alternative: ‘glShadeModel’
glShaderSource(shader, 1, &source, NULL);
^~~~~~~~~~~~~~
glShadeModel
/usr/local/include/pangolin/gl/glsl.h:414:5: error: ‘glCompileShader’ was not declared in this scope
glCompileShader(shader);
^~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:414:5: note: suggested alternative: ‘GlSlComputeShader’
glCompileShader(shader);
^~~~~~~~~~~~~~~
GlSlComputeShader
/usr/local/include/pangolin/gl/glsl.h:417:9: error: ‘glAttachShader’ was not declared in this scope
glAttachShader(prog, shader);
^~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:417:9: note: suggested alternative: ‘AddShader’
glAttachShader(prog, shader);
^~~~~~~~~~~~~~
AddShader
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::ClearShaders()’:
/usr/local/include/pangolin/gl/glsl.h:511:9: error: ‘glDetachShader’ was not declared in this scope
glDetachShader(prog, shaders[i]);
^~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:511:9: note: suggested alternative: ‘ClearShaders’
glDetachShader(prog, shaders[i]);
^~~~~~~~~~~~~~
ClearShaders
/usr/local/include/pangolin/gl/glsl.h:512:9: error: ‘glDeleteShader’ was not declared in this scope
glDeleteShader(shaders[i]);
^~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:512:9: note: suggested alternative: ‘GlSlVertexShader’
glDeleteShader(shaders[i]);
^~~~~~~~~~~~~~
GlSlVertexShader
/usr/local/include/pangolin/gl/glsl.h: In member function ‘bool pangolin::GlSlProgram::Link()’:
/usr/local/include/pangolin/gl/glsl.h:645:5: error: ‘glLinkProgram’ was not declared in this scope
glLinkProgram(prog);
^~~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:645:5: note: suggested alternative: ‘GlSlProgram’
glLinkProgram(prog);
^~~~~~~~~~~~~
GlSlProgram
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::Bind()’:
/usr/local/include/pangolin/gl/glsl.h:652:5: error: ‘glUseProgram’ was not declared in this scope
glUseProgram(prog);
^~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:652:5: note: suggested alternative: ‘GlSlProgram’
glUseProgram(prog);
^~~~~~~~~~~~
GlSlProgram
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::SaveBind()’:
/usr/local/include/pangolin/gl/glsl.h:658:5: error: ‘glUseProgram’ was not declared in this scope
glUseProgram(prog);
^~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:658:5: note: suggested alternative: ‘GlSlProgram’
glUseProgram(prog);
^~~~~~~~~~~~
GlSlProgram
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::Unbind()’:
/usr/local/include/pangolin/gl/glsl.h:663:5: error: ‘glUseProgram’ was not declared in this scope
glUseProgram(prev_prog);
^~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:663:5: note: suggested alternative: ‘GlSlProgram’
glUseProgram(prev_prog);
^~~~~~~~~~~~
GlSlProgram
/usr/local/include/pangolin/gl/glsl.h: In member function ‘GLint pangolin::GlSlProgram::GetAttributeHandle(const string&)’:
/usr/local/include/pangolin/gl/glsl.h:668:12: error: ‘glGetAttribLocation’ was not declared in this scope
return glGetAttribLocation(prog, name.c_str());
^~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h: In member function ‘GLint pangolin::GlSlProgram::GetUniformHandle(const string&)’:
/usr/local/include/pangolin/gl/glsl.h:673:12: error: ‘glGetUniformLocation’ was not declared in this scope
return glGetUniformLocation(prog, name.c_str());
^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:673:12: note: suggested alternative: ‘GetUniformHandle’
return glGetUniformLocation(prog, name.c_str());
^~~~~~~~~~~~~~~~~~~~
GetUniformHandle
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::SetUniform(const string&, int)’:
/usr/local/include/pangolin/gl/glsl.h:678:5: error: ‘glUniform1i’ was not declared in this scope
glUniform1i( GetUniformHandle(name), x);
^~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:678:5: note: suggested alternative: ‘SetUniform’
glUniform1i( GetUniformHandle(name), x);
^~~~~~~~~~~
SetUniform
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::SetUniform(const string&, int, int)’:
/usr/local/include/pangolin/gl/glsl.h:683:5: error: ‘glUniform2i’ was not declared in this scope
glUniform2i( GetUniformHandle(name), x1, x2);
^~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:683:5: note: suggested alternative: ‘SetUniform’
glUniform2i( GetUniformHandle(name), x1, x2);
^~~~~~~~~~~
SetUniform
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::SetUniform(const string&, int, int, int)’:
/usr/local/include/pangolin/gl/glsl.h:688:5: error: ‘glUniform3i’ was not declared in this scope
glUniform3i( GetUniformHandle(name), x1, x2, x3);
^~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:688:5: note: suggested alternative: ‘SetUniform’
glUniform3i( GetUniformHandle(name), x1, x2, x3);
^~~~~~~~~~~
SetUniform
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::SetUniform(const string&, int, int, int, int)’:
/usr/local/include/pangolin/gl/glsl.h:693:5: error: ‘glUniform4i’ was not declared in this scope
glUniform4i( GetUniformHandle(name), x1, x2, x3, x4);
^~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:693:5: note: suggested alternative: ‘SetUniform’
glUniform4i( GetUniformHandle(name), x1, x2, x3, x4);
^~~~~~~~~~~
SetUniform
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::SetUniform(const string&, float)’:
/usr/local/include/pangolin/gl/glsl.h:698:5: error: ‘glUniform1f’ was not declared in this scope
glUniform1f( GetUniformHandle(name), f);
^~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:698:5: note: suggested alternative: ‘SetUniform’
glUniform1f( GetUniformHandle(name), f);
^~~~~~~~~~~
SetUniform
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::SetUniform(const string&, float, float)’:
/usr/local/include/pangolin/gl/glsl.h:703:5: error: ‘glUniform2f’ was not declared in this scope
glUniform2f( GetUniformHandle(name), f1,f2);
^~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:703:5: note: suggested alternative: ‘SetUniform’
glUniform2f( GetUniformHandle(name), f1,f2);
^~~~~~~~~~~
SetUniform
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::SetUniform(const string&, float, float, float)’:
/usr/local/include/pangolin/gl/glsl.h:708:5: error: ‘glUniform3f’ was not declared in this scope
glUniform3f( GetUniformHandle(name), f1,f2,f3);
^~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:708:5: note: suggested alternative: ‘SetUniform’
glUniform3f( GetUniformHandle(name), f1,f2,f3);
^~~~~~~~~~~
SetUniform
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::SetUniform(const string&, float, float, float, float)’:
/usr/local/include/pangolin/gl/glsl.h:713:5: error: ‘glUniform4f’ was not declared in this scope
glUniform4f( GetUniformHandle(name), f1,f2,f3,f4);
^~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:713:5: note: suggested alternative: ‘SetUniform’
glUniform4f( GetUniformHandle(name), f1,f2,f3,f4);
^~~~~~~~~~~
SetUniform
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::SetUniform(const string&, pangolin::Colour)’:
/usr/local/include/pangolin/gl/glsl.h:718:5: error: ‘glUniform4f’ was not declared in this scope
glUniform4f( GetUniformHandle(name), c.r, c.g, c.b, c.a);
^~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:718:5: note: suggested alternative: ‘SetUniform’
glUniform4f( GetUniformHandle(name), c.r, c.g, c.b, c.a);
^~~~~~~~~~~
SetUniform
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::SetUniform(const string&, const pangolin::OpenGlMatrix&)’:
/usr/local/include/pangolin/gl/glsl.h:728:5: error: ‘glUniformMatrix4fv’ was not declared in this scope
glUniformMatrix4fv( GetUniformHandle(name), 1, GL_FALSE, m);
^~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:728:5: note: suggested alternative: ‘glLoadMatrixf’
glUniformMatrix4fv( GetUniformHandle(name), 1, GL_FALSE, m);
^~~~~~~~~~~~~~~~~~
glLoadMatrixf
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::BindPangolinDefaultAttribLocationsAndLink()’:
/usr/local/include/pangolin/gl/glsl.h:756:5: error: ‘glBindAttribLocation’ was not declared in this scope
glBindAttribLocation(prog, DEFAULT_LOCATION_POSITION, DEFAULT_NAME_POSITION);
^~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h: In member function ‘GLint pangolin::GlSlProgram::GetProgramResourceIndex(const string&)’:
/usr/local/include/pangolin/gl/glsl.h:766:12: error: ‘glGetProgramResourceIndex’ was not declared in this scope
return glGetProgramResourceIndex(prog, GL_SHADER_STORAGE_BLOCK, name.c_str());
^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:766:12: note: suggested alternative: ‘GetProgramResourceIndex’
return glGetProgramResourceIndex(prog, GL_SHADER_STORAGE_BLOCK, name.c_str());
^~~~~~~~~~~~~~~~~~~~~~~~~
GetProgramResourceIndex
/usr/local/include/pangolin/gl/glsl.h: In member function ‘void pangolin::GlSlProgram::SetShaderStorageBlock(const string&, const int&)’:
/usr/local/include/pangolin/gl/glsl.h:771:5: error: ‘glShaderStorageBlockBinding’ was not declared in this scope
glShaderStorageBlockBinding(prog, GetProgramResourceIndex(name), bindingIndex);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.h:771:5: note: suggested alternative: ‘SetShaderStorageBlock’
glShaderStorageBlockBinding(prog, GetProgramResourceIndex(name), bindingIndex);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
SetShaderStorageBlock
/home/keito/develop/3dml/DeepSDFProject/DeepSDF/src/SampleVisibleMeshSurface.cpp: In function ‘void SampleFromSurfaceInside(pangolin::Geometry&, std::vector<Eigen::Matrix<float, 3, 1> >&, int, KdVertexListTree&, std::vector<Eigen::Matrix<float, 3, 1> >&, std::vector<Eigen::Matrix<float, 3, 1> >&, float)’:
/home/keito/develop/3dml/DeepSDFProject/DeepSDF/src/SampleVisibleMeshSurface.cpp:74:53: error: request for member ‘find’ in ‘object.std::pair<const std::__cxx11::basic_string, pangolin::Geometry::Element>::second.pangolin::Geometry::Element::attributes’, which is of non-class type ‘const int’
auto it_vert_indices = object.second.attributes.find("vertex_indices");
^~~~
/home/keito/develop/3dml/DeepSDFProject/DeepSDF/src/SampleVisibleMeshSurface.cpp:75:53: error: request for member ‘end’ in ‘object.std::pair<const std::__cxx11::basic_string, pangolin::Geometry::Element>::second.pangolin::Geometry::Element::attributes’, which is of non-class type ‘const int’
if (it_vert_indices != object.second.attributes.end()) {
^~~
/home/keito/develop/3dml/DeepSDFProject/DeepSDF/src/SampleVisibleMeshSurface.cpp:77:21: error: ‘get’ is not a member of ‘pangolin’
pangolin::get<pangolin::Image<uint32_t>>(it_vert_indices->second);
^~~
/home/keito/develop/3dml/DeepSDFProject/DeepSDF/src/SampleVisibleMeshSurface.cpp:77:21: note: suggested alternative: ‘Widget’
pangolin::get<pangolin::Image<uint32_t>>(it_vert_indices->second);
^~~
Widget
/home/keito/develop/3dml/DeepSDFProject/DeepSDF/src/SampleVisibleMeshSurface.cpp:77:49: error: expected primary-expression before ‘>’ token
pangolin::get<pangolin::Image<uint32_t>>(it_vert_indices->second);
^~
/home/keito/develop/3dml/DeepSDFProject/DeepSDF/src/SampleVisibleMeshSurface.cpp:86:17: error: ‘get’ is not a member of ‘pangolin’
pangolin::get<pangolin::Image>(geom.buffers["geometry"].attributes["vertex"]);
^~~
/home/keito/develop/3dml/DeepSDFProject/DeepSDF/src/SampleVisibleMeshSurface.cpp:86:17: note: suggested alternative: ‘Widget’
pangolin::get<pangolin::Image>(geom.buffers["geometry"].attributes["vertex"]);
^~~
Widget
/home/keito/develop/3dml/DeepSDFProject/DeepSDF/src/SampleVisibleMeshSurface.cpp:86:42: error: expected primary-expression before ‘>’ token
pangolin::get<pangolin::Image>(geom.buffers["geometry"].attributes["vertex"]);
^~
/home/keito/develop/3dml/DeepSDFProject/DeepSDF/src/SampleVisibleMeshSurface.cpp: In function ‘int main(int, char**)’:
/home/keito/develop/3dml/DeepSDFProject/DeepSDF/src/SampleVisibleMeshSurface.cpp:172:55: error: request for member ‘find’ in ‘object.std::pair<const std::__cxx11::basic_string, pangolin::Geometry::Element>::second.pangolin::Geometry::Element::attributes’, which is of non-class type ‘const int’
auto it_vert_indices = object.second.attributes.find("vertex_indices");
^~~~
/home/keito/develop/3dml/DeepSDFProject/DeepSDF/src/SampleVisibleMeshSurface.cpp:173:55: error: request for member ‘end’ in ‘object.std::pair<const std::__cxx11::basic_string, pangolin::Geometry::Element>::second.pangolin::Geometry::Element::attributes’, which is of non-class type ‘const int’
if (it_vert_indices != object.second.attributes.end()) {
^~~
/home/keito/develop/3dml/DeepSDFProject/DeepSDF/src/SampleVisibleMeshSurface.cpp:175:23: error: ‘get’ is not a member of ‘pangolin’
pangolin::get<pangolin::Image<uint32_t>>(it_vert_indices->second);
^~~
/home/keito/develop/3dml/DeepSDFProject/DeepSDF/src/SampleVisibleMeshSurface.cpp:175:23: note: suggested alternative: ‘Widget’
pangolin::get<pangolin::Image<uint32_t>>(it_vert_indices->second);
^~~
Widget
/home/keito/develop/3dml/DeepSDFProject/DeepSDF/src/SampleVisibleMeshSurface.cpp:175:51: error: expected primary-expression before ‘>’ token
pangolin::get<pangolin::Image<uint32_t>>(it_vert_indices->second);
^~
/home/keito/develop/3dml/DeepSDFProject/DeepSDF/src/SampleVisibleMeshSurface.cpp:190:55: error: request for member ‘find’ in ‘object.std::pair<const std::__cxx11::basic_string, pangolin::Geometry::Element>::second.pangolin::Geometry::Element::attributes’, which is of non-class type ‘const int’
auto it_vert_indices = object.second.attributes.find("vertex_indices");
^~~~
/home/keito/develop/3dml/DeepSDFProject/DeepSDF/src/SampleVisibleMeshSurface.cpp:191:55: error: request for member ‘end’ in ‘object.std::pair<const std::__cxx11::basic_string, pangolin::Geometry::Element>::second.pangolin::Geometry::Element::attributes’, which is of non-class type ‘const int’
if (it_vert_indices != object.second.attributes.end()) {
^~~
/home/keito/develop/3dml/DeepSDFProject/DeepSDF/src/SampleVisibleMeshSurface.cpp:193:23: error: ‘get’ is not a member of ‘pangolin’
pangolin::get<pangolin::Image<uint32_t>>(it_vert_indices->second);
^~~
/home/keito/develop/3dml/DeepSDFProject/DeepSDF/src/SampleVisibleMeshSurface.cpp:193:23: note: suggested alternative: ‘Widget’
pangolin::get<pangolin::Image<uint32_t>>(it_vert_indices->second);
^~~
Widget
/home/keito/develop/3dml/DeepSDFProject/DeepSDF/src/SampleVisibleMeshSurface.cpp:193:51: error: expected primary-expression before ‘>’ token
pangolin::get<pangolin::Image<uint32_t>>(it_vert_indices->second);
^~
/home/keito/develop/3dml/DeepSDFProject/DeepSDF/src/SampleVisibleMeshSurface.cpp:210:50: error: assignment of read-only location ‘"vertex_indices"[faces.std::_Rb_tree_iterator<std::pair<const std::__cxx11::basic_string, pangolin::Geometry::Element> >::operator->()->std::pair<const std::__cxx11::basic_string, pangolin::Geometry::Element>::second.pangolin::Geometry::Element::attributes]’
faces->second.attributes["vertex_indices"] = new_ibo;
^~~~~~~
/home/keito/develop/3dml/DeepSDFProject/DeepSDF/src/SampleVisibleMeshSurface.cpp:210:50: error: cannot convert ‘pangolin::Image’ to ‘const char’ in assignment
/home/keito/develop/3dml/DeepSDFProject/DeepSDF/src/SampleVisibleMeshSurface.cpp:216:52: error: ‘get’ is not a member of ‘pangolin’
pangolin::Image<uint32_t> modelFaces = pangolin::get<pangolin::Image<uint32_t>>(
^~~
/home/keito/develop/3dml/DeepSDFProject/DeepSDF/src/SampleVisibleMeshSurface.cpp:216:52: note: suggested alternative: ‘Widget’
pangolin::Image<uint32_t> modelFaces = pangolin::get<pangolin::Image<uint32_t>>(
^~~
Widget
/home/keito/develop/3dml/DeepSDFProject/DeepSDF/src/SampleVisibleMeshSurface.cpp:216:80: error: expected primary-expression before ‘>’ token
pangolin::Image<uint32_t> modelFaces = pangolin::get<pangolin::Image<uint32_t>>(
^~
CMakeFiles/SampleVisibleMeshSurface.dir/build.make:75: recipe for target 'CMakeFiles/SampleVisibleMeshSurface.dir/src/SampleVisibleMeshSurface.cpp.o' failed
make[2]: *** [CMakeFiles/SampleVisibleMeshSurface.dir/src/SampleVisibleMeshSurface.cpp.o] Error 1
CMakeFiles/Makefile2:105: recipe for target 'CMakeFiles/SampleVisibleMeshSurface.dir/all' failed
make[1]: *** [CMakeFiles/SampleVisibleMeshSurface.dir/all] Error 2
Makefile:135: recipe for target 'all' failed
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: