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

Build fails on macOS Monterey #15

Open
hbast opened this issue Sep 29, 2022 · 2 comments
Open

Build fails on macOS Monterey #15

hbast opened this issue Sep 29, 2022 · 2 comments

Comments

@hbast
Copy link

hbast commented Sep 29, 2022

I'm getting a build error on my MacBook running on macOS Monterey 12.1

/opt/homebrew/bin/../../../bin/qt5/lrelease translations/qtdmm_de.ts -qm translations/qtdmm_de.qm
make[1]: /opt/homebrew/bin/../../../bin/qt5/lrelease: No such file or directory
Putting child 0x600000e39cc0 (qtdmm_de.qm) PID 8491 on the chain.
Live child 0x600000e39cc0 (qtdmm_de.qm) PID 8491
Reaping losing child 0x600000e39cc0 PID 8491
make[1]: *** [qtdmm_de.qm] Error 1
Removing child 0x600000e39cc0 PID 8491 from chain.
Reaping losing child 0x600000cf4000 PID 8485
make: *** [sub-src-make_first-ordered] Error 2
Removing child 0x600000cf4000 PID 8485 from chain.

I installed qt5 via brew and lrelease is inside PATH. The error comes from the line 31 of src/src.pro:

 } else {
lrelease.commands      = $$[QT_INSTALL_BINS]/../../../bin/qt5/lrelease ${QMAKE_FILE_IN} -qm translations/${QMAKE_FILE_BASE}.qm
 }

This resolves the issue for me:

 } else {
 lrelease.commands      = $$[QT_INSTALL_BINS]/lrelease ${QMAKE_FILE_IN} -qm translations/${QMAKE_FILE_BASE}.qm
 }

I will provide an pull request, not sure if this breaks any other build that is not based on linux+g++.

@tuxmaster5000
Copy link

You can add an if block for MacOS, so it not affect any other builds.

@hbast
Copy link
Author

hbast commented Oct 1, 2022

PR #16 should fix the issue. Didn't test it on linux.

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