boxuLibrary / drt-vio-init

The official repository of our CVPR2023 paper "A Rotation-Translation-Decoupled Solution for Robust and Efficient Visual-Inertial Initialization".
GNU General Public License v3.0
159 stars 20 forks source link

Couldn't build due to Pangolin #22

Open cmakelabs opened 4 months ago

cmakelabs commented 4 months ago

I am trying to build drt-vio-init, but I got the following error, which I suggest is related to the version of Pangolin that I am using:


/usr/local/include/pangolin/gl/glsl.hpp: In member function ‘GLint pangolin::GlSlProgram::GetProgramResourceIndex(const string&)’:
/usr/local/include/pangolin/gl/glsl.hpp:539: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.hpp:539:12: note: suggested alternative: ‘GetProgramResourceIndex’
     return glGetProgramResourceIndex(prog, GL_SHADER_STORAGE_BLOCK, name.c_str());
            ^~~~~~~~~~~~~~~~~~~~~~~~~
            GetProgramResourceIndex
/usr/local/include/pangolin/gl/glsl.hpp: In member function ‘void pangolin::GlSlProgram::SetShaderStorageBlock(const string&, const int&)’:
/usr/local/include/pangolin/gl/glsl.hpp:544:5: error: ‘glShaderStorageBlockBinding’ was not declared in this scope
     glShaderStorageBlockBinding(prog, GetProgramResourceIndex(name), bindingIndex);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pangolin/gl/glsl.hpp:544:5: note: suggested alternative: ‘SetShaderStorageBlock’
     glShaderStorageBlockBinding(prog, GetProgramResourceIndex(name), bindingIndex);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
     SetShaderStorageBlock
make[2]: *** [CMakeFiles/MyVio.dir/build.make:128: CMakeFiles/MyVio.dir/src/initMethod/drtLooselyCoupled.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:108: CMakeFiles/MyVio.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

I am using the same version of Pangolin the current (latest release) version of it from https://github.com/stevenlovegrove/Pangolin.git I assume this is what might have been the cause of these issues, would be grateful for your further guidance

bayesyf commented 1 week ago

same problem. but i switch to pangolin v0.6 which is OK