QGIS 3.9 compilation problem

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

QGIS 3.9 compilation problem

krushnaiahk

Dear friend,


While i am trying to compile qgis 3.9 version with qt 5.9 version and cmake version 3.1 on Redhat Enterprise Linux 7.5. not able to complie because of following error occurred.

Installed all required plugins like grass 7, geos, gsl, installed.

can any body please give me solution. i am not able to proceed my work. i am attaching full compiled output text.


/root/Softwares/qgis/QGIS-master/src/core/layertree/qgslayertreelayer.cpp: In member function ‘void QgsLayerTreeLayer::attachToLayer()’:
/root/Softwares/qgis/QGIS-master/src/core/layertree/qgslayertreelayer.cpp:72:94: error: no matching function for call to ‘QgsLayerTreeLayer::connect(QPointer<QgsMapLayer>&, void (QgsMapLayer::*)(), QgsLayerTreeLayer* const, void (QgsLayerTreeLayer::*)())’
connect( mRef.layer, &QgsMapLayer::nameChanged, this, &QgsLayerTreeLayer::layerNameChanged );
^
/root/Softwares/qgis/QGIS-master/src/core/layertree/qgslayertreelayer.cpp:72:94: note: candidates are:
In file included from /usr/include/qt5/QtCore/QObject:1:0,
from /root/Softwares/qgis/QGIS-master/src/core/layertree/qgslayertreenode.h:20,
from /root/Softwares/qgis/QGIS-master/src/core/layertree/qgslayertreelayer.h:21,
from /root/Softwares/qgis/QGIS-master/src/core/layertree/qgslayertreelayer.cpp:16:
/usr/include/qt5/QtCore/qobject.h:213:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
static QMetaObject::Connection connect(const QObject *sender, const char *signal,
^
/usr/include/qt5/QtCore/qobject.h:213:36: note: no known conversion for argument 2 from ‘void (QgsMapLayer::*)()’ to ‘const char*’
/usr/include/qt5/QtCore/qobject.h:216:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const QMetaMethod&, const QObject*, const QMetaMethod&, Qt::ConnectionType)
static QMetaObject::Connection connect(const QObject *sender, const QMetaMethod &signal,
^
/usr/include/qt5/QtCore/qobject.h:216:36: note: no known conversion for argument 2 from ‘void (QgsMapLayer::*)()’ to ‘const QMetaMethod&’
/usr/include/qt5/QtCore/qobject.h:468:32: note: QMetaObject::Connection QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
inline QMetaObject::Connection QObject::connect(const QObject *asender, const char *asignal,
^
/usr/include/qt5/QtCore/qobject.h:468:32: note: no known conversion for argument 2 from ‘void (QgsMapLayer::*)()’ to ‘const char*’
/usr/include/qt5/QtCore/qobject.h:233:43: note: template<class Func1, class Func2> static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType)
static inline QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal,
^
/usr/include/qt5/QtCore/qobject.h:233:43: note: template argument deduction/substitution failed:
/root/Softwares/qgis/QGIS-master/src/core/layertree/qgslayertreelayer.cpp:72:94: note: mismatched types ‘const typename QtPrivate::FunctionPointer<Func>::Object*’ and ‘QPointer<QgsMapLayer>’
connect( mRef.layer, &QgsMapLayer::nameChanged, this, &QgsLayerTreeLayer::layerNameChanged );
^
In file included from /usr/include/qt5/QtCore/QObject:1:0,
from /root/Softwares/qgis/QGIS-master/src/core/layertree/qgslayertreenode.h:20,
from /root/Softwares/qgis/QGIS-master/src/core/layertree/qgslayertreelayer.h:21,
from /root/Softwares/qgis/QGIS-master/src/core/layertree/qgslayertreelayer.cpp:16:
/usr/include/qt5/QtCore/qobject.h:265:13: note: template<class Func1, class Func2> static typename std::enable_if<((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2)
connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
^
/usr/include/qt5/QtCore/qobject.h:265:13: note: template argument deduction/substitution failed:
/root/Softwares/qgis/QGIS-master/src/core/layertree/qgslayertreelayer.cpp:72:94: note: mismatched types ‘const typename QtPrivate::FunctionPointer<Func>::Object*’ and ‘QPointer<QgsMapLayer>’
connect( mRef.layer, &QgsMapLayer::nameChanged, this, &QgsLayerTreeLayer::layerNameChanged );



with regards

Krishna K


_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

qgis3.9_compile.txt (44K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: QGIS 3.9 compilation problem

trey2019
I am getting the same error. I have the following environment:

Centos 7.7
Qt5 5.13.0
cmake 3.15.14
qgis 3.8.3

Did you make any progress with this issue? Is there anyone that might be
able to assist? The next thing I am going to try is an older GCC version (I
am using GCC 8.30). I read in one group that the person got these errors
with the stock compiler but when they installed GCC 7.2 it compiled
successfully. I will update with any progress (or lack thereof).

Trey



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user