Vid2Curve编译

安装的pangolin版本是Pangolin 0.2 是视觉slam十四讲中提供的

报错1:

/home/ckq/Projects/vid2curve0/src/Utils/GlobalDataPool.cpp:89:17: error: ‘glDrawFrustum’ is not a member of ‘pangolin’; did you mean ‘glDrawFrustrum’?
   89 |       pangolin::glDrawFrustum(K_invs_[i], width_and_heights_[i].first, width_and_heights_[i].second, current_frame, 0.05);


/home/ckq/Projects/vid2curve0/src/Utils/GlobalDataPool.cpp中的

 pangolin::glDrawFrustrum(K_invs_[i], width_and_heights_[i].first, width_and_heights_[i].second, current_frame, 0.05);

改为:

 pangolin::glDrawFrustum(K_invs_[i], width_and_heights_[i].first, width_and_heights_[i].second, current_frame, 0.05);

报错2:

/home/ckq/Projects/vid2curve0/src/DisplayMain.cpp: In function ‘int main(int, char**)’:
/home/ckq/Projects/vid2curve0/src/DisplayMain.cpp:70:41: error: too many arguments to function ‘void pangolin::RenderVbo(pangolin::GlBuffer&)’
70 | pangolin::RenderVbo(glxyz, GL_POINTS);

暂时还未解决 应该是pangolin的版本问题!!!
编译的时候 没有把pangolin编译进来 就可以安装通过!!!

报错3:

/home/ckq/Projects/vid2curve0/src/DisplayMain.cpp:80:13: error: ‘QuitAll’ is not a member of ‘pangolin’; did you mean ‘Quit’?
80 | pangolin::QuitAll();


/home/ckq/Projects/vid2curve0/src/DisplayMain.cpp’中的

pangolin::QuitAll();

改为:

pangolin::Quit();

你可能感兴趣的:(计算机视觉)