TeXworks / texworks

Main codebase for TeXworks, a simple interface for working with TeX documents
https://tug.org/texworks/
GNU General Public License v2.0
697 stars 127 forks source link

Compilation error when building Python scripting module #1038

Closed badshah400 closed 9 months ago

badshah400 commented 9 months ago

Bug description:

With TeXworks 0.6.9 on openSUSE Tumbleweed with Qt 5 (also tried with Qt6) and Python 3.11.7, we find the following compilation error when building with Python scripting plugin turned on:

[  104s] FAILED: plugins-src/TWPythonPlugin/CMakeFiles/TWPythonPlugin.dir/TWPythonPlugin_autogen/mocs_compilation.cpp.o 
[  104s] /var/lib/build/ccache/bin/c++ -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_QML_LIB -DQT_SCRIPTTOOLS_LIB -DQT_SCRIPT_LIB -DQT_TESTCASE_BUILDDIR=\"/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build\" -DQT_TESTLIB_LIB -DQT_UITOOLS_LIB -DQT_VERSION_MAJOR=5 -DQT_WIDGETS_LIB -DQT_XML_LIB -DTWPythonPlugin_EXPORTS -I/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/plugins-src/TWPythonPlugin -I/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/plugins-src/TWPythonPlugin -I/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/src -isystem /usr/include/python3.11 -isystem /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/plugins-src/TWPythonPlugin/TWPythonPlugin_autogen/include -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtUiTools -isystem /usr/include/qt5/QtConcurrent -isystem /usr/include/qt5/QtXml -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtScriptTools -isystem /usr/include/qt5/QtScript -isystem /usr/include/qt5/QtDBus -isystem /usr/include/qt5/QtTest -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -O2 -g -DNDEBUG -std=gnu++11 -fPIC -Wall -Wpedantic -Wextra -Wconversion -Wold-style-cast -Woverloaded-virtual -Wzero-as-null-pointer-constant -Wno-old-style-cast -fPIC -MD -MT plugins-src/TWPythonPlugin/CMakeFiles/TWPythonPlugin.dir/TWPythonPlugin_autogen/mocs_compilation.cpp.o -MF plugins-src/TWPythonPlugin/CMakeFiles/TWPythonPlugin.dir/TWPythonPlugin_autogen/mocs_compilation.cpp.o.d -o plugins-src/TWPythonPlugin/CMakeFiles/TWPythonPlugin.dir/TWPythonPlugin_autogen/mocs_compilation.cpp.o -c /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/plugins-src/TWPythonPlugin/TWPythonPlugin_autogen/mocs_compilation.cpp
[  104s] In file included from /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/plugins-src/TWPythonPlugin/TWPythonPlugin_autogen/mocs_compilation.cpp:2:
[  104s] /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/plugins-src/TWPythonPlugin/TWPythonPlugin_autogen/EWIEGA46WW/moc_PythonScript.cpp:67:42: error: ‘staticMetaObject’ is not a member of ‘Tw::Scripting::Script’
[  104s]    67 |     QMetaObject::SuperData::link<Script::staticMetaObject>(),
[  104s]       |                                          ^~~~~~~~~~~~~~~~
[  104s] /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/plugins-src/TWPythonPlugin/TWPythonPlugin_autogen/EWIEGA46WW/moc_PythonScript.cpp:67:42: error: ‘staticMetaObject’ is not a member of ‘Tw::Scripting::Script’
[  104s] /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/plugins-src/TWPythonPlugin/TWPythonPlugin_autogen/EWIEGA46WW/moc_PythonScript.cpp:67:59: error: no matching function for call to ‘QMetaObject::SuperData::link<<expression error> >()’
[  104s]    67 |     QMetaObject::SuperData::link<Script::staticMetaObject>(),
[  104s]       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
[  104s] In file included from /usr/include/qt5/QtGui/qwindowdefs.h:44,
[  104s]                  from /usr/include/qt5/QtWidgets/qwidget.h:44,
[  104s]                  from /usr/include/qt5/QtWidgets/qdialog.h:44,
[  104s]                  from /usr/include/qt5/QtWidgets/qmessagebox.h:45,
[  104s]                  from /usr/include/qt5/QtWidgets/QMessageBox:1,
[  104s]                  from /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/src/scripting/ScriptAPIInterface.h:25,
[  104s]                  from /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/src/scripting/Script.h:25,
[  104s]                  from /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/plugins-src/TWPythonPlugin/TWPythonPlugin_autogen/EWIEGA46WW/../../../../../plugins-src/TWPythonPlugin/PythonScriptInterface.h:25,
[  104s]                  from /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/plugins-src/TWPythonPlugin/TWPythonPlugin_autogen/EWIEGA46WW/../../../../../plugins-src/TWPythonPlugin/PythonScript.h:25,
[  104s]                  from /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/plugins-src/TWPythonPlugin/TWPythonPlugin_autogen/EWIEGA46WW/moc_PythonScript.cpp:10:
[  104s] /usr/include/qt5/QtCore/qobjectdefs.h:599:69: note: candidate: ‘template<const QMetaObject& MO> static constexpr QMetaObject::SuperData QMetaObject::SuperData::link()’
[  104s]   599 |         template <const QMetaObject &MO> static constexpr SuperData link()
[  104s]       |                                                                     ^~~~
[  104s] /usr/include/qt5/QtCore/qobjectdefs.h:599:69: note:   template argument deduction/substitution failed:
[  104s] /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/plugins-src/TWPythonPlugin/TWPythonPlugin_autogen/EWIEGA46WW/moc_PythonScript.cpp:67:59: error: template argument 1 is invalid
[  104s]    67 |     QMetaObject::SuperData::link<Script::staticMetaObject>(),
[  104s]       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
[  104s] /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/plugins-src/TWPythonPlugin/TWPythonPlugin_autogen/EWIEGA46WW/moc_PythonScript.cpp: In member function ‘virtual const QMetaObject* Tw::Scripting::PythonScript::metaObject() const’:
[  104s] /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/plugins-src/TWPythonPlugin/TWPythonPlugin_autogen/EWIEGA46WW/moc_PythonScript.cpp:78:21: error: ‘QScopedPointer<QObjectData> QObject::d_ptr’ is protected within this context
[  104s]    78 |     return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
[  104s]       |                     ^~~~~
[  104s] In file included from /usr/include/qt5/QtWidgets/qwidget.h:45:
[  104s] /usr/include/qt5/QtCore/qobject.h:450:33: note: declared protected here
[  104s]   450 |     QScopedPointer<QObjectData> d_ptr;
[  104s]       |                                 ^~~~~
[  104s] /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/plugins-src/TWPythonPlugin/TWPythonPlugin_autogen/EWIEGA46WW/moc_PythonScript.cpp:78:21: error: invalid use of non-static data member ‘QObject::d_ptr’
[  104s]    78 |     return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
[  104s]       |                     ^~~~~
[  104s] /usr/include/qt5/QtCore/qobject.h:450:33: note: declared here
[  104s]   450 |     QScopedPointer<QObjectData> d_ptr;
[  104s]       |                                 ^~~~~
[  104s] /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/plugins-src/TWPythonPlugin/TWPythonPlugin_autogen/EWIEGA46WW/moc_PythonScript.cpp:78:50: error: ‘QScopedPointer<QObjectData> QObject::d_ptr’ is protected within this context
[  104s]    78 |     return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
[  104s]       |                                                  ^~~~~
[  104s] /usr/include/qt5/QtCore/qobject.h:450:33: note: declared protected here
[  104s]   450 |     QScopedPointer<QObjectData> d_ptr;
[  104s]       |                                 ^~~~~
[  104s] /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/plugins-src/TWPythonPlugin/TWPythonPlugin_autogen/EWIEGA46WW/moc_PythonScript.cpp:78:50: error: invalid use of non-static data member ‘QObject::d_ptr’
[  104s]    78 |     return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
[  104s]       |                                                  ^~~~~
[  104s] /usr/include/qt5/QtCore/qobject.h:450:33: note: declared here
[  104s]   450 |     QScopedPointer<QObjectData> d_ptr;
[  104s]       |                                 ^~~~~
[  104s] /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/plugins-src/TWPythonPlugin/TWPythonPlugin_autogen/EWIEGA46WW/moc_PythonScript.cpp: In member function ‘virtual void* Tw::Scripting::PythonScript::qt_metacast(const char*)’:
[  104s] /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/plugins-src/TWPythonPlugin/TWPythonPlugin_autogen/EWIEGA46WW/moc_PythonScript.cpp:88:20: error: ‘qt_metacast’ is not a member of ‘Tw::Scripting::Script’
[  104s]    88 |     return Script::qt_metacast(_clname);
[  104s]       |                    ^~~~~~~~~~~
[  104s] /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/plugins-src/TWPythonPlugin/TWPythonPlugin_autogen/EWIEGA46WW/moc_PythonScript.cpp: In member function ‘virtual int Tw::Scripting::PythonScript::qt_metacall(QMetaObject::Call, int, void**)’:
[  104s] /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/plugins-src/TWPythonPlugin/TWPythonPlugin_autogen/EWIEGA46WW/moc_PythonScript.cpp:93:19: error: ‘qt_metacall’ is not a member of ‘Tw::Scripting::Script’
[  104s]    93 |     _id = Script::qt_metacall(_c, _id, _a);
[  104s]       |                   ^~~~~~~~~~~
[  104s] [41/208] /var/lib/build/ccache/bin/c++ -DPOPPLER_GLOBALPARAMS_IS_UNIQUE -DPOPPLER_HAS_DURATION_REAL -DPOPPLER_HAS_GLOBALPARAMSINITER -DPOPPLER_HAS_OCGSTATELINK -DPOPPLER_HAS_OUTLINE -DPOPPLER_HAS_RUNTIME_VERSION -DPOPPLER_HAS_SEARCH_FLAGS -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_VERSION_MAJOR=5 -DQT_WIDGETS_LIB -DQT_XML_LIB -I/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/modules/QtPDF -I/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/modules/QtPDF -I/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/modules/QtPDF/src -I/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/modules/QtPDF/src/backend -isystem /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/modules/QtPDF/qtpdf_autogen/include -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtConcurrent -isystem /usr/include/qt5/QtXml -isystem /usr/include/poppler/qt5 -isystem /usr/include/poppler -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -O2 -g -DNDEBUG -fPIC -DUSE_POPPLERQT -DHAVE_POPPLER_XPDF_HEADERS -Wall -Wpedantic -Wextra -Wconversion -Wold-style-cast -Woverloaded-virtual -Wzero-as-null-pointer-constant -fPIC -MD -MT modules/QtPDF/CMakeFiles/qtpdf.dir/src/GuidelineEditDialog.cpp.o -MF modules/QtPDF/CMakeFiles/qtpdf.dir/src/GuidelineEditDialog.cpp.o.d -o modules/QtPDF/CMakeFiles/qtpdf.dir/src/GuidelineEditDialog.cpp.o -c /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/modules/QtPDF/src/GuidelineEditDialog.cpp
[  104s] [42/208] /var/lib/build/ccache/bin/c++ -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_QML_LIB -DQT_SCRIPTTOOLS_LIB -DQT_SCRIPT_LIB -DQT_TESTCASE_BUILDDIR=\"/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build\" -DQT_TESTLIB_LIB -DQT_UITOOLS_LIB -DQT_VERSION_MAJOR=5 -DQT_WIDGETS_LIB -DQT_XML_LIB -DTWLuaPlugin_EXPORTS -I/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/plugins-src/TWLuaPlugin -I/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/plugins-src/TWLuaPlugin -I/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/src -isystem /usr/include/lua5.3 -isystem /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/plugins-src/TWLuaPlugin/TWLuaPlugin_autogen/include -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtUiTools -isystem /usr/include/qt5/QtConcurrent -isystem /usr/include/qt5/QtXml -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtScriptTools -isystem /usr/include/qt5/QtScript -isystem /usr/include/qt5/QtDBus -isystem /usr/include/qt5/QtTest -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -O2 -g -DNDEBUG -std=gnu++11 -fPIC -Wall -Wpedantic -Wextra -Wconversion -Wold-style-cast -Woverloaded-virtual -Wzero-as-null-pointer-constant -fPIC -MD -MT plugins-src/TWLuaPlugin/CMakeFiles/TWLuaPlugin.dir/__/__/src/scripting/Script.cpp.o -MF plugins-src/TWLuaPlugin/CMakeFiles/TWLuaPlugin.dir/__/__/src/scripting/Script.cpp.o.d -o plugins-src/TWLuaPlugin/CMakeFiles/TWLuaPlugin.dir/__/__/src/scripting/Script.cpp.o -c /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/src/scripting/Script.cpp
[  104s] [43/208] /var/lib/build/ccache/bin/c++ -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_QML_LIB -DQT_SCRIPTTOOLS_LIB -DQT_SCRIPT_LIB -DQT_TESTCASE_BUILDDIR=\"/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build\" -DQT_TESTLIB_LIB -DQT_UITOOLS_LIB -DQT_VERSION_MAJOR=5 -DQT_WIDGETS_LIB -DQT_XML_LIB -DTWPythonPlugin_EXPORTS -I/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/plugins-src/TWPythonPlugin -I/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/plugins-src/TWPythonPlugin -I/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/src -isystem /usr/include/python3.11 -isystem /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/plugins-src/TWPythonPlugin/TWPythonPlugin_autogen/include -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtUiTools -isystem /usr/include/qt5/QtConcurrent -isystem /usr/include/qt5/QtXml -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtScriptTools -isystem /usr/include/qt5/QtScript -isystem /usr/include/qt5/QtDBus -isystem /usr/include/qt5/QtTest -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -O2 -g -DNDEBUG -std=gnu++11 -fPIC -Wall -Wpedantic -Wextra -Wconversion -Wold-style-cast -Woverloaded-virtual -Wzero-as-null-pointer-constant -Wno-old-style-cast -fPIC -MD -MT plugins-src/TWPythonPlugin/CMakeFiles/TWPythonPlugin.dir/PythonScriptInterface.cpp.o -MF plugins-src/TWPythonPlugin/CMakeFiles/TWPythonPlugin.dir/PythonScriptInterface.cpp.o.d -o plugins-src/TWPythonPlugin/CMakeFiles/TWPythonPlugin.dir/PythonScriptInterface.cpp.o -c /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/plugins-src/TWPythonPlugin/PythonScriptInterface.cpp
[  108s] [44/208] /var/lib/build/ccache/bin/c++ -DPOPPLER_GLOBALPARAMS_IS_UNIQUE -DPOPPLER_HAS_DURATION_REAL -DPOPPLER_HAS_GLOBALPARAMSINITER -DPOPPLER_HAS_OCGSTATELINK -DPOPPLER_HAS_OUTLINE -DPOPPLER_HAS_RUNTIME_VERSION -DPOPPLER_HAS_SEARCH_FLAGS -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_VERSION_MAJOR=5 -DQT_WIDGETS_LIB -DQT_XML_LIB -I/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/modules/QtPDF -I/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/modules/QtPDF -I/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/modules/QtPDF/src -I/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/modules/QtPDF/src/backend -isystem /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/modules/QtPDF/qtpdf_autogen/include -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtConcurrent -isystem /usr/include/qt5/QtXml -isystem /usr/include/poppler/qt5 -isystem /usr/include/poppler -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -O2 -g -DNDEBUG -fPIC -DUSE_POPPLERQT -DHAVE_POPPLER_XPDF_HEADERS -Wall -Wpedantic -Wextra -Wconversion -Wold-style-cast -Woverloaded-virtual -Wzero-as-null-pointer-constant -fPIC -MD -MT modules/QtPDF/CMakeFiles/qtpdf.dir/qtpdf_autogen/mocs_compilation.cpp.o -MF modules/QtPDF/CMakeFiles/qtpdf.dir/qtpdf_autogen/mocs_compilation.cpp.o.d -o modules/QtPDF/CMakeFiles/qtpdf.dir/qtpdf_autogen/mocs_compilation.cpp.o -c /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/modules/QtPDF/qtpdf_autogen/mocs_compilation.cpp
[  109s] [45/208] /var/lib/build/ccache/bin/c++ -DPOPPLER_GLOBALPARAMS_IS_UNIQUE -DPOPPLER_HAS_DURATION_REAL -DPOPPLER_HAS_GLOBALPARAMSINITER -DPOPPLER_HAS_OCGSTATELINK -DPOPPLER_HAS_OUTLINE -DPOPPLER_HAS_RUNTIME_VERSION -DPOPPLER_HAS_SEARCH_FLAGS -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_VERSION_MAJOR=5 -DQT_WIDGETS_LIB -DQT_XML_LIB -I/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/modules/QtPDF -I/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/modules/QtPDF -I/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/modules/QtPDF/src -I/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/modules/QtPDF/src/backend -isystem /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/modules/QtPDF/qtpdf_autogen/include -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtConcurrent -isystem /usr/include/qt5/QtXml -isystem /usr/include/poppler/qt5 -isystem /usr/include/poppler -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -O2 -g -DNDEBUG -fPIC -DUSE_POPPLERQT -DHAVE_POPPLER_XPDF_HEADERS -Wall -Wpedantic -Wextra -Wconversion -Wold-style-cast -Woverloaded-virtual -Wzero-as-null-pointer-constant -fPIC -MD -MT modules/QtPDF/CMakeFiles/qtpdf.dir/src/PDFDocumentScene.cpp.o -MF modules/QtPDF/CMakeFiles/qtpdf.dir/src/PDFDocumentScene.cpp.o.d -o modules/QtPDF/CMakeFiles/qtpdf.dir/src/PDFDocumentScene.cpp.o -c /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/modules/QtPDF/src/PDFDocumentScene.cpp
[  109s] [46/208] /var/lib/build/ccache/bin/c++ -DPOPPLER_GLOBALPARAMS_IS_UNIQUE -DPOPPLER_HAS_DURATION_REAL -DPOPPLER_HAS_GLOBALPARAMSINITER -DPOPPLER_HAS_OCGSTATELINK -DPOPPLER_HAS_OUTLINE -DPOPPLER_HAS_RUNTIME_VERSION -DPOPPLER_HAS_SEARCH_FLAGS -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_VERSION_MAJOR=5 -DQT_WIDGETS_LIB -DQT_XML_LIB -I/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/modules/QtPDF -I/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/modules/QtPDF -I/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/modules/QtPDF/src -I/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/modules/QtPDF/src/backend -isystem /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/modules/QtPDF/qtpdf_autogen/include -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtConcurrent -isystem /usr/include/qt5/QtXml -isystem /usr/include/poppler/qt5 -isystem /usr/include/poppler -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -O2 -g -DNDEBUG -fPIC -DUSE_POPPLERQT -DHAVE_POPPLER_XPDF_HEADERS -Wall -Wpedantic -Wextra -Wconversion -Wold-style-cast -Woverloaded-virtual -Wzero-as-null-pointer-constant -fPIC -MD -MT modules/QtPDF/CMakeFiles/qtpdf.dir/src/InfoWidgets.cpp.o -MF modules/QtPDF/CMakeFiles/qtpdf.dir/src/InfoWidgets.cpp.o.d -o modules/QtPDF/CMakeFiles/qtpdf.dir/src/InfoWidgets.cpp.o -c /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/modules/QtPDF/src/InfoWidgets.cpp
[  110s] [47/208] /var/lib/build/ccache/bin/c++ -DPOPPLER_GLOBALPARAMS_IS_UNIQUE -DPOPPLER_HAS_DURATION_REAL -DPOPPLER_HAS_GLOBALPARAMSINITER -DPOPPLER_HAS_OCGSTATELINK -DPOPPLER_HAS_OUTLINE -DPOPPLER_HAS_RUNTIME_VERSION -DPOPPLER_HAS_SEARCH_FLAGS -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_VERSION_MAJOR=5 -DQT_WIDGETS_LIB -DQT_XML_LIB -I/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/modules/QtPDF -I/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/modules/QtPDF -I/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/modules/QtPDF/src -I/home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/modules/QtPDF/src/backend -isystem /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/build/modules/QtPDF/qtpdf_autogen/include -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtConcurrent -isystem /usr/include/qt5/QtXml -isystem /usr/include/poppler/qt5 -isystem /usr/include/poppler -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -O2 -g -DNDEBUG -fPIC -DUSE_POPPLERQT -DHAVE_POPPLER_XPDF_HEADERS -Wall -Wpedantic -Wextra -Wconversion -Wold-style-cast -Woverloaded-virtual -Wzero-as-null-pointer-constant -fPIC -MD -MT modules/QtPDF/CMakeFiles/qtpdf.dir/src/PDFDocumentView.cpp.o -MF modules/QtPDF/CMakeFiles/qtpdf.dir/src/PDFDocumentView.cpp.o.d -o modules/QtPDF/CMakeFiles/qtpdf.dir/src/PDFDocumentView.cpp.o -c /home/abuild/rpmbuild/BUILD/texworks-release-0.6.9/modules/QtPDF/src/PDFDocumentView.cpp
[  110s] ninja: build stopped: subcommand failed.

Steps to reproduce the problem:

  1. Configure TeXmaker 0.6.9 with cmake ... -DWITH_PYTHON=ON
  2. Run make or ninja to compile.
  3. Find above error during compilation.

Expected behavior:

No error during compilation, like with version 0.6.8.

General information: TeXworks version: 0.6.9 TeXworks obtained from: Source tarball from GH release page Operating system: Linux x86_64 (openSUSE_Tumbleweed) CMake version: 3.28 Qt version: 5.15.12 / 6.6.1 GCC: 13.2.1

Additional information: I maintain TeXwork RPM packages for openSUSE and noticed this when trying to upgrade the builds to version 0.6.9. The previous version (0.6.8) built fine, with the same configuration.

stloeffler commented 9 months ago

Thanks for reporting. The python plugin has been unmaintained for quite some while due to challenges in the cross-platform embedding of python. But I will look into getting it to compile again on Linux, at least.

badshah400 commented 9 months ago

Thanks for the prompt fix, much appreciated.

stloeffler commented 9 months ago

You're welcome. I will probably not publish a new release for this, but feel free to include the patch in your 0.6.9 build if you want.