bugGNU Octave - Bugs: bug #57203, build errors with Qt 5.4

 
 

bug #57203: build errors with Qt 5.4

Submitter:  A.R. Burgers <arb>
Submitted:  Sun 10 Nov 2019 09:07:47 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 12 Nov 2019 07:38:58 AM UTC, comment #5: 

Yes, the cset does get rid of the warnings.

A.R. Burgers <arb>
Mon 11 Nov 2019 07:24:33 PM UTC, comment #4: 

Thanks, I have overseen these warning. Cset  http://hg.savannah.gnu.org/hgweb/octave/rev/7ffe081140ef should fix this.

Torsten Lilge <ttl>
Group Member
Mon 11 Nov 2019 07:04:11 PM UTC, comment #3: 

compilation is successful, but I get two similar warnings (using gcc 8.3.0):


../octave/libgui/src/settings-dialog.cc: In member function 'void octave::settings_dialog::read_varedit_colors(octave::gui_settings*)':
../octave/libgui/src/settings-dialog.cc:1181:78: warning: use of old-style cast to 'enum QPalette::ColorRole' [-Wold-style-cast]
                               ((QPalette::ColorRole) ve_colors[i].def.toInt ());
                                                                              ^
                                -
                                static_cast<        -
                                                    > (                        )


and


../octave/libgui/src/variable-editor.cc: In member function 'virtual void octave::variable_editor::notice_settings(const octave::gui_settings*)':
../octave/libgui/src/variable-editor.cc:1394:78: warning: use of old-style cast to 'enum QPalette::ColorRole' [-Wold-style-cast]
                               ((QPalette::ColorRole) ve_colors[i].def.toInt ());
                                                                              ^
                                -
                                static_cast<        -
                                                    > (                        )


A.R. Burgers <arb>
Mon 11 Nov 2019 06:17:50 PM UTC, comment #2: 

Could you please test again with cset
http://hg.savannah.gnu.org/hgweb/octave/rev/41b32ddb2262


Torsten Lilge <ttl>
Group Member
Mon 11 Nov 2019 06:18:02 AM UTC, comment #1: 

Ah, sorry. This is my changeset http://hg.savannah.gnu.org/hgweb/octave/rev/3b078b750181
I will prepare a fix tonight.

Torsten Lilge <ttl>
Group Member
Sun 10 Nov 2019 09:07:47 PM UTC, original submission:  

Which current dev I get these compilation errors with Qt 5.4


  CXX      libgui/src/libgui_src_libgui_src_la-settings-dialog.lo
In file included from /apps/shared/burgersar/Qt/5.4/gcc_64/include/QtCore/qnamespace.h:37,
                 from /apps/shared/burgersar/Qt/5.4/gcc_64/include/QtCore/qobjectdefs.h:41,
                 from /apps/shared/burgersar/Qt/5.4/gcc_64/include/QtCore/qobject.h:40,
                 from /apps/shared/burgersar/Qt/5.4/gcc_64/include/QtWidgets/qbuttongroup.h:37,
                 from /apps/shared/burgersar/Qt/5.4/gcc_64/include/QtWidgets/QButtonGroup:1,
                 from ../octave/libgui/src/settings-dialog.cc:31:
/apps/shared/burgersar/Qt/5.4/gcc_64/include/QtCore/qmetatype.h: In instantiation of 'constexpr int qMetaTypeId() [with T = QPalette::ColorRole]':
/apps/shared/burgersar/Qt/5.4/gcc_64/include/QtCore/qvariant.h:684:43:   required from 'static T QtPrivate::QVariantValueHelper<T>::metaType(const QVariant&) [with T = QPalette::ColorRole]'
/apps/shared/burgersar/Qt/5.4/gcc_64/include/QtCore/qvariant.h:105:37:   required from 'static ReturnType QtPrivate::MetaTypeInvoker<Derived, Argument, ReturnType>::invoke(Argument) [with Derived = QtPrivate::QVariantValueHelper<QPalette::ColorRole>; Argument = const QVariant&; ReturnType = QPalette::ColorRole]'
/apps/shared/burgersar/Qt/5.4/gcc_64/include/QtCore/qvariant.h:823:62:   required from 'T qvariant_cast(const QVariant&) [with T = QPalette::ColorRole]'
/apps/shared/burgersar/Qt/5.4/gcc_64/include/QtCore/qvariant.h:343:30:   required from 'T QVariant::value() const [with T = QPalette::ColorRole]'
../octave/libgui/src/settings-dialog.cc:1181:77:   required from here
/apps/shared/burgersar/Qt/5.4/gcc_64/include/QtCore/qglobal.h:684:61: error: static assertion failed: Type is not registered, please use the Q_DECLARE_METATYPE macro to make it known to Qt's meta-object system
 #define Q_STATIC_ASSERT_X(Condition, Message) static_assert(bool(Condition), Message)
                                                             ^~~~~~~~~~~~~~~
/apps/shared/burgersar/Qt/5.4/gcc_64/include/QtCore/qmetatype.h:1648:5: note: in expansion of macro 'Q_STATIC_ASSERT_X'
     Q_STATIC_ASSERT_X(QMetaTypeId2<T>::Defined, "Type is not registered, please use the Q_DECLARE_METATYPE macro to make it known to Qt's meta-object system");
     ^~~~~~~~~~~~~~~~~
In file included from /apps/shared/burgersar/Qt/5.4/gcc_64/include/QtCore/qobject.h:48,
                 from /apps/shared/burgersar/Qt/5.4/gcc_64/include/QtWidgets/qbuttongroup.h:37,
                 from /apps/shared/burgersar/Qt/5.4/gcc_64/include/QtWidgets/QButtonGroup:1,
                 from ../octave/libgui/src/settings-dialog.cc:31:
/apps/shared/burgersar/Qt/5.4/gcc_64/include/QtCore/qmetatype.h: In instantiation of 'static constexpr int QMetaTypeId2<T>::qt_metatype_id() [with T = QPalette::ColorRole]':
/apps/shared/burgersar/Qt/5.4/gcc_64/include/QtCore/qmetatype.h:1649:43:   required from 'constexpr int qMetaTypeId() [with T = QPalette::ColorRole]'
/apps/shared/burgersar/Qt/5.4/gcc_64/include/QtCore/qvariant.h:684:43:   required from 'static T QtPrivate::QVariantValueHelper<T>::metaType(const QVariant&) [with T = QPalette::ColorRole]'
/apps/shared/burgersar/Qt/5.4/gcc_64/include/QtCore/qvariant.h:105:37:   required from 'static ReturnType QtPrivate::MetaTypeInvoker<Derived, Argument, ReturnType>::invoke(Argument) [with Derived = QtPrivate::QVariantValueHelper<QPalette::ColorRole>; Argument = const QVariant&; ReturnType = QPalette::ColorRole]'
/apps/shared/burgersar/Qt/5.4/gcc_64/include/QtCore/qvariant.h:823:62:   required from 'T qvariant_cast(const QVariant&) [with T = QPalette::ColorRole]'
/apps/shared/burgersar/Qt/5.4/gcc_64/include/QtCore/qvariant.h:343:30:   required from 'T QVariant::value() const [with T = QPalette::ColorRole]'
../octave/libgui/src/settings-dialog.cc:1181:77:   required from here
/apps/shared/burgersar/Qt/5.4/gcc_64/include/QtCore/qmetatype.h:1509:96: error: 'qt_metatype_id' is not a member of 'QMetaTypeId<QPalette::ColorRole>'
     static inline Q_DECL_CONSTEXPR int qt_metatype_id() { return QMetaTypeId<T>::qt_metatype_id(); }
                                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~


A.R. Burgers <arb>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Updated the item)
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by arb (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-11-14 rik5 StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2019-11-11 ttl StatusNone Ready For Test

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code