bugGNU Octave - Bugs: bug #57225, build errors with Qt 5.4 in libgui

 
 

bug #57225: build errors with Qt 5.4 in libgui

Submitter:  A.R. Burgers <arb>
Submitted:  Wed 13 Nov 2019 07:53:20 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  ttl
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
   

Jump to the original submission

Tue 19 Nov 2019 09:57:22 PM UTC, comment #8: 

Torsten: thanks, it will be helpful to have these casts marked with comments explaining that they should not be removed until we can safely assume that we have Qt version X.Y (for some X, Y).

John W. Eaton <jwe>
Group administrator
Tue 19 Nov 2019 06:48:52 PM UTC, comment #7: 

Very good, closing the report.

John, no problem. I am going to add FIXMEs for removing the casts once 5.4 is not supported anymore.

Torsten Lilge <ttl>
Group Member
Mon 18 Nov 2019 10:34:50 PM UTC, comment #6: 

They are. Great!

A.R. Burgers <arb>
Mon 18 Nov 2019 10:33:22 PM UTC, comment #5: 

Torsten:  Sorry for the trouble.  I thought that the templated value method would generally be better than casting and didn't see any issues with my build.  But I'm also using Qt 5.12.

John W. Eaton <jwe>
Group administrator
Mon 18 Nov 2019 09:21:59 PM UTC, comment #4: 

The compiler errors should be fixed with cset http://hg.savannah.gnu.org/hgweb/octave/rev/f8fae6e5d636

Torsten Lilge <ttl>
Group Member
Mon 18 Nov 2019 08:04:06 AM UTC, comment #3: 

yes the build failure is still there, last checked for hg ID 377f069841c1

A.R. Burgers <arb>
Mon 18 Nov 2019 06:08:12 AM UTC, comment #2: 

I'll take care of it

Torsten Lilge <ttl>
Group Member
Mon 18 Nov 2019 01:05:18 AM UTC, comment #1: 

Is this still an issue?

Adding Torsten to the CC list since he knew how to resolve bug #57203.

Rik <rik5>
Group administrator
Wed 13 Nov 2019 07:53:20 PM UTC, original submission:  

the bug reported in bug #57203 has been fixed, but now there is a new one:


  CXX      libgui/src/libgui_src_libgui_src_la-workspace-view.lo
In file included from /apps/shared/burgersar/Qt/5.4/gcc_64/include/QtCore/qcoreapplication.h:37,
                 from /apps/shared/burgersar/Qt/5.4/gcc_64/include/QtWidgets/qapplication.h:37,
                 from /apps/shared/burgersar/Qt/5.4/gcc_64/include/QtWidgets/QApplication:1,
                 from ../octave/libgui/src/workspace-view.cc:28:
/apps/shared/burgersar/Qt/5.4/gcc_64/include/QtCore/qmetatype.h: In instantiation of 'constexpr int qMetaTypeId() [with T = Qt::SortOrder]':
/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 = Qt::SortOrder]'
/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<Qt::SortOrder>; Argument = const QVariant&; ReturnType = Qt::SortOrder]'
/apps/shared/burgersar/Qt/5.4/gcc_64/include/QtCore/qvariant.h:823:62:   required from 'T qvariant_cast(const QVariant&) [with T = Qt::SortOrder]'
/apps/shared/burgersar/Qt/5.4/gcc_64/include/QtCore/qvariant.h:343:30:   required from 'T QVariant::value() const [with T = Qt::SortOrder]'
../octave/libgui/src/workspace-view.cc:133:66:   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/QtCore/qcoreapplication.h:40,
                 from /apps/shared/burgersar/Qt/5.4/gcc_64/include/QtWidgets/qapplication.h:37,
                 from /apps/shared/burgersar/Qt/5.4/gcc_64/include/QtWidgets/QApplication:1,
                 from ../octave/libgui/src/workspace-view.cc:28:
/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 = Qt::SortOrder]':
/apps/shared/burgersar/Qt/5.4/gcc_64/include/QtCore/qmetatype.h:1649:43:   required from 'constexpr int qMetaTypeId() [with T = Qt::SortOrder]'
/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 = Qt::SortOrder]'
/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<Qt::SortOrder>; Argument = const QVariant&; ReturnType = Qt::SortOrder]'
/apps/shared/burgersar/Qt/5.4/gcc_64/include/QtCore/qvariant.h:823:62:   required from 'T qvariant_cast(const QVariant&) [with T = Qt::SortOrder]'
/apps/shared/burgersar/Qt/5.4/gcc_64/include/QtCore/qvariant.h:343:30:   required from 'T QVariant::value() const [with T = Qt::SortOrder]'
../octave/libgui/src/workspace-view.cc:133:66:   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<Qt::SortOrder>'
     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 jwe (Posted a comment)
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by rik5
  • -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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-11-19 ttl StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2019-11-18 ttl StatusNone Ready For Test
    2019-11-18 ttl Assigned toNone ttl
    2019-11-18 rik5 Carbon-Copy- Added ttl

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code