Difference between revisions of "En/TDE python-tqt"

From Studiosg
Jump to navigationJump to search
(Page updated to new template)
 
(No difference)

Latest revision as of 14:10, 21 March 2022

Welcome to Simone Giustetti's wiki pages.


Languages: English - Italiano


PYTHON-TQT

TDE - Base Packages

Python-tqt is a library which binds TQT, the customized QT toolkit used by the Trinity Desktop Environement, with PtQt: a set of language bindings for Python and the many functions and objects provided by the QT framework. Python-tqt is needed for building a working python-trinity package needed in turn for adding the Python language to tdebindings.

Python-tqt and Slackware

Just like SIP, python-tqt was not deemed production ready and as such no package exists for the 3.5.13.2 release. No source code archive exists for the package too. Anyway, wishing to produce a full set of TDE packages, I tried to build python-tqt from source code obtained by the TDE project GIT repository. The easier way to obtain the code consists of downloading a compressed archive from the repository master branch.

Once downloaded, the archive was decompressed and I went on with all the steps needed to build a working binary package. My aim was to have some sort of track to use later while writing a SlackBuild script. The python-tqt source code does not use autotools nor cmake for configuring, only a Phyton script: configure.py, which can be executed running: python configure.py <options> . Once configured the package can be built running make then make install.

The command line used to configure the source code is:

   python configure.py \
      -b /usr/bin \
      -d /usr/lib/python2.7/site-packages \
      -l /usr/include/python2.7 \
      CFLAGS="-O2 -march=i486 -mtune=i686 -L/opt/trinity/lib -I/opt/trinity/include -I/usr/include/tqt -I/usr/lib/qt/include" \
      CXXFLAGS="-O2 -march=i486 -mtune=i686 -L/opt/trinity/lib -I/opt/trinity/include -I/usr/include/tqt -I/usr/lib/qt/include"

The first configuration attempt produced the following error:

  Error: Unable to find the default configuration file
  /usr/lib/qt/mkspecs/default/qmake.conf. You can use the QMAKESPEC environment
  variable to specify the correct platform instead of "default".

Adding some links and removing some old stale ones was needed to solve the issue:

  ln -s /opt/trinity/mkspecs /usr/lib/qt/mkspecs
  rm /opt/trinity/mkspecs/default
     (This linked to a removed file: /tmp/build/tmp-qt3-trinity/qt3-trinity-3.5.13.2/mkspecs/linux-g++)
  ln -s /opt/trinity/mkspecs/linux-g++ /opt/trinity/mkspecs/default

Rerunning the configuration script another error rose:

  Error: qglobal.h or ntqglobal.h could not be found in /usr/lib/qt/include.

Three files named qglobal.h were found:

  1. /usr/include/tqt/Qt/qglobal.h
  2. /usr/include/tqt/qglobal.h
  3. /opt/trinity/include/qglobal.h

Among them the first was the one the error referred to. Adding a new path to the command line options produced no result so a new link was added instead:

  ln -s /usr/include/tqt/Qt/qglobal.h /usr/lib/qt/include/qglobal.h

This permitted the configuration script to proceed one step further then return another error:

  Error: The TQt version number could not be determined by parsing
  /usr/lib/qt/include/qglobal.h.

After some research through the project wiki page and reading the configure.py script and the qglobal.h file, I noticed some inconsistencies: The script was looking for variables TQT_VERSION and TQT_VERSION_STR, but QT_VERSION and QT_VERSION_STR could instead be found in the file. This is probably a consequence of being forced to install the Qt3 toolkit instead of the TQt one as discussed in the Qt3 related page. The configuration script line 1128 was updated:

   #   qt_version, ignore = sipconfig.read_version(qglobal, "TQt", "TQT_VERSION")
      qt_version, ignore = sipconfig.read_version(qglobal, "Qt", "QT_VERSION")

And the script could go on one step more. Sadly another error showed up:

  Error: TQt v4.x requires PyTQt v4.x.

Please note that package PyQt-4.9.1-i486-3.txz had previously been installed as required by the python-tqt documentation. Removing then reinstalling the package produced no noticeable result to the issue. The qglobal.h file refers to QT release 4.6, but the Trinity Desktop Environment is built upon release 3 of the toolkit. Updating qglobal.h lines 47 and 52 as shown below:

   //#define QT_VERSION_STR "4.6.2"
   #define QT_VERSION_STR "3.5.13"
   
   /*
      QT_VERSION is (major << 16) + (minor << 8) + patch.
   */
   //#define QT_VERSION 0x040602
   #define QT_VERSION 0x030513

Got the script going on some more until hitting on a new error born by the lack of some files:

  Error: qconfig.h or ntqconfig.h could not be found in /usr/lib/qt/include.

qconfig.h was found in: /opt/trinity/include/qconfig.h. Adding the new path to the script command line proved again to be useless so a link was created:

  ln -s /opt/trinity/include/qconfig.h /usr/lib/qt/include/qconfig.h

Resulting in a new issue immediately after:

  Error: No TQt libraries could be found in /usr/lib/qt/lib

Another link was needed to solve it:

  ln -s /opt/trinity/lib/libqt-mt.so /usr/lib/qt/lib/libtqt-mt.so

And the script was finally able to find all needed files:

  This is the GPL version of PyTQt 3.18.1 (licensed under the GNU General Public
  License) for Python 2.7.3 on linux2.
  
  Type 'L' to view the license.
  Type 'yes' to accept the terms of the license.
  Type 'no' to decline the terms of the license.
  
  Do you accept the terms of the license? yes
  qextscintillaglobal.h could not be found in /usr/lib/qt/include and so the
  qtext module will not be built. If TQScintilla is installed then use the -n
  argument to explicitly specify the correct directory.
  Checking to see if the qtcanvas module should be built...
  Checking to see if the qtnetwork module should be built...
  Checking to see if the qttable module should be built...
  Checking to see if the qtxml module should be built...
  Checking to see if the qtgl module should be built...
  Checking to see if the qtui module should be built...
  Checking to see if the qtsql module should be built...
  Checking to see if the TQAssistantClient class is available...
  Creating features file...
  Checking to see if the TQCDEStyle class is built in...
  Checking to see if the TQCDEStyle class is built in...
  Checking to see if the TQInterlaceStyle class is built in...
  Checking to see if the TQInterlaceStyle class is built in...
  Checking to see if the TQMotifStyle class is built in...
  Checking to see if the TQMotifStyle class is built in...
  Checking to see if the TQMotifPlusStyle class is built in...
  Checking to see if the TQMotifPlusStyle class is built in...
  Checking to see if the TQPlatinumStyle class is built in...
  Checking to see if the TQPlatinumStyle class is built in...
  Checking to see if the TQSGIStyle class is built in...
  Checking to see if the TQSGIStyle class is built in...
  Checking to see if the TQWindowsXPStyle class is built in...
  Checking to see if the TQWindowsXPStyle class is built in...
  Checking to see if the TQWindowsStyle class is built in...
  Checking to see if the TQWindowsStyle class is built in...
  TQt v3.5.19 free edition is being used.
  SIP 4.10.5 is being used.
  These PyTQt modules will be built: qt.
  Support for these TQt classes has been disabled: TQAssistantClient TQCDEStyle
  TQInterlaceStyle TQMotifStyle TQMotifPlusStyle TQPlatinumStyle TQSGIStyle
  TQWindowsXPStyle TQWindowsStyle.
  The PyTQt modules will be installed in /usr/lib/python2.7/site-packages.
  The PyTQt .sip files will be installed in /usr/share/sip.
  The TQt header files are in /usr/lib/qt/include.
  The tqt-mt TQt library is in /usr/lib/qt/lib.
  pyuic will be installed in /usr/bin.
  pylupdate will be installed in /usr/bin.
  Generating the C++ source for the qt module...
  Creating the Makefile for the qt module...
  Creating top level Makefile...
  Creating pyuic Makefile...
  An internal error occured.  Please report all the output from the program,
  including the following traceback, to support@riverbankcomputing.co.uk.
  Traceback (most recent call last):
  File "configure.py", line 1469, in <module>
     main(sys.argv)
  File "configure.py", line 1455, in main
     subdirs=pyqt_modules + pyqt.tools(),
  File "configure.py", line 300, in tools
     shutil.copyfile(qt_dir + "/src/xml/" + xml, "pyuic3/" + xml)
  File "/usr/lib/python2.7/shutil.py", line 82, in copyfile
     with open(src, 'rb') as fsrc:
  IOError: [Errno 2] No such file or directory: '/usr/lib/qt/src/xml/qdom.cpp'

Except for some source code files part of the QT package. After creating directory /usr/lib/qt/src/xml

  mkdir -p /usr/lib/qt/src/xml

all files extracted form directory /src/xml of archive qt3-trinity-3.5.13.2.tar.xz were copied into it. Thus the script was finally able to run to completion generating all of the files needed by the make command:

  This is the GPL version of PyTQt 3.18.1 (licensed under the GNU General Public
  License) for Python 2.7.3 on linux2.
  
  Type 'L' to view the license.
  Type 'yes' to accept the terms of the license.
  Type 'no' to decline the terms of the license.
  
  Do you accept the terms of the license? yes
  qextscintillaglobal.h could not be found in /usr/lib/qt/include and so the
  qtext module will not be built. If TQScintilla is installed then use the -n
  argument to explicitly specify the correct directory.
  Checking to see if the qtcanvas module should be built...
  Checking to see if the qtnetwork module should be built...
  Checking to see if the qttable module should be built...
  Checking to see if the qtxml module should be built...
  Checking to see if the qtgl module should be built...
  Checking to see if the qtui module should be built...
  Checking to see if the qtsql module should be built...
  Checking to see if the TQAssistantClient class is available...
  Creating features file...
  Checking to see if the TQCDEStyle class is built in...
  Checking to see if the TQCDEStyle class is built in...
  Checking to see if the TQInterlaceStyle class is built in...
  Checking to see if the TQInterlaceStyle class is built in...
  Checking to see if the TQMotifStyle class is built in...
  Checking to see if the TQMotifStyle class is built in...
  Checking to see if the TQMotifPlusStyle class is built in...
  Checking to see if the TQMotifPlusStyle class is built in...
  Checking to see if the TQPlatinumStyle class is built in...
  Checking to see if the TQPlatinumStyle class is built in...
  Checking to see if the TQSGIStyle class is built in...
  Checking to see if the TQSGIStyle class is built in...
  Checking to see if the TQWindowsXPStyle class is built in...
  Checking to see if the TQWindowsXPStyle class is built in...
  Checking to see if the TQWindowsStyle class is built in...
  Checking to see if the TQWindowsStyle class is built in...
  TQt v3.5.19 free edition is being used.
  SIP 4.10.5 is being used.
  These PyTQt modules will be built: qt.
  Support for these TQt classes has been disabled: TQAssistantClient TQCDEStyle
  TQInterlaceStyle TQMotifStyle TQMotifPlusStyle TQPlatinumStyle TQSGIStyle
  TQWindowsXPStyle TQWindowsStyle.
  The PyTQt modules will be installed in /usr/lib/python2.7/site-packages.
  The PyTQt .sip files will be installed in /usr/share/sip.
  The TQt header files are in /usr/lib/qt/include.
  The tqt-mt TQt library is in /usr/lib/qt/lib.
  pyuic will be installed in /usr/bin.
  pylupdate will be installed in /usr/bin.
  Generating the C++ source for the qt module...
  Creating the Makefile for the qt module...
  Creating top level Makefile...
  Creating pyuic Makefile...
  Creating pylupdate Makefile...
  Creating pyqtconfig.py...

Sadly the make command executed immediately after produced quite an amount of new errors:

  bash-4.2# make
  make[1]: Entering directory `/tmp/build/tmp-python-tqt/python-tqt-3.5.13.2/qt'
  g++ -c -O2 -march=i486 -mtune=i686 -L/opt/trinity/lib -I/opt/trinity/include -I/usr/include/tqt -I/usr/lib/qt/include 
     -fPIC -O2 -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I/usr/include/python2.7 
     -I/usr/lib/qt/mkspecs/default -I/usr/lib/qt/include -I/usr/X11R6/include -o sipqtcmodule.o sipqtcmodule.cpp
  In file included from /usr/include/tqt/tqimage.h:32:0,
                 from /tmp/build/tmp-python-tqt/python-tqt-3.5.13.2/sip/qt/qimage.sip:139:
  /opt/trinity/include/qimage.h: In member function 'bool QImageTextKeyLang::operator<(const QImageTextKeyLang&) const':
  /opt/trinity/include/qimage.h:61:61: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  /tmp/build/tmp-python-tqt/python-tqt-3.5.13.2/sip/qt/qobject.sip: At global scope:
  /tmp/build/tmp-python-tqt/python-tqt-3.5.13.2/sip/qt/qobject.sip:1256:1: warning: missing initializer for 
     member '_heaptypeobject::as_number' [-Wmissing-field-initializers]
  /tmp/build/tmp-python-tqt/python-tqt-3.5.13.2/sip/qt/qobject.sip:1256:1: warning: missing initializer for 
     member '_heaptypeobject::as_mapping' [-Wmissing-field-initializers]
  /tmp/build/tmp-python-tqt/python-tqt-3.5.13.2/sip/qt/qobject.sip:1256:1: warning: missing initializer for 
     member '_heaptypeobject::as_sequence' [-Wmissing-field-initializers]
  /tmp/build/tmp-python-tqt/python-tqt-3.5.13.2/sip/qt/qobject.sip:1256:1: warning: missing initializer for 
     member '_heaptypeobject::as_buffer' [-Wmissing-field-initializers]
  /tmp/build/tmp-python-tqt/python-tqt-3.5.13.2/sip/qt/qobject.sip:1256:1: warning: missing initializer for 
     member '_heaptypeobject::ht_name' [-Wmissing-field-initializers]
  /tmp/build/tmp-python-tqt/python-tqt-3.5.13.2/sip/qt/qobject.sip:1256:1: warning: missing initializer for 
     member '_heaptypeobject::ht_slots' [-Wmissing-field-initializers]
  /tmp/build/tmp-python-tqt/python-tqt-3.5.13.2/sip/qt/qobject.sip: In static member function 'static QMetaObject* 
     UniversalSlot::staticMetaObject()':
  /tmp/build/tmp-python-tqt/python-tqt-3.5.13.2/sip/qt/qobject.sip:1441:15: error: 'TQUMethod' does not name a type
  /tmp/build/tmp-python-tqt/python-tqt-3.5.13.2/sip/qt/qobject.sip:1443:18: error: 'slot' was not declared in this scope
  /tmp/build/tmp-python-tqt/python-tqt-3.5.13.2/sip/qt/qobject.sip: In member function 'virtual bool 
     UniversalSlot::tqt_invoke(int, QUObject*)':
  /tmp/build/tmp-python-tqt/python-tqt-3.5.13.2/sip/qt/qobject.sip:1465:10: error: 'tqt_invoke' is not a 
     member of 'QObject'
  /tmp/build/tmp-python-tqt/python-tqt-3.5.13.2/sip/qt/qobject.sip:1478:9: error: 'static_QUType_TQVariant' 
     was not declared in this scope
  /tmp/build/tmp-python-tqt/python-tqt-3.5.13.2/sip/qt/qobject.sip:1579:11: error: 'static_QUType_TQVariant' 
     was not declared in this scope
  sipqtcmodule.cpp: At global scope:
  sipqtcmodule.cpp:8569:72: error: 'TQStyleControlElementData' does not name a type
  sipqtcmodule.cpp:8569:99: error: ISO C++ forbids declaration of 'a0' with no type [-fpermissive]
  sipqtcmodule.cpp:8569:111: error: 'QStyle::ControlElementFlags' has not been declared
  sipqtcmodule.cpp:8569:152: error: 'QStyle::ApplicationActionRequest' has not been declared
  sipqtcmodule.cpp:8569:180: error: 'TQStyleWidgetActionRequestData' has not been declared
  sipqtcmodule.cpp: In function 'bool sipVH_qt_121(sip_gilstate_t, PyObject*, const int&, int, void*, int, int)':
  sipqtcmodule.cpp:8572:62: error: expected type-specifier before 'TQStyleControlElementData'
  sipqtcmodule.cpp:8572:62: error: expected ')' before 'TQStyleControlElementData'
  sipqtcmodule.cpp:8572:221: error: expected type-specifier before 'TQStyleApplicationActionRequestData'
  sipqtcmodule.cpp:8572:221: error: expected ')' before 'TQStyleApplicationActionRequestData'
  sipqtcmodule.cpp: At global scope:
  sipqtcmodule.cpp:8569:6: warning: unused parameter 'a0' [-Wunused-parameter]
  sipqtcmodule.cpp:8569:6: warning: unused parameter 'a4' [-Wunused-parameter]
  sipqtcmodule.cpp:8585:72: error: 'TQStyleControlElementData' does not name a type
  sipqtcmodule.cpp:8585:99: error: ISO C++ forbids declaration of 'a0' with no type [-fpermissive]
  sipqtcmodule.cpp:8585:111: error: 'QStyle::ControlElementFlags' has not been declared
  sipqtcmodule.cpp:8585:152: error: 'QStyle::WidgetActionRequest' has not been declared
  sipqtcmodule.cpp:8585:175: error: 'TQStyleWidgetActionRequestData' has not been declared
  sipqtcmodule.cpp: In function 'bool sipVH_qt_122(sip_gilstate_t, PyObject*, const int&, int, void*, int, int)':
  sipqtcmodule.cpp:8588:62: error: expected type-specifier before 'TQStyleControlElementData'
  sipqtcmodule.cpp:8588:62: error: expected ')' before 'TQStyleControlElementData'
  sipqtcmodule.cpp:8588:216: error: expected type-specifier before 'TQStyleWidgetActionRequestData'
  sipqtcmodule.cpp:8588:216: error: expected ')' before 'TQStyleWidgetActionRequestData'
  sipqtcmodule.cpp: At global scope:
  sipqtcmodule.cpp:8585:6: warning: unused parameter 'a0' [-Wunused-parameter]
  sipqtcmodule.cpp:8585:6: warning: unused parameter 'a4' [-Wunused-parameter]
  sipqtcmodule.cpp:8601:72: error: 'TQStyleControlElementData' does not name a type
  sipqtcmodule.cpp:8601:99: error: ISO C++ forbids declaration of 'a0' with no type [-fpermissive]
  sipqtcmodule.cpp:8601:111: error: 'QStyle::ControlElementFlags' has not been declared
  sipqtcmodule.cpp: In function 'bool sipVH_qt_123(sip_gilstate_t, PyObject*, const int&, int, void*, QEvent*)':
  sipqtcmodule.cpp:8604:61: error: expected type-specifier before 'TQStyleControlElementData'
  sipqtcmodule.cpp:8604:61: error: expected ')' before 'TQStyleControlElementData'
  sipqtcmodule.cpp: At global scope:
  sipqtcmodule.cpp:8601:6: warning: unused parameter 'a0' [-Wunused-parameter]
  sipqtcmodule.cpp:8617:100: error: 'TQStyleControlElementData' does not name a type
  sipqtcmodule.cpp:8617:127: error: ISO C++ forbids declaration of 'a1' with no type [-fpermissive]
  sipqtcmodule.cpp:8617:139: error: 'QStyle::ControlElementFlags' has not been declared
  sipqtcmodule.cpp: In function 'QPixmap sipVH_qt_124(sip_gilstate_t, PyObject*, QStyle::StylePixmap, 
     const int&, int, const QStyleOption&, const QWidget*)':
  sipqtcmodule.cpp:8620:93: error: expected type-specifier before 'TQStyleControlElementData'
  sipqtcmodule.cpp:8620:93: error: expected ')' before 'TQStyleControlElementData'
  sipqtcmodule.cpp: At global scope:
  sipqtcmodule.cpp:8617:10: warning: unused parameter 'a1' [-Wunused-parameter]
  sipqtcmodule.cpp:8633:93: error: 'TQStyleControlElementData' does not name a type
  sipqtcmodule.cpp:8633:120: error: ISO C++ forbids declaration of 'a1' with no type [-fpermissive]
  sipqtcmodule.cpp:8633:132: error: 'QStyle::ControlElementFlags' has not been declared
  sipqtcmodule.cpp: In function 'int sipVH_qt_125(sip_gilstate_t, PyObject*, QStyle::StyleHint, 
     const int&, int, const QStyleOption&, QStyleHintReturn*, const QWidget*)':
  sipqtcmodule.cpp:8636:92: error: expected type-specifier before 'TQStyleControlElementData'
  sipqtcmodule.cpp:8636:92: error: expected ')' before 'TQStyleControlElementData'
  sipqtcmodule.cpp: At global scope:
  sipqtcmodule.cpp:8633:5: warning: unused parameter 'a1' [-Wunused-parameter]
  sipqtcmodule.cpp:8649:99: error: 'TQStyleControlElementData' does not name a type
  sipqtcmodule.cpp:8649:126: error: ISO C++ forbids declaration of 'a1' with no type [-fpermissive]
  sipqtcmodule.cpp:8649:138: error: 'QStyle::ControlElementFlags' has not been declared
  sipqtcmodule.cpp: In function 'QSize sipVH_qt_126(sip_gilstate_t, PyObject*, QStyle::ContentsType, 
     const int&, int, const QSize&, const QStyleOption&, const QWidget*)':
  sipqtcmodule.cpp:8652:95: error: expected type-specifier before 'TQStyleControlElementData'
  sipqtcmodule.cpp:8652:95: error: expected ')' before 'TQStyleControlElementData'
  sipqtcmodule.cpp: At global scope:
  sipqtcmodule.cpp:8649:8: warning: unused parameter 'a1' [-Wunused-parameter]
  sipqtcmodule.cpp:8665:95: error: 'TQStyleControlElementData' does not name a type
  sipqtcmodule.cpp:8665:122: error: ISO C++ forbids declaration of 'a1' with no type [-fpermissive]
  sipqtcmodule.cpp:8665:134: error: 'QStyle::ControlElementFlags' has not been declared
  sipqtcmodule.cpp: In function 'int sipVH_qt_127(sip_gilstate_t, PyObject*, QStyle::PixelMetric, 
     const int&, int, const QWidget*)':
  sipqtcmodule.cpp:8668:92: error: expected type-specifier before 'TQStyleControlElementData'
  sipqtcmodule.cpp:8668:92: error: expected ')' before 'TQStyleControlElementData'
  sipqtcmodule.cpp: At global scope:
  sipqtcmodule.cpp:8665:5: warning: unused parameter 'a1' [-Wunused-parameter]
  sipqtcmodule.cpp:8681:114: error: 'TQStyleControlElementData' does not name a type
  sipqtcmodule.cpp:8681:141: error: ISO C++ forbids declaration of 'a1' with no type [-fpermissive]
  sipqtcmodule.cpp:8681:153: error: 'QStyle::ControlElementFlags' has not been declared
  sipqtcmodule.cpp: In function 'QStyle::SubControl sipVH_qt_128(sip_gilstate_t, PyObject*, 
     QStyle::ComplexControl, const int&, int, const QPoint&, const QStyleOption&, const QWidget*)':
  sipqtcmodule.cpp:8684:97: error: expected type-specifier before 'TQStyleControlElementData'
  sipqtcmodule.cpp:8684:97: error: expected ')' before 'TQStyleControlElementData'
  sipqtcmodule.cpp: At global scope:
  sipqtcmodule.cpp:8681:21: warning: unused parameter 'a1' [-Wunused-parameter]
  sipqtcmodule.cpp:8697:101: error: 'TQStyleControlElementData' does not name a type
  sipqtcmodule.cpp:8697:128: error: ISO C++ forbids declaration of 'a1' with no type [-fpermissive]
  sipqtcmodule.cpp:8697:140: error: 'QStyle::ControlElementFlags' has not been declared
  sipqtcmodule.cpp: In function 'QRect sipVH_qt_129(sip_gilstate_t, PyObject*, QStyle::ComplexControl, 
     const int&, int, QStyle::SubControl, const QStyleOption&, const QWidget*)':
  sipqtcmodule.cpp:8700:97: error: expected type-specifier before 'TQStyleControlElementData'
  sipqtcmodule.cpp:8700:97: error: expected ')' before 'TQStyleControlElementData'
  sipqtcmodule.cpp: At global scope:
  sipqtcmodule.cpp:8697:8: warning: unused parameter 'a1' [-Wunused-parameter]
  sipqtcmodule.cpp:8713:113: error: 'TQStyleControlElementData' does not name a type
  sipqtcmodule.cpp:8713:140: error: ISO C++ forbids declaration of 'a2' with no type [-fpermissive]
  sipqtcmodule.cpp:8713:149: error: 'ControlElementFlags' in 'class QStyle' does not name a type
  sipqtcmodule.cpp:8713:178: error: ISO C++ forbids declaration of 'a3' with no type [-fpermissive]
  sipqtcmodule.cpp: In function 'void sipVH_qt_130(sip_gilstate_t, PyObject*, QStyle::ComplexControl, 
     QPainter*, const int&, int, const QRect&, const QStyleOption&, const QWidget*)':
  sipqtcmodule.cpp:8715:124: error: expected type-specifier before 'TQStyleControlElementData'
  sipqtcmodule.cpp:8715:124: error: expected ')' before 'TQStyleControlElementData'
  sipqtcmodule.cpp: At global scope:
  sipqtcmodule.cpp:8713:6: warning: unused parameter 'a2' [-Wunused-parameter]
  sipqtcmodule.cpp:8726:113: error: 'TQStyleControlElementData' does not name a type
  sipqtcmodule.cpp:8726:140: error: ISO C++ forbids declaration of 'a2' with no type [-fpermissive]
  sipqtcmodule.cpp:8726:152: error: 'QStyle::ControlElementFlags' has not been declared
  sipqtcmodule.cpp: In function 'void sipVH_qt_131(sip_gilstate_t, PyObject*, QStyle::ComplexControl, 
     QPainter*, const int&, int, const QRect&, const QColorGroup&, unsigned int, unsigned int, unsigned int, 
     const QStyleOption&, const QWidget*)':
  sipqtcmodule.cpp:8728:128: error: expected type-specifier before 'TQStyleControlElementData'
  sipqtcmodule.cpp:8728:128: error: expected ')' before 'TQStyleControlElementData'
  sipqtcmodule.cpp: At global scope:
  sipqtcmodule.cpp:8726:6: warning: unused parameter 'a2' [-Wunused-parameter]
  sipqtcmodule.cpp:8739:94: error: 'TQStyleControlElementData' does not name a type
  sipqtcmodule.cpp:8739:121: error: ISO C++ forbids declaration of 'a1' with no type [-fpermissive]
  sipqtcmodule.cpp:8739:130: error: 'ControlElementFlags' in 'class QStyle' does not name a type
  sipqtcmodule.cpp:8739:159: error: ISO C++ forbids declaration of 'a2' with no type [-fpermissive]
  sipqtcmodule.cpp: In function 'QRect sipVH_qt_132(sip_gilstate_t, PyObject*, QStyle::SubRect, const int&, 
     int, const QWidget*)':
  sipqtcmodule.cpp:8742:88: error: expected type-specifier before 'TQStyleControlElementData'
  sipqtcmodule.cpp:8742:88: error: expected ')' before 'TQStyleControlElementData'
  sipqtcmodule.cpp: At global scope:
  sipqtcmodule.cpp:8739:8: warning: unused parameter 'a1' [-Wunused-parameter]
  sipqtcmodule.cpp:8755:113: error: 'TQStyleControlElementData' does not name a type
  sipqtcmodule.cpp:8755:140: error: ISO C++ forbids declaration of 'a2' with no type [-fpermissive]
  sipqtcmodule.cpp:8755:152: error: 'QStyle::ControlElementFlags' has not been declared
  sipqtcmodule.cpp: In function 'void sipVH_qt_133(sip_gilstate_t, PyObject*, QStyle::ControlElement, 
     QPainter*, const int&, int, const QRect&, const QStyleOption&, const QWidget*)':
  sipqtcmodule.cpp:8757:124: error: expected type-specifier before 'TQStyleControlElementData'
  sipqtcmodule.cpp:8757:124: error: expected ')' before 'TQStyleControlElementData'
  sipqtcmodule.cpp: At global scope:
  sipqtcmodule.cpp:8755:6: warning: unused parameter 'a2' [-Wunused-parameter]
  sipqtcmodule.cpp:8768:113: error: 'TQStyleControlElementData' does not name a type
  sipqtcmodule.cpp:8768:140: error: ISO C++ forbids declaration of 'a2' with no type [-fpermissive]
  sipqtcmodule.cpp:8768:152: error: 'QStyle::ControlElementFlags' has not been declared
  sipqtcmodule.cpp: In function 'void sipVH_qt_134(sip_gilstate_t, PyObject*, QStyle::ControlElement, 
     QPainter*, const int&, int, const QRect&, const QColorGroup&, unsigned int, const QStyleOption&, const QWidget*)':
  sipqtcmodule.cpp:8770:126: error: expected type-specifier before 'TQStyleControlElementData'
  sipqtcmodule.cpp:8770:126: error: expected ')' before 'TQStyleControlElementData'
  sipqtcmodule.cpp: At global scope:
  sipqtcmodule.cpp:8768:6: warning: unused parameter 'a2' [-Wunused-parameter]
  sipqtcmodule.cpp:8781:115: error: 'TQStyleControlElementData' does not name a type
  sipqtcmodule.cpp:8781:142: error: ISO C++ forbids declaration of 'a2' with no type [-fpermissive]
  sipqtcmodule.cpp:8781:154: error: 'QStyle::ControlElementFlags' has not been declared
  sipqtcmodule.cpp: In function 'void sipVH_qt_135(sip_gilstate_t, PyObject*, QStyle::PrimitiveElement, 
     QPainter*, const int&, int, const QRect&, const QColorGroup&, unsigned int, const QStyleOption&)':
  sipqtcmodule.cpp:8783:127: error: expected type-specifier before 'TQStyleControlElementData'
  sipqtcmodule.cpp:8783:127: error: expected ')' before 'TQStyleControlElementData'
  sipqtcmodule.cpp: At global scope:
  sipqtcmodule.cpp:8781:6: warning: unused parameter 'a2' [-Wunused-parameter]
  sipqtcmodule.cpp:9000:72: error: 'TQStyleControlElementData' does not name a type
  sipqtcmodule.cpp:9000:99: error: ISO C++ forbids declaration of 'a0' with no type [-fpermissive]
  sipqtcmodule.cpp:9000:111: error: 'QStyle::ControlElementFlags' has not been declared
  sipqtcmodule.cpp: In function 'void sipVH_qt_150(sip_gilstate_t, PyObject*, const int&, int, void*)':
  sipqtcmodule.cpp:9002:60: error: expected type-specifier before 'TQStyleControlElementData'
  sipqtcmodule.cpp:9002:60: error: expected ')' before 'TQStyleControlElementData'
  sipqtcmodule.cpp: At global scope:
  sipqtcmodule.cpp:9000:6: warning: unused parameter 'a0' [-Wunused-parameter]
  sipqtcmodule.cpp: In function 'PyObject* func_tqAppClass(PyObject*, PyObject*)':
  sipqtcmodule.cpp:12559:33: error: 'tqAppClass' was not declared in this scope
  sipqtcmodule.cpp: In function 'PyObject* func_tqt_xrootwin(PyObject*, PyObject*)':
  sipqtcmodule.cpp:12588:35: error: 'tqt_xrootwin' was not declared in this scope
  sipqtcmodule.cpp:12601:37: error: 'tqt_xrootwin' was not declared in this scope
  sipqtcmodule.cpp: In function 'PyObject* func_tqt_xscreen(PyObject*, PyObject*)':
  sipqtcmodule.cpp:12624:34: error: 'tqt_xscreen' was not declared in this scope
  sipqtcmodule.cpp: In function 'PyObject* func_tqt_xdisplay(PyObject*, PyObject*)':
  sipqtcmodule.cpp:12647:35: error: 'tqt_xdisplay' was not declared in this scope
  sipqtcmodule.cpp: In function 'PyObject* func_tqInstallPathSysconf(PyObject*, PyObject*)':
  sipqtcmodule.cpp:12670:43: error: 'tqInstallPathSysconf' was not declared in this scope
  sipqtcmodule.cpp: In function 'PyObject* func_tqInstallPathTranslations(PyObject*, PyObject*)':
  sipqtcmodule.cpp:12699:48: error: 'tqInstallPathTranslations' was not declared in this scope
  sipqtcmodule.cpp: In function 'PyObject* func_tqInstallPathData(PyObject*, PyObject*)':
  sipqtcmodule.cpp:12728:40: error: 'tqInstallPathData' was not declared in this scope
  sipqtcmodule.cpp: In function 'PyObject* func_tqInstallPathPlugins(PyObject*, PyObject*)':
  sipqtcmodule.cpp:12757:43: error: 'tqInstallPathPlugins' was not declared in this scope
  sipqtcmodule.cpp: In function 'PyObject* func_tqInstallPathBins(PyObject*, PyObject*)':
  sipqtcmodule.cpp:12786:40: error: 'tqInstallPathBins' was not declared in this scope
  sipqtcmodule.cpp: In function 'PyObject* func_tqInstallPathLibs(PyObject*, PyObject*)':
  sipqtcmodule.cpp:12815:40: error: 'tqInstallPathLibs' was not declared in this scope
  sipqtcmodule.cpp: In function 'PyObject* func_tqInstallPathHeaders(PyObject*, PyObject*)':
  sipqtcmodule.cpp:12844:43: error: 'tqInstallPathHeaders' was not declared in this scope
  sipqtcmodule.cpp: In function 'PyObject* func_tqInstallPathDocs(PyObject*, PyObject*)':
  sipqtcmodule.cpp:12873:40: error: 'tqInstallPathDocs' was not declared in this scope
  sipqtcmodule.cpp: In function 'PyObject* func_tqInstallPath(PyObject*, PyObject*)':
  sipqtcmodule.cpp:12902:36: error: 'tqInstallPath' was not declared in this scope
  sipqtcmodule.cpp: In function 'PyObject* func_tqVersion(PyObject*, PyObject*)':
  sipqtcmodule.cpp:12931:32: error: 'tqVersion' was not declared in this scope
  sipqtcmodule.cpp: At global scope:
  sipqtcmodule.cpp:13631:27: error: 'TQtDebugMsg' was not declared in this scope
  sipqtcmodule.cpp:13632:27: error: 'TQtFatalMsg' was not declared in this scope
  sipqtcmodule.cpp:13633:29: error: 'TQtWarningMsg' was not declared in this scope
  sipqtcmodule.cpp:14525:27: error: 'TQCOORD_MIN' was not declared in this scope
  /tmp/build/tmp-python-tqt/python-tqt-3.5.13.2/sip/qt/qobject.sip:1625:14: warning: 
     'void* sipTQtCreateUniversalSlot(sipWrapper*, const char*, PyObject*, const char*, const char**, int)' 
     defined but not used [-Wunused-function]
  /tmp/build/tmp-python-tqt/python-tqt-3.5.13.2/sip/qt/qobject.sip:1998:13: warning: 
     'void sipTQtDestroyUniversalSlot(void*)' defined but not used [-Wunused-function]
  /tmp/build/tmp-python-tqt/python-tqt-3.5.13.2/sip/qt/qobject.sip:2010:14: warning: 
     'void* sipTQtFindSlot(void*, const char*, PyObject*, const char*, const char**)' 
     defined but not used [-Wunused-function]
  /tmp/build/tmp-python-tqt/python-tqt-3.5.13.2/sip/qt/qobject.sip:2035:12: warning: 
     'int sipTQtConnect(void*, const char*, void*, const char*, int)' defined but not used [-Wunused-function]
  /tmp/build/tmp-python-tqt/python-tqt-3.5.13.2/sip/qt/qobject.sip:2043:12: warning: 
     'int sipTQtDisconnect(void*, const char*, void*, const char*)' defined but not used [-Wunused-function]
  /tmp/build/tmp-python-tqt/python-tqt-3.5.13.2/sip/qt/qobject.sip:2078:17: warning: 
     'sipSlot* sipTQtFindSipslot(void*, void**)' defined but not used [-Wunused-function]
  /tmp/build/tmp-python-tqt/python-tqt-3.5.13.2/sip/qt/qobject.sip:2177:12: warning: 
     'int sipTQtEmitSignal(PyObject*, const char*, PyObject*)' defined but not used [-Wunused-function]
  /tmp/build/tmp-python-tqt/python-tqt-3.5.13.2/sip/qt/qobject.sip:2107:12: warning: 
     'int sipTQtConnectPySignal(PyObject*, const char*, PyObject*, const char*)' defined but not used [-Wunused-function]
  /tmp/build/tmp-python-tqt/python-tqt-3.5.13.2/sip/qt/qobject.sip:2152:13: warning: 
     'void sipTQtDisconnectPySignal(PyObject*, const char*, PyObject*, const char*)' defined but not used [-Wunused-function]
  make[1]: *** [sipqtcmodule.o] Error 1
  make[1]: Leaving directory `/tmp/build/tmp-python-tqt/python-tqt-3.5.13.2/qt'
  make: *** [all] Error 2

seeming related to the TQt namespace. I was not able to find some documentation about the subject int the TDE wiki page as a consequence it was impossible to built the package. Tdebindings wile be built without Python support.


For any feedback, questions, errors and such, please e-mail me at studiosg [at] giustetti [dot] net


External Links





Languages: English - Italiano