<div dir="ltr"><div>> But if I manage to get this running I'll post all my patches somewhere.</div><div><br></div>Hi Henrik,<div>I would be interested in collaborating with you to get QGIS 3 running on RHEL/CentOS 7.</div><div>Would you be willing to share your current patchset and maybe I can help out with getting this working?</div><div><br></div><div>Thanks,</div><div>Elias<br><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 22, 2019 at 10:40 AM Henrik Krohns <<a href="mailto:hege@hege.li">hege@hege.li</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Thanks, it worked, so simple..<br>
<br>
Are fixes like this good canditate to actually raise an issue? I have no clue<br>
on all the C++ versions etc and what stuff is legacy not intended to use<br>
these days..<br>
<br>
But if I manage to get this running I'll post all my patches somewhere.<br>
<br>
On Wed, May 22, 2019 at 05:40:45PM +0200, Alessandro Pasotti wrote:<br>
> <br>
> Hi Henrik,<br>
> <br>
> Try to replace {} with (), such as:<br>
> <br>
> const auto treeLayer ( static_cast<const QgsLayerTreeLayer *>( childNode ) );<br>
> <br>
> <br>
> <br>
> On Wed, May 22, 2019 at 4:42 PM Henrik Krohns <[1]<a href="mailto:hege@hege.li" target="_blank">hege@hege.li</a>> wrote:<br>
> <br>
> <br>
>     Hello,<br>
> <br>
>     I've been trying to compile QGis on RHEL7 / GCC 4.8.5 all day.  It seems<br>
>     lots of code assume newer compiler.  I've fixed many cases already, but<br>
>     here's something I can't manage..  not really proficient in C++..<br>
> <br>
>     src/server/services/wms/qgswmsgetcapabilities.cpp: In function 'bool<br>
>     QgsWms::hasQueryableChildren(const QgsLayerTreeNode*, const QStringList&)':<br>
>     src/server/services/wms/qgswmsgetcapabilities.cpp:1893:31: error: base<br>
>     operand of '->' has non-pointer type 'const std::initializer_list<const<br>
>     QgsLayerTreeLayer* const>'<br>
>            const auto l { treeLayer->layer() };<br>
>                                    ^<br>
>     src/server/services/wms/qgswmsgetcapabilities.cpp:1893:41: error: unable to<br>
>     deduce 'const std::initializer_list<const auto>' from '{<expression error>}<br>
>     '<br>
>            const auto l { treeLayer->layer() };<br>
> <br>
>     The code..<br>
> <br>
>         else if ( childNode->nodeType() == QgsLayerTreeNode::NodeLayer )<br>
>         {<br>
>           const auto treeLayer { static_cast<const QgsLayerTreeLayer *>(<br>
>     childNode ) };<br>
>           const auto l { treeLayer->layer() };<br>
>           return ! wmsRestrictedLayers.contains( l->name() ) && l->flags<br>
>     ().testFlag( QgsMapLayer::Identifiable );<br>
> <br>
>     Any ideas how to rewrite?<br>
> <br>
>     Cheers,<br>
>     Henrik<br>
> <br>
>     _______________________________________________<br>
>     QGIS-Developer mailing list<br>
>     [2]<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
>     List info: [3]<a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
>     Unsubscribe: [4]<a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
> <br>
> <br>
> <br>
> --<br>
> Alessandro Pasotti<br>
> w3:   [5]<a href="http://www.itopen.it" rel="noreferrer" target="_blank">www.itopen.it</a><br>
> <br>
> References:<br>
> <br>
> [1] mailto:<a href="mailto:hege@hege.li" target="_blank">hege@hege.li</a><br>
> [2] mailto:<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
> [3] <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
> [4] <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
> [5] <a href="http://www.itopen.it/" rel="noreferrer" target="_blank">http://www.itopen.it/</a><br>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote></div>