PDA

View Full Version : CMake does not find Qt - Oracle Linux



franco.amato
30th June 2021, 18:06
Hi everybody,
I am working at a project built for Oracle Linux ( v. 7.3 ). I don't have much freedom of choice, meaning I can't install qt using the installer.
I have to work with the existing installation ( installed using yum ).
The include header files are located under /usr/include/Qt5/*, while the libraries are in /usr/lib64/*.
Unfortunately CMake is not able to find them, the find_package() is not working and I don't see how I can use the CMAKE_PREFIX_PATH.
Any indea on how i can solve my problem?
Regards

d_stranz
1st July 2021, 00:19
The complete form of find_package() (https://cmake.org/cmake/help/v3.12/command/find_package.html) has optional arguments (HINTS, PATHS, PATH_SUFFIXES) which you can use to search different paths than the normal ones. Try modifying the find_package() command that is failing to include your paths.