[Qgis-developer] Problems building for QT5

Alessandro Pasotti apasotti at gmail.com
Mon May 4 07:03:18 PDT 2015


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

>  Hi Alessandro,
>
> On 05/04/2015 11:13 AM, Alessandro Pasotti wrote:
>
>  2015-05-04 9:46 GMT+02:00 Matthias Kuhn <matthias at opengis.ch>:I noticed
> that there are still links to Qt4:
>
> ldd /home/ale/apps-qt5/bin/qgis|grep Qt | grep -v Qt5
>         libQtSvg.so.4 => /usr/lib/x86_64-linux-gnu/libQtSvg.so.4
> (0x00007f0f83399000)
>         libQtGui.so.4 => /usr/lib/x86_64-linux-gnu/libQtGui.so.4
> (0x00007f0f826e6000)
>         libQtCore.so.4 => /usr/lib/x86_64-linux-gnu/libQtCore.so.4
> (0x00007f0f82200000)
>
>  ldd /home/ale/apps-qt5/lib/libqgis_gui.so |grep Qt | grep -v Qt5
>         libQtSvg.so.4 => /usr/lib/x86_64-linux-gnu/libQtSvg.so.4
> (0x00007fa851a10000)
>         libQtGui.so.4 => /usr/lib/x86_64-linux-gnu/libQtGui.so.4
> (0x00007fa850d5c000)
>         libQtCore.so.4 => /usr/lib/x86_64-linux-gnu/libQtCore.so.4
> (0x00007fa850877000)
>
>
>  I disabled the bindings, grass plugin and qwt polar and make clean, what
> am I doing wrong?
>
>
> Have you compiled and linked QWT and QScintilla against Qt5 and made sure
> that they are picked up by CMake when you build QGIS?
>
>
>
Hello Mathias,

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




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


More information about the Qgis-developer mailing list