<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Sep 24, 2016 at 5:21 PM, Even Rouault <span dir="ltr"><<a target="_blank" href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div class="gmail-HOEnZb"><div class="gmail-h5">Le samedi 24 septembre 2016 16:34:36, Sandro Santilli a écrit :<br>
> On Sat, Sep 24, 2016 at 04:31:23PM +0200, Sandro Santilli wrote:<br>
> > I'm trying to build the master branch on Ubuntu 14.04.5<br>
> ><br>
> > but the build configuration fails with:<br>
> >   CMake Error at cmake/FindQCA.cmake:60 (message):<br>
> >     Could not find QCA<br>
> ><br>
> >   Call Stack (most recent call first):<br>
> >     CMakeLists.txt:296 (FIND_PACKAGE)<br>
> ><br>
> > I have libqca2-dev installed, and 2.14 branch builds just fine:<br>
> >  -- Found QCA: /usr/lib/x86_64-linux-gnu/<wbr>libqca.so (2.0.3)<br>
> >  -- Found QCA OpenSSL plugin<br>
> ><br>
> > What changed between 2.14 and master wrt QCA ?<br>
><br>
> This seems to have changed:<br>
><br>
>   diff qgis-2.14/cmake/FindQCA.cmake qgis/cmake/FindQCA.cmake<br>
>   23,27c23<br>
>   <   if(ENABLE_QT5)<br>
>   <     set(QCA_LIBRARY_NAMES qca-qt5 qca2-qt5)<br>
>   <   else(ENABLE_QT5)<br>
>   <     set(QCA_LIBRARY_NAMES qca qca2)<br>
>   <   endif(ENABLE_QT5)<br>
>   ---<br>
><br>
>   >   set(QCA_LIBRARY_NAMES qca-qt5 qca2-qt5)<br>
><br>
>   52c48<br>
>   <       PATH_SUFFIXES QtCrypto qt4/QtCrypto Qca-qt5/QtCrypto<br>
>   ---<br>
><br>
>   >       PATH_SUFFIXES QtCrypto qt5/QtCrypto Qca-qt5/QtCrypto<br>
><br>
> It looks like qca-qt5 is not packaged for ubuntu 14.04,<br>
> can I disable it ?<br>
<br>
</div></div>Some time ago, I had rebuilt the whole stack of dependencies from sources.<br>
This was quite a pain for a few of them (one of the QT based lib. can't<br>
remember which one), especially to convince them to install to a custom prefix.<br>
<br>
You could take inspiration from Matthias' build recipees at<br>
<a target="_blank" rel="noreferrer" href="https://github.com/opengisch/osgeo4travis/tree/master/docker/qt5">https://github.com/opengisch/<wbr>osgeo4travis/tree/master/<wbr>docker/qt5</a> that are used<br>
to generate the<br>
<a target="_blank" rel="noreferrer" href="https://github.com/opengisch/osgeo4travis/archive/qt5bin.tar.gz">https://github.com/opengisch/<wbr>osgeo4travis/archive/qt5bin.<wbr>tar.gz</a> archive used<br>
on Travis-CI (but you can't probably directly use those binaries for 14.04 as<br>
they are targetted for 12.04).<br>
<span class="gmail-im gmail-HOEnZb"><br>
><br>
> --strk;<br>
> ______________________________<wbr>_________________<br>
> Qgis-developer mailing list<br>
> <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
> List info: <a target="_blank" rel="noreferrer" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
> Unsubscribe: <a target="_blank" rel="noreferrer" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
<br>
</span><span class="gmail-HOEnZb"><font color="#888888">--<br>
Spatialys - Geospatial professional services<br>
<a target="_blank" rel="noreferrer" href="http://www.spatialys.com">http://www.spatialys.com</a><br>
</font></span><div class="gmail-HOEnZb"><div class="gmail-h5">______________________________<wbr>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
List info: <a target="_blank" rel="noreferrer" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
Unsubscribe: <a target="_blank" rel="noreferrer" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a></div></div></blockquote></div><br><br><br></div><div class="gmail_extra">I'm also trying to build on 14.04, I've installed QCA following this guide: <a href="https://github.com/JPNaude/dev_notes/wiki/Using-the-Qt-Cryptographic-Architecture-with-Qt5#building-qca-on-linux">https://github.com/JPNaude/dev_notes/wiki/Using-the-Qt-Cryptographic-Architecture-with-Qt5#building-qca-on-linux</a><br><br></div><div class="gmail_extra">But this was not the last issue: GDAL is 1.10.1, Qt5 is 5.2.1 and the build fails with:<br><br>/home/ale/dev/QGIS/src/core/qgsexpression.cpp: In member function ‘void QgsExpression::detach()’:<br>/home/ale/dev/QGIS/src/core/qgsexpression.cpp:3835:15: error: no match for ‘operator>’ (operand types are ‘QAtomicInt’ and ‘int’)<br>   if ( d->ref > 1 )<br><br></div><div class="gmail_extra">I've another machine with xenial and it builds just fine but it would nice to be able to build on trusty too.<br clear="all"></div><div class="gmail_extra"><br>-- <br><div class="gmail_signature">Alessandro Pasotti<br>w3:   <a target="_blank" href="http://www.itopen.it">www.itopen.it</a></div>
</div></div>