NDK Could NOT find OpenGL (missing: OPENGL_glx_LIBRARY) Ubuntu
1. update
该命令将安装一堆新包,包括gcc,g ++和make。
sudo apt-get update
sudo apt-get install -y build-essential
2. install OpenGL依赖库
sudo apt-get install freeglut3-dev
sudo apt-get install libgl1-mesa-dev
sudo apt-get install libxt-dev
3. other
sudo apt-get install --reinstall libgl1-mesa-dev
因为以前安装过libgl1-mesa-dev库 常规的 sudo apt-get install libgl1-mesa-dev不能覆盖安装,所以直接–reinstall重新安装解决了问题
4. or
sudo apt-get install libgl1-mesa-dev mesa-common-dev libglu1-mesa-dev