-
Notifications
You must be signed in to change notification settings - Fork 258
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
QTermWidget PyQt6 bindings fail with error - qtermwidget.sip:14:10: fatal error: qtermwidget.h: No such file or directory #558
Comments
Hi |
Most likely the issue is that somehow |
Has anyone use python qtermwidget on linux |
I did basic testing of python qtermwidget from time to time on Arch Linux. @tsimonq2 may know more about Ubuntu. |
If you replace <qtermwidget.h> by <qtermwidget6/qtermwidget.h> in the .sip file it works. |
Hi,
I'm new to pyQT and I'm trying to build python bindings for QTermWidget.
I could compile and install qtermwidget library but when I try to create a python wheel using sip-wheel --verbose, i get the below error.
What I'm I missing here.
My QTermWidget is installed in installed to the default - /usr/local/
I see the same error with QT5 as well. I'm sure i'm missing something here.
Below is the log.
(6qtenv) nado@Host:~/QT6/qtermwidget/pyqt$ CXXFLAGS="-I$PWD/../lib -I$PWD/../build/lib -I/usr/local/include/qtermwidget6/" LDFLAGS="-L$PWD/../build" 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
Querying qmake about your Qt installation...
/usr/local/Qt-6.6.0/bin/qmake -query
These bindings will be built: QTermWidget.
Generating the QTermWidget bindings...
/home/nado/6qtenv/lib/python3.10/site-packages/PyQt6/bindings/QtCore/QtCoremod.sip: line 64: '%Plugin' is deprecated and will be removed in SIP v7.0.0
Generating the .pro file for the QTermWidget module...
Generating the top-level .pro file...
Generating the Makefiles...
/usr/local/Qt-6.6.0/bin/qmake -recursive QTermWidget.pro
Info: creating stash file /tmp/tmpfv7e8yf7/.qmake.stash
Reading /tmp/tmpfv7e8yf7/QTermWidget/QTermWidget.pro
Compiling the project...
make
cd QTermWidget/ && ( test -e Makefile || /usr/local/Qt-6.6.0/bin/qmake -o Makefile /tmp/tmpfv7e8yf7/QTermWidget/QTermWidget.pro ) && make -f Makefile
make[1]: Entering directory '/tmp/tmpfv7e8yf7/QTermWidget'
g++ -c -pipe -O2 -fno-exceptions -Wall -Wextra -D_REENTRANT -fPIC -DPy_LIMITED_API=0x03080000 -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I. -I.. -I/usr/include/python3.10 -I/usr/local/Qt-6.6.0/include -I/usr/local/Qt-6.6.0/include/QtWidgets -I/usr/local/Qt-6.6.0/include/QtGui -I/usr/local/Qt-6.6.0/include/QtCore -I. -I/usr/local/Qt-6.6.0/mkspecs/linux-g++ -o sipQTermWidgetcmodule.o sipQTermWidgetcmodule.cpp
/home/nado/QT6/qtermwidget/pyqt/sip/qtermwidget.sip:14:10: fatal error: qtermwidget.h: No such file or directory
14 | #include <qtermwidget.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:575: sipQTermWidgetcmodule.o] Error 1
make[1]: Leaving directory '/tmp/tmpfv7e8yf7/QTermWidget'
make: *** [Makefile:47: sub-QTermWidget-make_first-ordered] Error 2
sip-wheel: 'make' failed returning 2
Below is my build environment
Is it possible to install QTermWidget using apt-install on Ubuntu linux ?
can qtermwidget be used with python on Ubuntu Linux. If yes, can you please suggest how to overcome this error during sip-wheel ?
Any help would be very much appreciated.
Thank you.
The text was updated successfully, but these errors were encountered: