Different Qt5 path: lib64 vs. share

• Aug 16, 2018 - 23:02

Hi, I am building the master branch on Fedora and I have an issue when it tries to "Install" some Qt5 things:
It wants to use

CMake Error at mscore/cmake_install.cmake:45 (file):
  file INSTALL cannot find "/usr/lib64/qt5/translations/qtwebengine_locales".

But on Fedora, I have:
- /usr/share/qt5/translations/qtwebengine_locales
- /usr/share/qt5/resources

I can see it is in the mscore/CMakeLists.txt around line 624
it uses ${QT_INSTALL_PREFIX}/ I changed to /usr/share/qt5/ (I did not find the proper constant)
And it works !!
I have a working build, I could launch and use.

I would have made apull request If I had found the constant for /usr/share/qt5/. But also it might break other Linux distro ... ?


Comments

As for me, it seems to be bad that such paths depending on QT_INSTALL_PREFIX are used at all. Qmake can be queried for locations of different directories including that containing translations via QT_INSTALL_TRANSLATIONS variable. I suppose it is better to use such variables (listed here) instead of guessing paths based on any possible Qt install prefix. Though I am not sure why that way of finding proper install paths is not currently used here.

Do you still have an unanswered question? Please log in first to post your question.