[Qgis-developer] Problems building for QT5

Alessandro Pasotti apasotti at gmail.com
Mon May 4 13:24:37 PDT 2015


2015-05-04 20:09 GMT+02:00 Matthias Kuhn <matthias at opengis.ch>:

>
> >
> > QScintilla was ok but I forgot to change the links for QWT. Now I
> > downloaded and built QWT using Qt5 version of qmake, then set the
> > right path but still no luck... I cannot figure out why it is still
> > linking to libQtCore.so.4
> >
> > -- QGIS version: 2.9.0 Master (20900)
> > -- Found Proj: /usr/lib/libproj.so
> > -- Found GEOS: /usr/lib/libgeos_c.so (3.4.2)
> > -- Found GDAL: /usr/lib/libgdal.so (1.10.1)
> > -- Found Expat: /usr/lib/x86_64-linux-gnu/libexpat.so
> > -- Found Spatialindex: /usr/lib/x86_64-linux-gnu/libspatialindex.so
> > -- Found Qwt: /usr/local/qwt-6.1.2/lib/libqwt.so (6.1.2)
> > -- Found Sqlite3: /usr/lib/x86_64-linux-gnu/libsqlite3.so
> > -- Found PostgreSQL: /usr/lib/libpq.so
> > -- Found SpatiaLite: /usr/lib/x86_64-linux-gnu/libspatialite.so
> > -- Found Qt version: 5.2.1
> > -- Touch support disabled
> > -- Found QScintilla2: /usr/lib/libqt5scintilla2.so (2.8.1)
> > -- Pedantic compiler settings enabled
> > -- Debug output enabled
> > -- Found GSL: -L/usr/lib -lgsl -lgslcblas -lm
> > -- Configuring done
> > -- Generating done
> >
>
> I'd try the following:
> grep -i qt4 CMakeCache.txt
>
> and
>
> ldd /usr/lib/libqt5scintilla2.so
> ldd /usr/local/qwt-6.1.2/lib/libqwt.so
>
> Maybe that points out something...
>
>
I did already and it seems ok to me:

 ldd /usr/lib/libqt5scintilla2.so | grep -i qt
        libQt5PrintSupport.so.5 =>
/usr/lib/x86_64-linux-gnu/libQt5PrintSupport.so.5 (0x00007f20a24e9000)
        libQt5Widgets.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
(0x00007f20a1cc0000)
        libQt5Gui.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
(0x00007f20a1672000)
        libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
(0x00007f20a0fcc000)
ldd /usr/local/qwt-6.1.2/lib/libqwt.so | grep -i qt
        libQt5OpenGL.so.5 => /usr/lib/x86_64-linux-gnu/libQt5OpenGL.so.5
(0x00007f97ca6f1000)
        libQt5Svg.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Svg.so.5
(0x00007f97ca4a5000)
        libQt5PrintSupport.so.5 =>
/usr/lib/x86_64-linux-gnu/libQt5PrintSupport.so.5 (0x00007f97ca23f000)
        libQt5Widgets.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
(0x00007f97c9a16000)
        libQt5Gui.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
(0x00007f97c93c9000)
        libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
(0x00007f97c8d22000)

grep -i qt4 CMakeCache.txt
//If enabled will try to find Qt5 before looking for Qt4

I cleaned ccache, make clean and rebuilt but still:

ldd /apps-qt5/lib/libqgis_gui.so |grep Qt | grep -v Qt5
        libQtSvg.so.4 => /usr/lib/x86_64-linux-gnu/libQtSvg.so.4
(0x00007f75f5501000)
        libQtGui.so.4 => /usr/lib/x86_64-linux-gnu/libQtGui.so.4
(0x00007f75f484d000)
        libQtCore.so.4 => /usr/lib/x86_64-linux-gnu/libQtCore.so.4
(0x00007f75f4368000)


-- 
Alessandro Pasotti
w3:   www.itopen.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150504/3c3a590a/attachment.html>


More information about the Qgis-developer mailing list