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

qmake binary name is hard-coded #4

Closed
marcusbritanicus opened this issue Mar 28, 2024 · 7 comments
Closed

qmake binary name is hard-coded #4

marcusbritanicus opened this issue Mar 28, 2024 · 7 comments

Comments

@marcusbritanicus
Copy link

Currently, qmake binary name is hard-coded. This causes issues with Qt6. The qmake binary that comes with Qt6 is named as qmake6. Since the binary name is hard-coded to 'qmake', this causes problems when using sip-wheel to build Qt6 wheels.

Please provide a way to specify the qmake binary name.

@philthompson10
Copy link
Contributor

The qmake binary name is not hard-coded...

https://pyqt-builder.readthedocs.io/en/latest/command_line_tools.html#cmdoption-qmake

@marcusbritanicus
Copy link
Author

@philthompson10 Thanks for the quick response...! Perhaps, you can help us a little further. We're using PyQt-Builder to build the QTermWidget python module. This is the pyproject.toml file we're using.

This results in an error "qmake" not found. How can we incorporate this option --qmake FILE in our pyproject.toml?

@philthompson10
Copy link
Contributor

You have specified PyQt-builder as a dependency but aren't actually using it. See https://pyqt-builder.readthedocs.io/en/latest/example.html#an-example (specifically the project-factory setting).

@marcusbritanicus
Copy link
Author

marcusbritanicus commented Mar 29, 2024

@philthompson10 Thanks for the example. As a test I tried building QtCharts module for PyQt6 from source. I'm afraid it fails to build. Here is the error message:

$ sip-wheel --verbose
pyproject.toml: line 7: using '[tool.sip.metadata]' to specify the project metadata is deprecated and will be removed in SIP v7.0.0, use '[project]' instead
sip-wheel: pyproject.toml: 'tool.sip.project.qmake': specify a working qmake or add it to PATH

Edit:
I am using Arch (updated, latest). I have qt6-base installed on my system (v 6.6.2). Hence, I do not have /usr/bin/qmake installed. Please have a look at the package here.

@philthompson10
Copy link
Contributor

philthompson10 commented Mar 29, 2024 via email

@marcusbritanicus
Copy link
Author

marcusbritanicus commented Mar 29, 2024

@philthompson10 Ah thanks. I see that I misunderstood your original message. That was partly because sip-wheel --help does not list the --qmake option. Thanks a lot for your help!!

Edit:

So use the --qmake option. Note every standard Qt installation has qmake and qmake6.

Currently, on Arch, qmake points to the binary from qt5-base. Unlike debian and co, arch does not have qt-chooser package. Of course, one can install from aur, but, that's an option and not a necessity.

@philthompson10
Copy link
Contributor

philthompson10 commented Mar 29, 2024 via email

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