[Qgis-developer] Building on Ubuntu 14.04

Even Rouault even.rouault at spatialys.com
Sat Sep 24 08:21:23 PDT 2016


Le samedi 24 septembre 2016 16:34:36, Sandro Santilli a écrit :
> On Sat, Sep 24, 2016 at 04:31:23PM +0200, Sandro Santilli wrote:
> > I'm trying to build the master branch on Ubuntu 14.04.5
> > 
> > but the build configuration fails with:
> >   CMake Error at cmake/FindQCA.cmake:60 (message):
> >     Could not find QCA
> >   
> >   Call Stack (most recent call first):
> >     CMakeLists.txt:296 (FIND_PACKAGE)
> > 
> > I have libqca2-dev installed, and 2.14 branch builds just fine:
> >  -- Found QCA: /usr/lib/x86_64-linux-gnu/libqca.so (2.0.3)
> >  -- Found QCA OpenSSL plugin
> > 
> > What changed between 2.14 and master wrt QCA ?
> 
> This seems to have changed:
> 
>   diff qgis-2.14/cmake/FindQCA.cmake qgis/cmake/FindQCA.cmake
>   23,27c23
>   <   if(ENABLE_QT5)
>   <     set(QCA_LIBRARY_NAMES qca-qt5 qca2-qt5)
>   <   else(ENABLE_QT5)
>   <     set(QCA_LIBRARY_NAMES qca qca2)
>   <   endif(ENABLE_QT5)
>   ---
> 
>   >   set(QCA_LIBRARY_NAMES qca-qt5 qca2-qt5)
> 
>   52c48
>   <       PATH_SUFFIXES QtCrypto qt4/QtCrypto Qca-qt5/QtCrypto
>   ---
> 
>   >       PATH_SUFFIXES QtCrypto qt5/QtCrypto Qca-qt5/QtCrypto
> 
> It looks like qca-qt5 is not packaged for ubuntu 14.04,
> can I disable it ?

Some time ago, I had rebuilt the whole stack of dependencies from sources. 
This was quite a pain for a few of them (one of the QT based lib. can't 
remember which one), especially to convince them to install to a custom prefix.

You could take inspiration from Matthias' build recipees at 
https://github.com/opengisch/osgeo4travis/tree/master/docker/qt5 that are used 
to generate the 
https://github.com/opengisch/osgeo4travis/archive/qt5bin.tar.gz archive used 
on Travis-CI (but you can't probably directly use those binaries for 14.04 as 
they are targetted for 12.04).

> 
> --strk;
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the Qgis-developer mailing list