You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
Hey! DeepSDF looks very nice but I'd like the reproduce the code and I am struggling in compiling the mesh preprocessing routines.
Here are some info on my system (macOS X Monterey 12.0.1):
ProductName: macOS
ProductVersion: 12.0.1
BuildVersion: 21A559
Darwin MacBookPro 21.1.0 Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:23 PDT 2021; root:xnu-8019.41.5~1/RELEASE_X86_64 x86_64
brew install glfw (turns out to be necessary for Pangolin to build properly)
deepsdf
git clone deepsdf repo
mkdir build && cd build
cmake .. -DCMAKE_CXX_STANDARD=17
But then when I run make -j, I am getting the following error: [ 78%] Building CXX object CMakeFiles/SampleVisibleMeshSurface.dir/src/Utils.cpp.o [ 85%] Linking CXX executable example1 [ 85%] Built target example1 [ 92%] Linking CXX executable ../bin/SampleVisibleMeshSurface Undefined symbols for architecture x86_64: "pangolin::ShouldQuit()", referenced from: pangolin::GlTexture::~GlTexture() in SampleVisibleMeshSurface.cpp.o pangolin::GlRenderBuffer::~GlRenderBuffer() in SampleVisibleMeshSurface.cpp.o pangolin::GlTexture::~GlTexture() in Utils.cpp.o "pangolin::LoadGeometry(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from: _main in SampleVisibleMeshSurface.cpp.o "pangolin::ToGlGeometry(pangolin::Geometry const&)", referenced from: _main in SampleVisibleMeshSurface.cpp.o "pangolin::glErrorString(unsigned int)", referenced from: pangolin::_CheckGlDieOnError(char const*, int) in SampleVisibleMeshSurface.cpp.o pangolin::_CheckGlDieOnError(char const*, int) in Utils.cpp.o "pangolin::ModelViewLookAt(double, double, double, double, double, double, pangolin::AxisDirection)", referenced from: _main in SampleVisibleMeshSurface.cpp.o "pangolin::OpenGlRenderState::GetModelViewMatrix()", referenced from: _main in SampleVisibleMeshSurface.cpp.o "pangolin::OpenGlRenderState::SetModelViewMatrix(pangolin::OpenGlMatrix)", referenced from: _main in SampleVisibleMeshSurface.cpp.o "pangolin::OpenGlRenderState::OpenGlRenderState(pangolin::OpenGlMatrix const&, pangolin::OpenGlMatrix const&)", referenced from: _main in SampleVisibleMeshSurface.cpp.o "pangolin::CreateWindowAndBind(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int, int, pangolin::Params const&)", referenced from: _main in SampleVisibleMeshSurface.cpp.o "pangolin::PixelFormatFromString(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from: pangolin::GlTexture::Download(pangolin::TypedImage&) const in SampleVisibleMeshSurface.cpp.o "pangolin::ProjectionMatrixOrthographic(double, double, double, double, double, double)", referenced from: _main in SampleVisibleMeshSurface.cpp.o "pangolin::GlDraw(pangolin::GlSlProgram&, pangolin::GlGeometry const&, pangolin::GlTexture const*)", referenced from: _main in SampleVisibleMeshSurface.cpp.o "pangolin::OpenGlMatrix::Inverse() const", referenced from: _main in SampleVisibleMeshSurface.cpp.o "pangolin::OpenGlRenderState::GetProjectionModelViewMatrix() const", referenced from: _main in SampleVisibleMeshSurface.cpp.o "vtable for pangolin::HandlerScroll", referenced from: pangolin::StaticHandlerScroll in SampleVisibleMeshSurface.cpp.o pangolin::StaticHandlerScroll in Utils.cpp.o NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. "vtable for pangolin::Handler", referenced from: pangolin::StaticHandler in SampleVisibleMeshSurface.cpp.o pangolin::StaticHandler in Utils.cpp.o NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. "___glewAttachShader", referenced from: pangolin::GlSlProgram::AddPreprocessedShader(pangolin::GlSlShaderType, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in ShaderProgram.cpp.o "___glewBindFramebufferEXT", referenced from: pangolin::GlFramebuffer::Bind() const in SampleVisibleMeshSurface.cpp.o pangolin::GlFramebuffer::Unbind() const in SampleVisibleMeshSurface.cpp.o pangolin::GlFramebuffer::AttachColour(pangolin::GlTexture&) in SampleVisibleMeshSurface.cpp.o pangolin::GlFramebuffer::AttachDepth(pangolin::GlRenderBuffer&) in SampleVisibleMeshSurface.cpp.o "___glewBindRenderbufferEXT", referenced from: pangolin::GlRenderBuffer::Reinitialise(int, int, int) in SampleVisibleMeshSurface.cpp.o "___glewCompileShader", referenced from: pangolin::GlSlProgram::AddPreprocessedShader(pangolin::GlSlShaderType, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in ShaderProgram.cpp.o "___glewCreateProgram", referenced from: pangolin::GlSlProgram::AddPreprocessedShader(pangolin::GlSlShaderType, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in ShaderProgram.cpp.o "___glewCreateShader", referenced from: pangolin::GlSlProgram::AddPreprocessedShader(pangolin::GlSlShaderType, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in ShaderProgram.cpp.o "___glewDeleteBuffers", referenced from: pangolin::GlBufferData::Free() in SampleVisibleMeshSurface.cpp.o pangolin::GlBufferData::Free() in Utils.cpp.o "___glewDeleteFramebuffersEXT", referenced from: pangolin::GlFramebuffer::Reinitialise() in SampleVisibleMeshSurface.cpp.o pangolin::GlFramebuffer::~GlFramebuffer() in SampleVisibleMeshSurface.cpp.o "___glewDeleteProgram", referenced from: pangolin::GlSlProgram::~GlSlProgram() in SampleVisibleMeshSurface.cpp.o pangolin::GlSlProgram::~GlSlProgram() in ShaderProgram.cpp.o "___glewDeleteRenderbuffersEXT", referenced from: pangolin::GlRenderBuffer::Reinitialise(int, int, int) in SampleVisibleMeshSurface.cpp.o pangolin::GlRenderBuffer::~GlRenderBuffer() in SampleVisibleMeshSurface.cpp.o "___glewDeleteShader", referenced from: pangolin::GlSlProgram::ClearShaders() in SampleVisibleMeshSurface.cpp.o pangolin::GlSlProgram::ClearShaders() in ShaderProgram.cpp.o "___glewDetachShader", referenced from: pangolin::GlSlProgram::ClearShaders() in SampleVisibleMeshSurface.cpp.o pangolin::GlSlProgram::ClearShaders() in ShaderProgram.cpp.o "___glewDrawBuffers", referenced from: pangolin::GlFramebuffer::Bind() const in SampleVisibleMeshSurface.cpp.o pangolin::GlFramebuffer::Unbind() const in SampleVisibleMeshSurface.cpp.o "___glewFramebufferRenderbufferEXT", referenced from: pangolin::GlFramebuffer::AttachDepth(pangolin::GlRenderBuffer&) in SampleVisibleMeshSurface.cpp.o "___glewFramebufferTexture2DEXT", referenced from: pangolin::GlFramebuffer::AttachColour(pangolin::GlTexture&) in SampleVisibleMeshSurface.cpp.o "___glewGenFramebuffersEXT", referenced from: pangolin::GlFramebuffer::GlFramebuffer(pangolin::GlTexture&, pangolin::GlTexture&, pangolin::GlRenderBuffer&) in SampleVisibleMeshSurface.cpp.o pangolin::GlFramebuffer::Reinitialise() in SampleVisibleMeshSurface.cpp.o "___glewGenRenderbuffersEXT", referenced from: pangolin::GlRenderBuffer::Reinitialise(int, int, int) in SampleVisibleMeshSurface.cpp.o "___glewGetProgramInfoLog", referenced from: pangolin::IsLinkSuccessPrintLog(unsigned int) in ShaderProgram.cpp.o "___glewGetProgramiv", referenced from: pangolin::IsLinkSuccessPrintLog(unsigned int) in ShaderProgram.cpp.o "___glewGetShaderInfoLog", referenced from: pangolin::IsCompileSuccessPrintLog(unsigned int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in ShaderProgram.cpp.o "___glewGetShaderiv", referenced from: pangolin::IsCompileSuccessPrintLog(unsigned int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in ShaderProgram.cpp.o "___glewGetUniformLocation", referenced from: pangolin::GlSlProgram::GetUniformHandle(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in SampleVisibleMeshSurface.cpp.o "___glewLinkProgram", referenced from: pangolin::GlSlProgram::Link() in ShaderProgram.cpp.o "___glewRenderbufferStorageEXT", referenced from: pangolin::GlRenderBuffer::Reinitialise(int, int, int) in SampleVisibleMeshSurface.cpp.o "___glewShaderSource", referenced from: pangolin::GlSlProgram::AddPreprocessedShader(pangolin::GlSlShaderType, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in ShaderProgram.cpp.o "___glewUniform2f", referenced from: pangolin::GlSlProgram::SetUniform(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, float, float) in SampleVisibleMeshSurface.cpp.o "___glewUniform4i", referenced from: pangolin::GlSlProgram::SetUniform(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, int, int, int) in SampleVisibleMeshSurface.cpp.o "___glewUniformMatrix4fv", referenced from: pangolin::GlSlProgram::SetUniform(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, pangolin::OpenGlMatrix const&) in SampleVisibleMeshSurface.cpp.o "___glewUseProgram", referenced from: pangolin::GlSlProgram::Bind() in SampleVisibleMeshSurface.cpp.o pangolin::GlSlProgram::Unbind() in SampleVisibleMeshSurface.cpp.o "_glBindTexture", referenced from: pangolin::GlTexture::Bind() const in SampleVisibleMeshSurface.cpp.o pangolin::GlTexture::Unbind() const in SampleVisibleMeshSurface.cpp.o pangolin::GlTexture::Bind() const in Utils.cpp.o "_glClear", referenced from: _main in SampleVisibleMeshSurface.cpp.o "_glDeleteTextures", referenced from: pangolin::GlTexture::~GlTexture() in SampleVisibleMeshSurface.cpp.o pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in SampleVisibleMeshSurface.cpp.o pangolin::GlTexture::~GlTexture() in Utils.cpp.o pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in Utils.cpp.o "_glDisable", referenced from: _main in SampleVisibleMeshSurface.cpp.o "_glEnable", referenced from: _main in SampleVisibleMeshSurface.cpp.o "_glGenTextures", referenced from: pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in SampleVisibleMeshSurface.cpp.o pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in Utils.cpp.o "_glGetError", referenced from: pangolin::_CheckGlDieOnError(char const*, int) in SampleVisibleMeshSurface.cpp.o pangolin::_CheckGlDieOnError(char const*, int) in Utils.cpp.o "_glGetTexImage", referenced from: pangolin::GlTexture::Download(void*, unsigned int, unsigned int) const in SampleVisibleMeshSurface.cpp.o "_glHint", referenced from: _main in SampleVisibleMeshSurface.cpp.o "_glPixelStorei", referenced from: _main in SampleVisibleMeshSurface.cpp.o "_glShadeModel", referenced from: _main in SampleVisibleMeshSurface.cpp.o "_glTexImage2D", referenced from: pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in SampleVisibleMeshSurface.cpp.o pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in Utils.cpp.o "_glTexParameteri", referenced from: pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in SampleVisibleMeshSurface.cpp.o pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in Utils.cpp.o "_glViewport", referenced from: _main in SampleVisibleMeshSurface.cpp.o ld: symbol(s) not found for architecture x86_64 **clang: error: linker command failed with exit code 1 (use -v to see invocation)** make[2]: *** [../bin/SampleVisibleMeshSurface] Error 1 make[1]: *** [CMakeFiles/SampleVisibleMeshSurface.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [100%] Linking CXX executable ../bin/PreprocessMesh Undefined symbols for architecture x86_64: "pangolin::ShouldQuit()", referenced from: pangolin::GlTexture::~GlTexture() in PreprocessMesh.cpp.o _main in PreprocessMesh.cpp.o pangolin::GlRenderBuffer::~GlRenderBuffer() in PreprocessMesh.cpp.o pangolin::GlTexture::~GlTexture() in Utils.cpp.o "pangolin::FinishFrame()", referenced from: _main in PreprocessMesh.cpp.o "pangolin::LoadGeometry(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from: _main in PreprocessMesh.cpp.o "pangolin::ToGlGeometry(pangolin::Geometry const&)", referenced from: _main in PreprocessMesh.cpp.o "pangolin::CreateDisplay()", referenced from: _main in PreprocessMesh.cpp.o "pangolin::glErrorString(unsigned int)", referenced from: pangolin::_CheckGlDieOnError(char const*, int) in PreprocessMesh.cpp.o pangolin::_CheckGlDieOnError(char const*, int) in Utils.cpp.o "pangolin::ModelViewLookAt(double, double, double, double, double, double, pangolin::AxisDirection)", referenced from: _main in PreprocessMesh.cpp.o "pangolin::OpenGlRenderState::GetModelViewMatrix()", referenced from: _main in PreprocessMesh.cpp.o "pangolin::OpenGlRenderState::SetModelViewMatrix(pangolin::OpenGlMatrix)", referenced from: _main in PreprocessMesh.cpp.o "pangolin::OpenGlRenderState::OpenGlRenderState(pangolin::OpenGlMatrix const&, pangolin::OpenGlMatrix const&)", referenced from: _main in PreprocessMesh.cpp.o "pangolin::CreateWindowAndBind(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int, int, pangolin::Params const&)", referenced from: _main in PreprocessMesh.cpp.o "pangolin::PixelFormatFromString(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from: pangolin::GlTexture::Download(pangolin::TypedImage&) const in PreprocessMesh.cpp.o "pangolin::ProjectionMatrixOrthographic(double, double, double, double, double, double)", referenced from: _main in PreprocessMesh.cpp.o "pangolin::View::SetHandler(pangolin::Handler*)", referenced from: _main in PreprocessMesh.cpp.o "pangolin::View::SetBounds(pangolin::Attach, pangolin::Attach, pangolin::Attach, pangolin::Attach, double)", referenced from: _main in PreprocessMesh.cpp.o "pangolin::GlDraw(pangolin::GlSlProgram&, pangolin::GlGeometry const&, pangolin::GlTexture const*)", referenced from: _main in PreprocessMesh.cpp.o "pangolin::Handler3D::Handler3D(pangolin::OpenGlRenderState&, pangolin::AxisDirection, float, float)", referenced from: _main in PreprocessMesh.cpp.o "pangolin::OpenGlMatrix::Inverse() const", referenced from: _main in PreprocessMesh.cpp.o "pangolin::OpenGlRenderState::GetProjectionModelViewMatrix() const", referenced from: _main in PreprocessMesh.cpp.o "pangolin::View::Activate(pangolin::OpenGlRenderState const&) const", referenced from: _main in PreprocessMesh.cpp.o "vtable for pangolin::HandlerScroll", referenced from: pangolin::StaticHandlerScroll in PreprocessMesh.cpp.o pangolin::StaticHandlerScroll in Utils.cpp.o NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. "vtable for pangolin::Handler", referenced from: pangolin::StaticHandler in PreprocessMesh.cpp.o pangolin::StaticHandler in Utils.cpp.o NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. "___glewAttachShader", referenced from: pangolin::GlSlProgram::AddPreprocessedShader(pangolin::GlSlShaderType, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in ShaderProgram.cpp.o "___glewBindFramebufferEXT", referenced from: pangolin::GlFramebuffer::Bind() const in PreprocessMesh.cpp.o pangolin::GlFramebuffer::Unbind() const in PreprocessMesh.cpp.o pangolin::GlFramebuffer::AttachColour(pangolin::GlTexture&) in PreprocessMesh.cpp.o pangolin::GlFramebuffer::AttachDepth(pangolin::GlRenderBuffer&) in PreprocessMesh.cpp.o "___glewBindRenderbufferEXT", referenced from: pangolin::GlRenderBuffer::Reinitialise(int, int, int) in PreprocessMesh.cpp.o "___glewCompileShader", referenced from: pangolin::GlSlProgram::AddPreprocessedShader(pangolin::GlSlShaderType, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in ShaderProgram.cpp.o "___glewCreateProgram", referenced from: pangolin::GlSlProgram::AddPreprocessedShader(pangolin::GlSlShaderType, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in ShaderProgram.cpp.o "___glewCreateShader", referenced from: pangolin::GlSlProgram::AddPreprocessedShader(pangolin::GlSlShaderType, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in ShaderProgram.cpp.o "___glewDeleteBuffers", referenced from: pangolin::GlBufferData::Free() in PreprocessMesh.cpp.o pangolin::GlBufferData::Free() in Utils.cpp.o "___glewDeleteFramebuffersEXT", referenced from: pangolin::GlFramebuffer::Reinitialise() in PreprocessMesh.cpp.o pangolin::GlFramebuffer::~GlFramebuffer() in PreprocessMesh.cpp.o "___glewDeleteProgram", referenced from: pangolin::GlSlProgram::~GlSlProgram() in PreprocessMesh.cpp.o pangolin::GlSlProgram::~GlSlProgram() in ShaderProgram.cpp.o "___glewDeleteRenderbuffersEXT", referenced from: pangolin::GlRenderBuffer::Reinitialise(int, int, int) in PreprocessMesh.cpp.o pangolin::GlRenderBuffer::~GlRenderBuffer() in PreprocessMesh.cpp.o "___glewDeleteShader", referenced from: pangolin::GlSlProgram::ClearShaders() in PreprocessMesh.cpp.o pangolin::GlSlProgram::ClearShaders() in ShaderProgram.cpp.o "___glewDetachShader", referenced from: pangolin::GlSlProgram::ClearShaders() in PreprocessMesh.cpp.o pangolin::GlSlProgram::ClearShaders() in ShaderProgram.cpp.o "___glewDrawBuffers", referenced from: pangolin::GlFramebuffer::Bind() const in PreprocessMesh.cpp.o pangolin::GlFramebuffer::Unbind() const in PreprocessMesh.cpp.o "___glewFramebufferRenderbufferEXT", referenced from: pangolin::GlFramebuffer::AttachDepth(pangolin::GlRenderBuffer&) in PreprocessMesh.cpp.o "___glewFramebufferTexture2DEXT", referenced from: pangolin::GlFramebuffer::AttachColour(pangolin::GlTexture&) in PreprocessMesh.cpp.o "___glewGenFramebuffersEXT", referenced from: pangolin::GlFramebuffer::GlFramebuffer(pangolin::GlTexture&, pangolin::GlTexture&, pangolin::GlRenderBuffer&) in PreprocessMesh.cpp.o pangolin::GlFramebuffer::Reinitialise() in PreprocessMesh.cpp.o "___glewGenRenderbuffersEXT", referenced from: pangolin::GlRenderBuffer::Reinitialise(int, int, int) in PreprocessMesh.cpp.o "___glewGetProgramInfoLog", referenced from: pangolin::IsLinkSuccessPrintLog(unsigned int) in ShaderProgram.cpp.o "___glewGetProgramiv", referenced from: pangolin::IsLinkSuccessPrintLog(unsigned int) in ShaderProgram.cpp.o "___glewGetShaderInfoLog", referenced from: pangolin::IsCompileSuccessPrintLog(unsigned int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in ShaderProgram.cpp.o "___glewGetShaderiv", referenced from: pangolin::IsCompileSuccessPrintLog(unsigned int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in ShaderProgram.cpp.o "___glewGetUniformLocation", referenced from: pangolin::GlSlProgram::GetUniformHandle(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in PreprocessMesh.cpp.o "___glewLinkProgram", referenced from: pangolin::GlSlProgram::Link() in ShaderProgram.cpp.o "___glewRenderbufferStorageEXT", referenced from: pangolin::GlRenderBuffer::Reinitialise(int, int, int) in PreprocessMesh.cpp.o "___glewShaderSource", referenced from: pangolin::GlSlProgram::AddPreprocessedShader(pangolin::GlSlShaderType, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in ShaderProgram.cpp.o "___glewUniform2f", referenced from: pangolin::GlSlProgram::SetUniform(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, float, float) in PreprocessMesh.cpp.o "___glewUniform4i", referenced from: pangolin::GlSlProgram::SetUniform(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, int, int, int) in PreprocessMesh.cpp.o "___glewUniformMatrix4fv", referenced from: pangolin::GlSlProgram::SetUniform(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, pangolin::OpenGlMatrix const&) in PreprocessMesh.cpp.o "___glewUseProgram", referenced from: pangolin::GlSlProgram::Bind() in PreprocessMesh.cpp.o pangolin::GlSlProgram::Unbind() in PreprocessMesh.cpp.o "_glBindTexture", referenced from: pangolin::GlTexture::Bind() const in PreprocessMesh.cpp.o pangolin::GlTexture::Unbind() const in PreprocessMesh.cpp.o pangolin::GlTexture::Bind() const in Utils.cpp.o "_glClear", referenced from: _main in PreprocessMesh.cpp.o "_glDeleteTextures", referenced from: pangolin::GlTexture::~GlTexture() in PreprocessMesh.cpp.o pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in PreprocessMesh.cpp.o pangolin::GlTexture::~GlTexture() in Utils.cpp.o pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in Utils.cpp.o "_glDisable", referenced from: _main in PreprocessMesh.cpp.o "_glEnable", referenced from: _main in PreprocessMesh.cpp.o "_glGenTextures", referenced from: pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in PreprocessMesh.cpp.o pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in Utils.cpp.o "_glGetError", referenced from: pangolin::_CheckGlDieOnError(char const*, int) in PreprocessMesh.cpp.o pangolin::_CheckGlDieOnError(char const*, int) in Utils.cpp.o "_glGetTexImage", referenced from: pangolin::GlTexture::Download(void*, unsigned int, unsigned int) const in PreprocessMesh.cpp.o "_glHint", referenced from: _main in PreprocessMesh.cpp.o "_glPixelStorei", referenced from: _main in PreprocessMesh.cpp.o "_glShadeModel", referenced from: _main in PreprocessMesh.cpp.o "_glTexImage2D", referenced from: pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in PreprocessMesh.cpp.o pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in Utils.cpp.o "_glTexParameteri", referenced from: pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in PreprocessMesh.cpp.o pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in Utils.cpp.o "_glViewport", referenced from: _main in PreprocessMesh.cpp.o ld: symbol(s) not found for architecture x86_64 **clang: error: linker command failed with exit code 1 (use -v to see invocation)** make[2]: *** [../bin/PreprocessMesh] Error 1 make[1]: *** [CMakeFiles/PreprocessMesh.dir/all] Error 2 make: *** [all] Error 2
It seems like it is related to some Undefined symbols for architecture x86_64 (third line of the aforementioned error traceback).
Have you guys ever seen this error come up? Do you have any clew how to troubleshoot it further?
Thanks in advance for your help! :D
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hey! DeepSDF looks very nice but I'd like the reproduce the code and I am struggling in compiling the mesh preprocessing routines.
Here are some info on my system (macOS X Monterey 12.0.1):
ProductName: macOS
ProductVersion: 12.0.1
BuildVersion: 21A559
Darwin MacBookPro 21.1.0 Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:23 PDT 2021; root:xnu-8019.41.5~1/RELEASE_X86_64 x86_64
Here are the steps I followed:
But then when I run
make -j
, I am getting the following error:[ 78%] Building CXX object CMakeFiles/SampleVisibleMeshSurface.dir/src/Utils.cpp.o [ 85%] Linking CXX executable example1 [ 85%] Built target example1 [ 92%] Linking CXX executable ../bin/SampleVisibleMeshSurface Undefined symbols for architecture x86_64: "pangolin::ShouldQuit()", referenced from: pangolin::GlTexture::~GlTexture() in SampleVisibleMeshSurface.cpp.o pangolin::GlRenderBuffer::~GlRenderBuffer() in SampleVisibleMeshSurface.cpp.o pangolin::GlTexture::~GlTexture() in Utils.cpp.o "pangolin::LoadGeometry(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from: _main in SampleVisibleMeshSurface.cpp.o "pangolin::ToGlGeometry(pangolin::Geometry const&)", referenced from: _main in SampleVisibleMeshSurface.cpp.o "pangolin::glErrorString(unsigned int)", referenced from: pangolin::_CheckGlDieOnError(char const*, int) in SampleVisibleMeshSurface.cpp.o pangolin::_CheckGlDieOnError(char const*, int) in Utils.cpp.o "pangolin::ModelViewLookAt(double, double, double, double, double, double, pangolin::AxisDirection)", referenced from: _main in SampleVisibleMeshSurface.cpp.o "pangolin::OpenGlRenderState::GetModelViewMatrix()", referenced from: _main in SampleVisibleMeshSurface.cpp.o "pangolin::OpenGlRenderState::SetModelViewMatrix(pangolin::OpenGlMatrix)", referenced from: _main in SampleVisibleMeshSurface.cpp.o "pangolin::OpenGlRenderState::OpenGlRenderState(pangolin::OpenGlMatrix const&, pangolin::OpenGlMatrix const&)", referenced from: _main in SampleVisibleMeshSurface.cpp.o "pangolin::CreateWindowAndBind(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int, int, pangolin::Params const&)", referenced from: _main in SampleVisibleMeshSurface.cpp.o "pangolin::PixelFormatFromString(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from: pangolin::GlTexture::Download(pangolin::TypedImage&) const in SampleVisibleMeshSurface.cpp.o "pangolin::ProjectionMatrixOrthographic(double, double, double, double, double, double)", referenced from: _main in SampleVisibleMeshSurface.cpp.o "pangolin::GlDraw(pangolin::GlSlProgram&, pangolin::GlGeometry const&, pangolin::GlTexture const*)", referenced from: _main in SampleVisibleMeshSurface.cpp.o "pangolin::OpenGlMatrix::Inverse() const", referenced from: _main in SampleVisibleMeshSurface.cpp.o "pangolin::OpenGlRenderState::GetProjectionModelViewMatrix() const", referenced from: _main in SampleVisibleMeshSurface.cpp.o "vtable for pangolin::HandlerScroll", referenced from: pangolin::StaticHandlerScroll in SampleVisibleMeshSurface.cpp.o pangolin::StaticHandlerScroll in Utils.cpp.o NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. "vtable for pangolin::Handler", referenced from: pangolin::StaticHandler in SampleVisibleMeshSurface.cpp.o pangolin::StaticHandler in Utils.cpp.o NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. "___glewAttachShader", referenced from: pangolin::GlSlProgram::AddPreprocessedShader(pangolin::GlSlShaderType, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in ShaderProgram.cpp.o "___glewBindFramebufferEXT", referenced from: pangolin::GlFramebuffer::Bind() const in SampleVisibleMeshSurface.cpp.o pangolin::GlFramebuffer::Unbind() const in SampleVisibleMeshSurface.cpp.o pangolin::GlFramebuffer::AttachColour(pangolin::GlTexture&) in SampleVisibleMeshSurface.cpp.o pangolin::GlFramebuffer::AttachDepth(pangolin::GlRenderBuffer&) in SampleVisibleMeshSurface.cpp.o "___glewBindRenderbufferEXT", referenced from: pangolin::GlRenderBuffer::Reinitialise(int, int, int) in SampleVisibleMeshSurface.cpp.o "___glewCompileShader", referenced from: pangolin::GlSlProgram::AddPreprocessedShader(pangolin::GlSlShaderType, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in ShaderProgram.cpp.o "___glewCreateProgram", referenced from: pangolin::GlSlProgram::AddPreprocessedShader(pangolin::GlSlShaderType, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in ShaderProgram.cpp.o "___glewCreateShader", referenced from: pangolin::GlSlProgram::AddPreprocessedShader(pangolin::GlSlShaderType, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in ShaderProgram.cpp.o "___glewDeleteBuffers", referenced from: pangolin::GlBufferData::Free() in SampleVisibleMeshSurface.cpp.o pangolin::GlBufferData::Free() in Utils.cpp.o "___glewDeleteFramebuffersEXT", referenced from: pangolin::GlFramebuffer::Reinitialise() in SampleVisibleMeshSurface.cpp.o pangolin::GlFramebuffer::~GlFramebuffer() in SampleVisibleMeshSurface.cpp.o "___glewDeleteProgram", referenced from: pangolin::GlSlProgram::~GlSlProgram() in SampleVisibleMeshSurface.cpp.o pangolin::GlSlProgram::~GlSlProgram() in ShaderProgram.cpp.o "___glewDeleteRenderbuffersEXT", referenced from: pangolin::GlRenderBuffer::Reinitialise(int, int, int) in SampleVisibleMeshSurface.cpp.o pangolin::GlRenderBuffer::~GlRenderBuffer() in SampleVisibleMeshSurface.cpp.o "___glewDeleteShader", referenced from: pangolin::GlSlProgram::ClearShaders() in SampleVisibleMeshSurface.cpp.o pangolin::GlSlProgram::ClearShaders() in ShaderProgram.cpp.o "___glewDetachShader", referenced from: pangolin::GlSlProgram::ClearShaders() in SampleVisibleMeshSurface.cpp.o pangolin::GlSlProgram::ClearShaders() in ShaderProgram.cpp.o "___glewDrawBuffers", referenced from: pangolin::GlFramebuffer::Bind() const in SampleVisibleMeshSurface.cpp.o pangolin::GlFramebuffer::Unbind() const in SampleVisibleMeshSurface.cpp.o "___glewFramebufferRenderbufferEXT", referenced from: pangolin::GlFramebuffer::AttachDepth(pangolin::GlRenderBuffer&) in SampleVisibleMeshSurface.cpp.o "___glewFramebufferTexture2DEXT", referenced from: pangolin::GlFramebuffer::AttachColour(pangolin::GlTexture&) in SampleVisibleMeshSurface.cpp.o "___glewGenFramebuffersEXT", referenced from: pangolin::GlFramebuffer::GlFramebuffer(pangolin::GlTexture&, pangolin::GlTexture&, pangolin::GlRenderBuffer&) in SampleVisibleMeshSurface.cpp.o pangolin::GlFramebuffer::Reinitialise() in SampleVisibleMeshSurface.cpp.o "___glewGenRenderbuffersEXT", referenced from: pangolin::GlRenderBuffer::Reinitialise(int, int, int) in SampleVisibleMeshSurface.cpp.o "___glewGetProgramInfoLog", referenced from: pangolin::IsLinkSuccessPrintLog(unsigned int) in ShaderProgram.cpp.o "___glewGetProgramiv", referenced from: pangolin::IsLinkSuccessPrintLog(unsigned int) in ShaderProgram.cpp.o "___glewGetShaderInfoLog", referenced from: pangolin::IsCompileSuccessPrintLog(unsigned int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in ShaderProgram.cpp.o "___glewGetShaderiv", referenced from: pangolin::IsCompileSuccessPrintLog(unsigned int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in ShaderProgram.cpp.o "___glewGetUniformLocation", referenced from: pangolin::GlSlProgram::GetUniformHandle(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in SampleVisibleMeshSurface.cpp.o "___glewLinkProgram", referenced from: pangolin::GlSlProgram::Link() in ShaderProgram.cpp.o "___glewRenderbufferStorageEXT", referenced from: pangolin::GlRenderBuffer::Reinitialise(int, int, int) in SampleVisibleMeshSurface.cpp.o "___glewShaderSource", referenced from: pangolin::GlSlProgram::AddPreprocessedShader(pangolin::GlSlShaderType, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in ShaderProgram.cpp.o "___glewUniform2f", referenced from: pangolin::GlSlProgram::SetUniform(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, float, float) in SampleVisibleMeshSurface.cpp.o "___glewUniform4i", referenced from: pangolin::GlSlProgram::SetUniform(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, int, int, int) in SampleVisibleMeshSurface.cpp.o "___glewUniformMatrix4fv", referenced from: pangolin::GlSlProgram::SetUniform(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, pangolin::OpenGlMatrix const&) in SampleVisibleMeshSurface.cpp.o "___glewUseProgram", referenced from: pangolin::GlSlProgram::Bind() in SampleVisibleMeshSurface.cpp.o pangolin::GlSlProgram::Unbind() in SampleVisibleMeshSurface.cpp.o "_glBindTexture", referenced from: pangolin::GlTexture::Bind() const in SampleVisibleMeshSurface.cpp.o pangolin::GlTexture::Unbind() const in SampleVisibleMeshSurface.cpp.o pangolin::GlTexture::Bind() const in Utils.cpp.o "_glClear", referenced from: _main in SampleVisibleMeshSurface.cpp.o "_glDeleteTextures", referenced from: pangolin::GlTexture::~GlTexture() in SampleVisibleMeshSurface.cpp.o pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in SampleVisibleMeshSurface.cpp.o pangolin::GlTexture::~GlTexture() in Utils.cpp.o pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in Utils.cpp.o "_glDisable", referenced from: _main in SampleVisibleMeshSurface.cpp.o "_glEnable", referenced from: _main in SampleVisibleMeshSurface.cpp.o "_glGenTextures", referenced from: pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in SampleVisibleMeshSurface.cpp.o pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in Utils.cpp.o "_glGetError", referenced from: pangolin::_CheckGlDieOnError(char const*, int) in SampleVisibleMeshSurface.cpp.o pangolin::_CheckGlDieOnError(char const*, int) in Utils.cpp.o "_glGetTexImage", referenced from: pangolin::GlTexture::Download(void*, unsigned int, unsigned int) const in SampleVisibleMeshSurface.cpp.o "_glHint", referenced from: _main in SampleVisibleMeshSurface.cpp.o "_glPixelStorei", referenced from: _main in SampleVisibleMeshSurface.cpp.o "_glShadeModel", referenced from: _main in SampleVisibleMeshSurface.cpp.o "_glTexImage2D", referenced from: pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in SampleVisibleMeshSurface.cpp.o pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in Utils.cpp.o "_glTexParameteri", referenced from: pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in SampleVisibleMeshSurface.cpp.o pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in Utils.cpp.o "_glViewport", referenced from: _main in SampleVisibleMeshSurface.cpp.o ld: symbol(s) not found for architecture x86_64 **clang: error: linker command failed with exit code 1 (use -v to see invocation)** make[2]: *** [../bin/SampleVisibleMeshSurface] Error 1 make[1]: *** [CMakeFiles/SampleVisibleMeshSurface.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [100%] Linking CXX executable ../bin/PreprocessMesh Undefined symbols for architecture x86_64: "pangolin::ShouldQuit()", referenced from: pangolin::GlTexture::~GlTexture() in PreprocessMesh.cpp.o _main in PreprocessMesh.cpp.o pangolin::GlRenderBuffer::~GlRenderBuffer() in PreprocessMesh.cpp.o pangolin::GlTexture::~GlTexture() in Utils.cpp.o "pangolin::FinishFrame()", referenced from: _main in PreprocessMesh.cpp.o "pangolin::LoadGeometry(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from: _main in PreprocessMesh.cpp.o "pangolin::ToGlGeometry(pangolin::Geometry const&)", referenced from: _main in PreprocessMesh.cpp.o "pangolin::CreateDisplay()", referenced from: _main in PreprocessMesh.cpp.o "pangolin::glErrorString(unsigned int)", referenced from: pangolin::_CheckGlDieOnError(char const*, int) in PreprocessMesh.cpp.o pangolin::_CheckGlDieOnError(char const*, int) in Utils.cpp.o "pangolin::ModelViewLookAt(double, double, double, double, double, double, pangolin::AxisDirection)", referenced from: _main in PreprocessMesh.cpp.o "pangolin::OpenGlRenderState::GetModelViewMatrix()", referenced from: _main in PreprocessMesh.cpp.o "pangolin::OpenGlRenderState::SetModelViewMatrix(pangolin::OpenGlMatrix)", referenced from: _main in PreprocessMesh.cpp.o "pangolin::OpenGlRenderState::OpenGlRenderState(pangolin::OpenGlMatrix const&, pangolin::OpenGlMatrix const&)", referenced from: _main in PreprocessMesh.cpp.o "pangolin::CreateWindowAndBind(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int, int, pangolin::Params const&)", referenced from: _main in PreprocessMesh.cpp.o "pangolin::PixelFormatFromString(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from: pangolin::GlTexture::Download(pangolin::TypedImage&) const in PreprocessMesh.cpp.o "pangolin::ProjectionMatrixOrthographic(double, double, double, double, double, double)", referenced from: _main in PreprocessMesh.cpp.o "pangolin::View::SetHandler(pangolin::Handler*)", referenced from: _main in PreprocessMesh.cpp.o "pangolin::View::SetBounds(pangolin::Attach, pangolin::Attach, pangolin::Attach, pangolin::Attach, double)", referenced from: _main in PreprocessMesh.cpp.o "pangolin::GlDraw(pangolin::GlSlProgram&, pangolin::GlGeometry const&, pangolin::GlTexture const*)", referenced from: _main in PreprocessMesh.cpp.o "pangolin::Handler3D::Handler3D(pangolin::OpenGlRenderState&, pangolin::AxisDirection, float, float)", referenced from: _main in PreprocessMesh.cpp.o "pangolin::OpenGlMatrix::Inverse() const", referenced from: _main in PreprocessMesh.cpp.o "pangolin::OpenGlRenderState::GetProjectionModelViewMatrix() const", referenced from: _main in PreprocessMesh.cpp.o "pangolin::View::Activate(pangolin::OpenGlRenderState const&) const", referenced from: _main in PreprocessMesh.cpp.o "vtable for pangolin::HandlerScroll", referenced from: pangolin::StaticHandlerScroll in PreprocessMesh.cpp.o pangolin::StaticHandlerScroll in Utils.cpp.o NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. "vtable for pangolin::Handler", referenced from: pangolin::StaticHandler in PreprocessMesh.cpp.o pangolin::StaticHandler in Utils.cpp.o NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. "___glewAttachShader", referenced from: pangolin::GlSlProgram::AddPreprocessedShader(pangolin::GlSlShaderType, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in ShaderProgram.cpp.o "___glewBindFramebufferEXT", referenced from: pangolin::GlFramebuffer::Bind() const in PreprocessMesh.cpp.o pangolin::GlFramebuffer::Unbind() const in PreprocessMesh.cpp.o pangolin::GlFramebuffer::AttachColour(pangolin::GlTexture&) in PreprocessMesh.cpp.o pangolin::GlFramebuffer::AttachDepth(pangolin::GlRenderBuffer&) in PreprocessMesh.cpp.o "___glewBindRenderbufferEXT", referenced from: pangolin::GlRenderBuffer::Reinitialise(int, int, int) in PreprocessMesh.cpp.o "___glewCompileShader", referenced from: pangolin::GlSlProgram::AddPreprocessedShader(pangolin::GlSlShaderType, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in ShaderProgram.cpp.o "___glewCreateProgram", referenced from: pangolin::GlSlProgram::AddPreprocessedShader(pangolin::GlSlShaderType, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in ShaderProgram.cpp.o "___glewCreateShader", referenced from: pangolin::GlSlProgram::AddPreprocessedShader(pangolin::GlSlShaderType, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in ShaderProgram.cpp.o "___glewDeleteBuffers", referenced from: pangolin::GlBufferData::Free() in PreprocessMesh.cpp.o pangolin::GlBufferData::Free() in Utils.cpp.o "___glewDeleteFramebuffersEXT", referenced from: pangolin::GlFramebuffer::Reinitialise() in PreprocessMesh.cpp.o pangolin::GlFramebuffer::~GlFramebuffer() in PreprocessMesh.cpp.o "___glewDeleteProgram", referenced from: pangolin::GlSlProgram::~GlSlProgram() in PreprocessMesh.cpp.o pangolin::GlSlProgram::~GlSlProgram() in ShaderProgram.cpp.o "___glewDeleteRenderbuffersEXT", referenced from: pangolin::GlRenderBuffer::Reinitialise(int, int, int) in PreprocessMesh.cpp.o pangolin::GlRenderBuffer::~GlRenderBuffer() in PreprocessMesh.cpp.o "___glewDeleteShader", referenced from: pangolin::GlSlProgram::ClearShaders() in PreprocessMesh.cpp.o pangolin::GlSlProgram::ClearShaders() in ShaderProgram.cpp.o "___glewDetachShader", referenced from: pangolin::GlSlProgram::ClearShaders() in PreprocessMesh.cpp.o pangolin::GlSlProgram::ClearShaders() in ShaderProgram.cpp.o "___glewDrawBuffers", referenced from: pangolin::GlFramebuffer::Bind() const in PreprocessMesh.cpp.o pangolin::GlFramebuffer::Unbind() const in PreprocessMesh.cpp.o "___glewFramebufferRenderbufferEXT", referenced from: pangolin::GlFramebuffer::AttachDepth(pangolin::GlRenderBuffer&) in PreprocessMesh.cpp.o "___glewFramebufferTexture2DEXT", referenced from: pangolin::GlFramebuffer::AttachColour(pangolin::GlTexture&) in PreprocessMesh.cpp.o "___glewGenFramebuffersEXT", referenced from: pangolin::GlFramebuffer::GlFramebuffer(pangolin::GlTexture&, pangolin::GlTexture&, pangolin::GlRenderBuffer&) in PreprocessMesh.cpp.o pangolin::GlFramebuffer::Reinitialise() in PreprocessMesh.cpp.o "___glewGenRenderbuffersEXT", referenced from: pangolin::GlRenderBuffer::Reinitialise(int, int, int) in PreprocessMesh.cpp.o "___glewGetProgramInfoLog", referenced from: pangolin::IsLinkSuccessPrintLog(unsigned int) in ShaderProgram.cpp.o "___glewGetProgramiv", referenced from: pangolin::IsLinkSuccessPrintLog(unsigned int) in ShaderProgram.cpp.o "___glewGetShaderInfoLog", referenced from: pangolin::IsCompileSuccessPrintLog(unsigned int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in ShaderProgram.cpp.o "___glewGetShaderiv", referenced from: pangolin::IsCompileSuccessPrintLog(unsigned int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in ShaderProgram.cpp.o "___glewGetUniformLocation", referenced from: pangolin::GlSlProgram::GetUniformHandle(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in PreprocessMesh.cpp.o "___glewLinkProgram", referenced from: pangolin::GlSlProgram::Link() in ShaderProgram.cpp.o "___glewRenderbufferStorageEXT", referenced from: pangolin::GlRenderBuffer::Reinitialise(int, int, int) in PreprocessMesh.cpp.o "___glewShaderSource", referenced from: pangolin::GlSlProgram::AddPreprocessedShader(pangolin::GlSlShaderType, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in ShaderProgram.cpp.o "___glewUniform2f", referenced from: pangolin::GlSlProgram::SetUniform(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, float, float) in PreprocessMesh.cpp.o "___glewUniform4i", referenced from: pangolin::GlSlProgram::SetUniform(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, int, int, int) in PreprocessMesh.cpp.o "___glewUniformMatrix4fv", referenced from: pangolin::GlSlProgram::SetUniform(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, pangolin::OpenGlMatrix const&) in PreprocessMesh.cpp.o "___glewUseProgram", referenced from: pangolin::GlSlProgram::Bind() in PreprocessMesh.cpp.o pangolin::GlSlProgram::Unbind() in PreprocessMesh.cpp.o "_glBindTexture", referenced from: pangolin::GlTexture::Bind() const in PreprocessMesh.cpp.o pangolin::GlTexture::Unbind() const in PreprocessMesh.cpp.o pangolin::GlTexture::Bind() const in Utils.cpp.o "_glClear", referenced from: _main in PreprocessMesh.cpp.o "_glDeleteTextures", referenced from: pangolin::GlTexture::~GlTexture() in PreprocessMesh.cpp.o pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in PreprocessMesh.cpp.o pangolin::GlTexture::~GlTexture() in Utils.cpp.o pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in Utils.cpp.o "_glDisable", referenced from: _main in PreprocessMesh.cpp.o "_glEnable", referenced from: _main in PreprocessMesh.cpp.o "_glGenTextures", referenced from: pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in PreprocessMesh.cpp.o pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in Utils.cpp.o "_glGetError", referenced from: pangolin::_CheckGlDieOnError(char const*, int) in PreprocessMesh.cpp.o pangolin::_CheckGlDieOnError(char const*, int) in Utils.cpp.o "_glGetTexImage", referenced from: pangolin::GlTexture::Download(void*, unsigned int, unsigned int) const in PreprocessMesh.cpp.o "_glHint", referenced from: _main in PreprocessMesh.cpp.o "_glPixelStorei", referenced from: _main in PreprocessMesh.cpp.o "_glShadeModel", referenced from: _main in PreprocessMesh.cpp.o "_glTexImage2D", referenced from: pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in PreprocessMesh.cpp.o pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in Utils.cpp.o "_glTexParameteri", referenced from: pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in PreprocessMesh.cpp.o pangolin::GlTexture::Reinitialise(int, int, int, bool, int, unsigned int, unsigned int, void*) in Utils.cpp.o "_glViewport", referenced from: _main in PreprocessMesh.cpp.o ld: symbol(s) not found for architecture x86_64 **clang: error: linker command failed with exit code 1 (use -v to see invocation)** make[2]: *** [../bin/PreprocessMesh] Error 1 make[1]: *** [CMakeFiles/PreprocessMesh.dir/all] Error 2 make: *** [all] Error 2
It seems like it is related to some
Undefined symbols for architecture x86_64
(third line of the aforementioned error traceback).Have you guys ever seen this error come up? Do you have any clew how to troubleshoot it further?
Thanks in advance for your help! :D
The text was updated successfully, but these errors were encountered: