Help compiling OpenGL sample applications - UBuntu

UBuntu 22.04, Cuda toolkit 12.6 installation.

This seems like a simple problem but I don’t see what is wrong. I am getting the following compilation errors.

WARNING - libEGL.so not found, please install libEGL.so <<<
WARNING - libGLES.so not found, please install libGLES.so <<<
WARNING - libX11.so not found, please install libX11.so <<<
WARNING - libGL.so not found, refer to CUDA Getting Started Guide for how to find and install them. <<<
WARNING - libGLU.so not found, refer to CUDA Getting Started Guide for how to find and install them. <<<

However all these libraries are installed in /usr/lib/x86_64-linux-gnu.

Any ideas?