Open nado218 opened 3 weeks ago
Hi Can anyone please suggest how to proceed.
I guess this may be about a simple mistake in compilation. But since I have no knowledge of this part of the code, I ask @yan12125.
@yan12125, could you please take a quick look?
Most likely the issue is that somehow -I/usr/local/include/qtermwidget6/
is specified in CXXFLAGS
but not used by sip-wheel
. No idea why that happens, though.
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.
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
| ^
~~~~~~ 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 2Below 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.