[scribus-dev] odd troubles building 1.7 on Fedora 35
Jean Ghali
jghali at libertysurf.fr
Sat Mar 26 19:39:44 UTC 2022
Hi Greg,
OpenSceneGraph is not currently compatible with Qt6, so this dependency must be excluded
from build by using the -DWANT_NOOSG=1 option at cmake command line.
Jean
Le 26/03/2022 à 17:38, Gregory Pittman a écrit :
> I finally managed to put together the necessary Qt6 packages, since they're now available
> for Fedora 35.
>
> I can now run cmake without issues on both my desktop and my laptop. Oddly enough, it
> builds fine on the desktop but fails on the laptop. I've tried nuking my svn trunk
> download, making sure I've got all the same Qt6 packages on both machines, yet there is
> persistent failure. For now, the workaround for the laptop is to simply use sftp to import
> my build from the laptop (since I install it in my /home directory.
>
> Here's the tail end of the error messages, which begin with compiling of
> ../scribus_autogen/mocs_compilation.cpp.o:
>
>
> 223 | static void activate(QObject *sender, int signal_index, void **argv);
> | ^~~~~~~~
> /usr/include/qt6/QtCore/qobjectdefs.h:223:17: note: candidate expects 3 arguments, 4
> provided
> /usr/include/qt6/QtCore/qobjectdefs.h:224:17: note: candidate: ‘static void
> QMetaObject::activate(QObject*, const QMetaObject*, int, void**)’
> 224 | static void activate(QObject *sender, const QMetaObject *, int
> local_signal_index, void **argv);
> | ^~~~~~~~
> /usr/include/qt6/QtCore/qobjectdefs.h:224:35: note: no known conversion for argument 1
> from ‘AdapterWidget*’ to ‘QObject*’
> 224 | static void activate(QObject *sender, const QMetaObject *, int
> local_signal_index, void **argv);
> | ~~~~~~~~~^~~~~~
> /usr/include/qt6/QtCore/qobjectdefs.h:225:17: note: candidate: ‘static void
> QMetaObject::activate(QObject*, int, int, void**)’
> 225 | static void activate(QObject *sender, int signal_offset, int
> local_signal_index, void **argv);
> | ^~~~~~~~
> /usr/include/qt6/QtCore/qobjectdefs.h:225:35: note: no known conversion for argument 1
> from ‘AdapterWidget*’ to ‘QObject*’
> 225 | static void activate(QObject *sender, int signal_offset, int
> local_signal_index, void **argv);
> | ~~~~~~~~~^~~~~~
> In file included from
> /home/gregp/development/Scribus17x/scribus/scribus_autogen/UYX5XTB5RZ/../../ui/osgeditor.h:31,
> from
> /home/gregp/development/Scribus17x/scribus/scribus_autogen/UYX5XTB5RZ/moc_osgeditor.cpp:10,
> from
> /home/gregp/development/Scribus17x/scribus/scribus_autogen/mocs_compilation.cpp:201:
> /home/gregp/development/Scribus17x/scribus/scribus_autogen/include/ui_osgeditor.h: In
> member function ‘void Ui_OSGEditor::setupUi(QDialog*)’:
> /home/gregp/development/Scribus17x/scribus/scribus_autogen/include/ui_osgeditor.h:100:22:
> error: ‘class ViewerQT’ has no member named ‘setObjectName’
> 100 | drawingarea->setObjectName(QString::fromUtf8("drawingarea"));
> | ^~~~~~~~~~~~~
> /home/gregp/development/Scribus17x/scribus/scribus_autogen/include/ui_osgeditor.h:104:51:
> error: ‘class ViewerQT’ has no member named ‘sizePolicy’
> 104 | sizePolicy.setHeightForWidth(drawingarea->sizePolicy().hasHeightForWidth());
> | ^~~~~~~~~~
> /home/gregp/development/Scribus17x/scribus/scribus_autogen/include/ui_osgeditor.h:105:22:
> error: ‘class ViewerQT’ has no member named ‘setSizePolicy’
> 105 | drawingarea->setSizePolicy(sizePolicy);
> | ^~~~~~~~~~~~~
> /home/gregp/development/Scribus17x/scribus/scribus_autogen/include/ui_osgeditor.h:106:22:
> error: ‘class ViewerQT’ has no member named ‘setMinimumSize’
> 106 | drawingarea->setMinimumSize(QSize(30, 30));
> | ^~~~~~~~~~~~~~
> /home/gregp/development/Scribus17x/scribus/scribus_autogen/include/ui_osgeditor.h:107:22:
> error: ‘class ViewerQT’ has no member named ‘setMaximumSize’
> 107 | drawingarea->setMaximumSize(QSize(400, 400));
> | ^~~~~~~~~~~~~~
> /home/gregp/development/Scribus17x/scribus/scribus_autogen/include/ui_osgeditor.h:109:32:
> error: no matching function for call to ‘QGridLayout::addWidget(ViewerQT*&, i
> nt, int, int, int)’
> 109 | gridLayout_4->addWidget(drawingarea, 1, 1, 1, 1);
> | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from /usr/include/qt6/QtWidgets/QGridLayout:1,
> from
> /home/gregp/development/Scribus17x/scribus/scribus_autogen/include/ui_arcvectorbase.h:14,
> from
> /home/gregp/development/Scribus17x/scribus/scribus_autogen/EWIEGA46WW/../../ui/arcvectordialog.h:27,
> from
> /home/gregp/development/Scribus17x/scribus/scribus_autogen/EWIEGA46WW/../../canvasmode_editarc.h:31,
> from
> /home/gregp/development/Scribus17x/scribus/scribus_autogen/EWIEGA46WW/moc_canvasmode_editarc.cpp:10,
> from
> /home/gregp/development/Scribus17x/scribus/scribus_autogen/mocs_compilation.cpp:14:
> /usr/include/qt6/QtWidgets/qgridlayout.h:100:17: note: candidate: ‘void
> QGridLayout::addWidget(QWidget*)’
> 100 | inline void addWidget(QWidget *w) { QLayout::addWidget(w); }
> | ^~~~~~~~~
> /usr/include/qt6/QtWidgets/qgridlayout.h:100:17: note: candidate expects 1 argument, 5
> provided
> /usr/include/qt6/QtWidgets/qgridlayout.h:101:10: note: candidate: ‘void
> QGridLayout::addWidget(QWidget*, int, int, Qt::Alignment)’
> 101 | void addWidget(QWidget *, int row, int column, Qt::Alignment = Qt::Alignment());
> | ^~~~~~~~~
> /usr/include/qt6/QtWidgets/qgridlayout.h:101:10: note: candidate expects 4 arguments, 5
> provided
> /usr/include/qt6/QtWidgets/qgridlayout.h:102:10: note: candidate: ‘void
> QGridLayout::addWidget(QWidget*, int, int, int, int, Qt::Alignment)’
> 102 | void addWidget(QWidget *, int row, int column, int rowSpan, int columnSpan,
> Qt::Alignment = Qt::Alignment());
> | ^~~~~~~~~
> /usr/include/qt6/QtWidgets/qgridlayout.h:102:20: note: no known conversion for argument
> 1 from ‘ViewerQT*’ to ‘QWidget*’
> 102 | void addWidget(QWidget *, int row, int column, int rowSpan, int columnSpan,
> Qt::Alignment = Qt::Alignment());
> | ^~~~~~~~~
> make[2]: *** [scribus/CMakeFiles/scribus.dir/build.make:75:
> scribus/CMakeFiles/scribus.dir/scribus_autogen/mocs_compilation.cpp.o] Error 1
> make[1]: *** [CMakeFiles/Makefile2:2075: scribus/CMakeFiles/scribus.dir/all] Error 2
> make: *** [Makefile:156: all] Error 2
>
> Greg
>
>
>
>
> _______________________________________________
> scribus-dev mailing list
> scribus-dev at lists.scribus.net
> http://lists.scribus.net/mailman/listinfo/scribus-dev
More information about the scribus-dev
mailing list