You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The gen_cmake.sh script searches for Qt5Config.cmake in the wrong folder: Invalid Qt folder (/usr/lib64/cmake/Qt5): Qt5Config.cmake not found in the folder.
It's actually located in /usr/lib64/cmake/Qt5/Qt5Config.cmake.
Changing to that folder with -qtdir doesn't work either:
/gen_cmake.sh -release -qtvers 5.15.2 -qtdir /usr/lib64/cmake/Qt5
CMake Generator version 7.0
Invalid Qt folder (/usr/lib64/cmake/Qt5): Qt5Config.cmake not found in the folder.
Maybe try the -qtdir option, see help (-h)
The text was updated successfully, but these errors were encountered:
the script doesn't really "searches in the wrong folder", as there is no real common place for Qt on all the available linux distros. You were right by using the -qtdir option to specify the folder for your distro, but I don't know why it is not working for you. I don't have any issue using debian or ubuntu.
The issues is that the Qt<major> directory is automatically appended. So the correct call would be ./gen_cmake.sh -release -qtvers 5.15.2 -qtdir /usr/lib64/cmake.
My impression is that qtdir is actually more of a cmake dir. It's honestly a bit odd having to specify the default cmake directory to get this working. Unless one has manually build Qt, there isn't any reason to set CMAKE_PREFIX_PATH or QT_MAJOR_VERSION on Linux. cmake still runs successfully when removing all of extend_gc_fnc_precmake() except for the last two lines.
The thing is, the script was made to work on systems where Qt is either recompiled, or using the maintenance tool, which are the most common use on Windows and macOS (primary targets of Hive). The linux part of the script tries to handle those cases, but on some systems it's not working right away. It's ok on the Ubuntu/debian systems I'm using though.
I'll try to take a look some day and try to improve it, but it's hard to support all possible systems. So many more important improvements to add first. Thanks for letting me now anyway.
The gen_cmake.sh script searches for Qt5Config.cmake in the wrong folder:
Invalid Qt folder (/usr/lib64/cmake/Qt5): Qt5Config.cmake not found in the folder.
It's actually located in
/usr/lib64/cmake/Qt5/Qt5Config.cmake
.Changing to that folder with -qtdir doesn't work either:
The text was updated successfully, but these errors were encountered: