mupen64plus / mupen64plus-ui-python

A frontend for Mupen64Plus
http://m64py.sourceforge.net/
GNU General Public License v3.0
242 stars 66 forks source link

setup.py can't find lrelease despite existing on the system. #225

Closed ShimmerFairy closed 10 months ago

ShimmerFairy commented 10 months ago

Attempting to run python setup.py build results in the following error message:

running build
running build_qt
warning: BuildQt: Unable to find Qt's Linguist lrelease or lrelease-qt5 tools

What's strange is that the program does in fact exist on my system, under /usr/lib64/qt5/bin/lrelease, and is definitely used by other software on my system (since I don't have need for it myself), so the setup script is incorrectly missing it for some reason.

gen2brain commented 10 months ago

It is expected that the tool is available in PATH, not just installed "somewhere".

ShimmerFairy commented 10 months ago

From what I can tell, this is installed to a standard-for-Qt location, and it seems like build tools are expected to find it themselves, rather than relying on it being in PATH. After a lot of looking around, it seems like QLibraryInfo will tell you what directory Qt binaries are installed in, which should be the best way to find them in any scenario. I can try to figure out how to fix the build script with this and submit a pull request later, but it would likely be faster for somebody more experienced with Python to make this kind of change.