Skip to content
Advertisement

CMAKE_PREFIX_PATH doesn’t help CMake in finding Qt5

From here: https://stackoverflow.com/a/28327499/462608

I tried this:

JavaScript

Here is the output of cmake .

JavaScript

This is to show that /opt/Qt5.9.1/ does exist.

JavaScript

Here I run the cmake with -DCMAKE option, but the output is still same:

JavaScript

Contents of the directory:

JavaScript

Advertisement

Answer

I installed the following missing packages:

JavaScript

Attaching any kind of prefix is not required now:

CMakeList:

JavaScript

New output:

JavaScript

Errors are gone now.

Thanks to:
https://answers.ros.org/question/236324/could-not-find-a-package-configuration-file-provided-by-qt5widgets/
https://askubuntu.com/questions/508503/whats-the-development-package-for-qt5-in-14-04

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement