[Qgis-developer] Problems building for QT5

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


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

>  Hi Alessandro
>
>
> On 05/04/2015 09:36 AM, Alessandro Pasotti wrote:
>
>  2015-05-04 9:12 GMT+02:00 Jürgen E. <jef at norbit.de>:
>
>> Hi Alessandro,
>>
>> On Mon, 04. May 2015 at 09:02:39 +0200, Alessandro Pasotti wrote:
>> > I set QT5 ON and I think I've installed all requirements (I'm on Ubuntu
>> > 14.04) but I get lot of errors while building.
>> >
>> > Here is the output:
>> >
>> > https://dpaste.de/dJNO
>> >
>> > It seems like it still links to Qt4, any hint?
>>
>> Try WITH_BINDINGS FALSE
>>
>
>
>  Thanks Juergen,
>
>  tried WITH_BINDINGS FALSE but still fails
>
> https://dpaste.de/6wT0
>
>
> There seem to be some leftovers that try to bring in bits of Qt4.
>
> I have once written a short howto:
> https://github.com/qgis/QGIS/pull/1676
>
> I hope that helps,
> Matthias
>
>
>

Thanks Mathias,

it helped and I successfully built qgis with Qt5

the problem is that it segfaults at start.

(gdb) run
Starting program: /home/ale/apps-qt5/bin/qgis
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007fffee35ddfc in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4


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?


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


More information about the Qgis-developer mailing list