<p dir="ltr">Larry, Matthias, is there an easy fix that can be applied so 2.12 can ship and be qt5-compatible? </p>
<p dir="ltr">Oh btw, ubuntu now has qt5 packages for scintilla, qwt, and qca but the cmake process picks the qt4 versions when cmaking with enable_qt5</p>
<p dir="ltr">M</p>
<div class="gmail_quote">On 4 Oct 2015 14:43, "Matthias Kuhn" <<a href="mailto:matthias@opengis.ch">matthias@opengis.ch</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Hi Mathieu,<br>
<br>
<div>On 10/04/2015 03:55 AM, Mathieu
Pellerin wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>
<div>Greetings,<br>
<br>
</div>
(Note: it's the first time I'm trying to compile
QGIS using Qt5, so the problem might be the user
here ;) )<br>
<br>
</div>
Using the current master (what will become 2.12), I
fail to successfully compile a build using Qt5
libraries. The make process crashes when trying to
compile qgsauthcertutils.cpp with the following error:<br>
<br>
/home/webmaster/dev/cpp/QGIS/src/core/auth/qgsauthcertutils.cpp:
In static member function ‘static QMap<QString,
QList<QSslCertificate> >
QgsAuthCertUtils::certsGroupedByOrg(QList<QSslCertificate>)’:<br>
/home/webmaster/dev/cpp/QGIS/src/core/auth/qgsauthcertutils.cpp:64:68:
error: no matching function for call to
‘QString::QString(QStringList)’<br>
QString org( cert.subjectInfo(
QSslCertificate::Organization ) );<br>
^<br>
In file included from
/usr/include/x86_64-linux-gnu/qt5/QtCore/QString:1:0,<br>
from
/usr/include/Qca-qt5/QtCrypto/qca_core.h:36,<br>
from
/usr/include/Qca-qt5/QtCrypto/qca.h:36,<br>
from
/usr/include/Qca-qt5/QtCrypto/QtCrypto:1,<br>
from
/home/webmaster/dev/cpp/QGIS/src/core/auth/qgsauthcertutils.h:21,<br>
from
/home/webmaster/dev/cpp/QGIS/src/core/auth/qgsauthcertutils.cpp:17:<br>
<br>
</div>
<br>
</div>
Question: is it the case that ATM master does not compile
using Qt5 anymore? Or is there something I'm missing here?<br>
</div>
</div>
</div>
</div>
</blockquote>
<br>
Yes, it looks like the authentication system is incompatible with
Qt5. In particular this API change:<br>
<br>
>
<span style="color:rgb(46,52,54);font-family:'Open Sans','Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:22.4px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)">QSslCertificate::subjectInfo()
and QSslCertificate::issuerInfo() now return a QStringList instead
of a QString</span>
<p style="margin:0px 0px 0.8em;font-family:'Open Sans','Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:1.6em;color:rgb(46,52,54);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">> It's pretty common for a certificate to contain more
than entry of a specific type, but in Qt 4 the API only let you
access the first one.</p>
<a href="https://blogs.kde.org/2012/04/14/whats-new-qt-5-ssl" target="_blank">https://blogs.kde.org/2012/04/14/whats-new-qt-5-ssl</a><br>
<br>
Cheers<br>
Matthias<br>
<br>
<blockquote type="cite">
<div dir="ltr">
<div>
<div>
<div><br>
</div>
Thanks for the help.<br>
<br>
</div>
Math<br>
<br>
</div>
P.S. the reason why I'm trying to get a functioning Qt5-based
build is that I've ran into a problem with Burmese character
encoding that's fixed under Qt5, due to its use of harfbuzz-ng.
So, one additional motivation to to the upgrade eventually :)<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Qgis-developer mailing list
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br></blockquote></div>