Menu

#45 the 2.01 does not compile on linux

2.0
open
nobody
None
2017-12-11
2017-10-18
polpol
No

Not compiling - test system Opensuse 42.3

../QtRptDesigner/Graphics/GraphicsBox.cpp: In constructor ‘GraphicsBox::GraphicsBox()’:
../QtRptDesigner/Graphics/GraphicsBox.cpp:48:16: error: no match for ‘operator=’ (operand types are ‘QSharedPointer<CornerGrabber>’ and ‘std::nullptr_t’)
corner = nullptr;
^
../QtRptDesigner/Graphics/GraphicsBox.cpp:48:16: note: candidates are:
In file included from /usr/include/qt5/QtCore/qsharedpointer.h:42:0,
from /usr/include/qt5/QtGui/qpixmap.h:41,
from /usr/include/qt5/QtWidgets/qgraphicsitem.h:43,
from /usr/include/qt5/QtWidgets/QGraphicsItem:1,
from ../QtRptDesigner/Graphics/GraphicsBox.h:27,
from ../QtRptDesigner/Graphics/GraphicsBox.cpp:24:
/usr/include/qt5/QtCore/qsharedpointer_impl.h:320:28: note: QSharedPointer<T>& QSharedPointer<T>::operator=(const QSharedPointer<T>&) [with T = CornerGrabber]
inline QSharedPointer &operator=(const QSharedPointer &other)

Discussion

  • aliks-os

    aliks-os - 2017-10-18

    which version of Qt is installed on your SuSE?

     
    • polpol

      polpol - 2017-10-18

      QMake version 3.0
      Using Qt version 5.6.2 in /usr/lib64

      but I now also verified with qt4

      QMake version 3.0
      Using Qt version 5.6.2 in /usr/lib64

      both fail.

       
  • Imran Khan

    Imran Khan - 2017-12-11

    Most likily you may have two different version of Qt (i.e default version Qt4 and Qt5 either you instlled it) check using

    qtchooser -l

    disable old version of Qt and use new or latest version by
    #export QT_SELECT= <your preferred="" version="">
    in .bashrc or .bash or .csh file
    make sure :

    export LD_LIBRARY_PATH= <your home="" username="" ...="" release="" or="" debug="" (both="" should="" have)="" <lib=""> dir

    whole compiling and linking works smoothly either at bash command level using qmake n make or within Qtcreator.

     

Log in to post a comment.