./NiViewer: error while loading shared libraries: libglut.so.3: cannot open shared object file

使用xbox360深度摄像头

参考:https://blog.csdn.net/ouyangandy/article/details/72319237?utm_source=blogxgwz7
第一次使用NiViewer时出现:
./NiViewer: error while loading shared libraries: libglut.so.3: cannot open shared object file: No such file or directory./NiViewer: error while loading shared libraries: libglut.so.3: cannot open shared object file
/---------------------------------------------------------------------------------------------------------------------------------/
尝试以下几个方案:

  1. sudo apt-get update
  2. sudo apt-get upgrade
  3. 修改镜像源
    /********************************************************************************************************/
    3.1 sudo apt-cache search glut |grep glut #搜索相关包./NiViewer: error while loading shared libraries: libglut.so.3: cannot open shared object file
    3.2 sudo apt-get install freeglut3
    ./NiViewer: error while loading shared libraries: libglut.so.3: cannot open shared object file
    即可