Menu

Error compiling under Fedora 33

owlbrudder
2021-01-18
2021-01-19
  • owlbrudder

    owlbrudder - 2021-01-18

    New user here, so I am sure to be doing something wrong. Spent a career writing software and now retired. This is my first time with Qt. I would appreciate being pointed in the right direction.

    I am trying to compile from the source for 2.2.1 and getting an error when the compiler hits line 1522 in qtrpt.cpp

    qScriptRegisterSequenceMetaType<QList<RptPageObject*> >(m_globalEngine);
    

    The error reported is:

    In file included from /usr/include/QtGui/qtextoption.h:47,
                     from /usr/include/QtGui/qpainter.h:51,
                     from /usr/include/QtGui/QPainter:1,
                     from qtrpt.h:26,
                     from qtrpt.cpp:24:
    /usr/include/QtCore/qmetatype.h: In instantiation ofstatic int QMetaTypeId2<T>::qt_metatype_id() [with T = RptPageObject*]’:
    /usr/include/QtCore/qmetatype.h:230:43:   required fromint qMetaTypeId(T*) [with T = RptPageObject*]’
    /usr/include/QtScript/qscriptengine.h:347:34:   required fromT qscriptvalue_cast(const QScriptValue&) [with T = RptPageObject*]’
    /usr/include/QtScript/qscriptengine.h:419:73:   required fromvoid qScriptValueToSequence(const QScriptValue&, Container&) [with Container = QList<RptPageObject*>]’
    /usr/include/QtScript/qscriptengine.h:432:38:   required fromint qScriptRegisterSequenceMetaType(QScriptEngine*, const QScriptValue&, T*) [with T = QList<RptPageObject*>]’
    qtrpt.cpp:1522:75:   required from here
    /usr/include/QtCore/qmetatype.h:169:79: error: ‘qt_metatype_idis not a member ofQMetaTypeId<RptPageObject*>169 | nline int qt_metatype_id() { return QMetaTypeId<T>::qt_metatype_id(); }
          |                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
    

    Thanks for any help you can offer.

    Doug Hutcheson

     

    Last edit: owlbrudder 2021-01-18
  • aliks-os

    aliks-os - 2021-01-18

    Looks like that when you installed Qt, you didnt installed QtScript

     
  • owlbrudder

    owlbrudder - 2021-01-18

    So simple! I'm now hitting a problem compiling QtRptDesigner, because i am trying to use Fedora 33 default environment which is qt5. I could not find how to install QtScript for qt4 on this platform.

     
    • owlbrudder

      owlbrudder - 2021-01-19

      Ah - looks as though i need to install qtlinguist. Progress is being made ...

       

Log in to post a comment.