CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5Gui/Qt5GuiConfig.cmake:27 "/usr/lib/x86_64-linux-gnu/" missing

Hi, I am using Ubuntu 16.04. I installed the latest version of Nvidia driver ( for my RTX2080Ti card. I installed some software packages but when I typed catkin_make, I got the following error. I have uninstalled and reinstalled the system over five times but still cannot get it resolved. Anybody knows how to fix this? From a post, it seems to be related to Nvidia driver. I tried the solution in:

but it does not work. My setting is a bit different:

user@ubuntu:~/catkin_ws/build/CMakeFiles$ ls /usr/lib/x86_64-linux-gnu | grep -i libegl

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5Gui/Qt5GuiConfig.cmake:27 (message):

The imported target “Qt5::Gui” references the file


but this file does not exist. Possible reasons include:

  • The file was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and contained


but not all the files it references.

Call Stack (most recent call first):

/usr/lib/x86_64-linux-gnu/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:50 (_qt5_Gui_check_file_exists)

/usr/lib/x86_64-linux-gnu/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:72 (_qt5gui_find_extra_libs)

/usr/lib/x86_64-linux-gnu/cmake/Qt5Gui/Qt5GuiConfig.cmake:158 (include)

/usr/lib/x86_64-linux-gnu/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:99 (find_package)

open_manipulator/open_manipulator_control_gui/CMakeLists.txt:21 (find_package)

– Configuring incomplete, errors occurred!

See also “/home/user/catkin_ws/build/CMakeFiles/CMakeOutput.log”.

See also “/home/user/catkin_ws/build/CMakeFiles/CMakeError.log”.

Invoking “cmake” failed

Install libegl1-mesa-dev

Thanks. Tried that already. Based on:

I did:

user@ubuntu:~/catkin_ws$ sudo apt-get update -y
Hit:1 xenial InRelease
Hit:2 xenial-updates InRelease
Hit:3 xenial-backports InRelease
Hit:4 xenial InRelease
Hit:5 xenial-security InRelease
Reading package lists… Done
user@ubuntu:~/catkin_ws$ sudo apt-get install -y libegl1-mesa-dev
Reading package lists… Done
Building dependency tree
Reading state information… Done
libegl1-mesa-dev is already the newest version (18.0.5-0ubuntu0~16.04.1).
0 upgraded, 0 newly installed, 0 to remove and 274 not upgraded.
user@ubuntu:~/catkin_ws$ locate libGL