Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lrelease-qt5 might be distribution specific #2

Open
adlerweb opened this issue Jul 5, 2016 · 4 comments
Open

lrelease-qt5 might be distribution specific #2

adlerweb opened this issue Jul 5, 2016 · 4 comments

Comments

@adlerweb
Copy link

adlerweb commented Jul 5, 2016

There is currently the following definition:
lrelease.commands = $$[QT_INSTALL_BINS]/lrelease-qt5

Arch however features only
$$[QT_INSTALL_BINS]/lrelease
or
/usr/bin/lrelease-qt5

@tuxmaster
Copy link
Owner

lrelease will be very bad, because it will break the Qt4/Qt5 switch.
QT_INSTALL_BINS is an Qt internal variable. If it is not resolved correct, then the Qt build for Arch Linux is broken. So you must open an bug report for it.

@adlerweb
Copy link
Author

adlerweb commented Jul 7, 2016

QT_INSTALL_BINS is resolved correctly to the QT5 directory (/usr/lib/qt/bin/). QT4 would be /usr/lib/qt4/bin/ on arch. However the official binary is named just "lrelease". The version ending in "-qt5" is a symlink some distributions add but - as far as I can tell - not part of the official qt5-source. There is no standardized way to install qt4 and qt5 on one system so every distribution has it's own structure. So far I could see the following variants:

Debian: $$[QT_INSTALL_BINS]/lrelease-qt5 (symlink to $$[QT_INSTALL_BINS]/lrelease)
Path = /usr/lib/x86_64-linux-gnu/qt5/bin/lrelease

Arch: $$[QT_INSTALL_BINS]/lrelease or /usr/bin/lrelease-qt5
Path = /usr/lib/qt/bin/lrelease

Gentoo: $$[QT_INSTALL_BINS]/lrelease
Path = /usr/lib/qt/bin/lrelease

Looks like this would get rather ugly to get it portable. I'm not really into cmake, but isn't there any way to let it do the guesswork and just tell it to get the distributions qt5-path? I could see the following lines in other projects, but there where no calls for lrelease - not sure if thats an Option…

  • find_package(Qt5Widgets)
  • SET (QT_MIN_VERSION "5.5.0")
  • There is a ${QT_LRELEASE_EXECUTABLE}

@tuxmaster
Copy link
Owner

On Fedora/RedHat QT_INSTALL_BINS points to /usr/lib64/qt5/bin/
and lrelease-qt5 -> lrelease

I will try what happens when I use lrelease

@tuxmaster
Copy link
Owner

So try 02ce20a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants