When you update the NVIDIA driver on your Ubuntu machine or you install a new system from scratch, it can happen that the ZED tools cannot start or you cannot execute the ZED SDK samples due to problems with OpenGL.
This often happens on laptops and desktop computers with dual graphics adapters, and the operating system cannot automatically activate the NVIDIA driver when required.
One of the most common error messages in this case is
ERROR: Internal error <FBConfig with necessary capabilities not found> in function fgOpenWindow
Check the issue
To verify that this is the problem affecting your machine you can open a terminal console ("CTRL + ALT + t") and enter the command
$ glxinfo | grep OpenGL
the correct output should contain the string (usually it is the first line of the output)
OpenGL vendor string: NVIDIA Corporation
if you get something different, for example
OpenGL vendor string: Intel
then your system is affected by the issue described above.
Solution
The solution is to force the operating system to use the NVIDIA GPU using the "prime-select" command.
First of all, enter the BIOS configuration of the PC and disable "Secure Boot".
After booting Ubuntu, open a terminal console ("CTRL + ALT + t") and enter the command
$ sudo prime-select query
if the output is different from "nvidia", then enter the command
$ sudo prime-select nvidia
and reboot the system.
When the system restarts, open a terminal console and verify that the problem is resolved
$ glxinfo | grep OpenGL
and search the output for the string (usually, it is the first line)
OpenGL vendor string: NVIDIA Corporation
If the string is correct, you can try to launch the tool that was not starting or the sample that was crashing and verify that the problem is finally solved.
Instead, if the problem is not resolved, please write an email to support@stereolabs.com describing the problem and attaching the report file generated by the ZED Diagnostic tool.