<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2015-05-06 14:29 GMT+02:00 Matthias Kuhn <span dir="ltr"><<a href="mailto:matthias@opengis.ch" target="_blank">matthias@opengis.ch</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class=""><br>
On 05/06/2015 10:54 AM, Alessandro Pasotti wrote:<br>
> 2015-05-04 20:09 GMT+02:00 Matthias Kuhn <<a href="mailto:matthias@opengis.ch">matthias@opengis.ch</a><br>
</span>> <mailto:<a href="mailto:matthias@opengis.ch">matthias@opengis.ch</a>>>:<br>
<div><div class="h5">><br>
><br>
>     ><br>
>     > QScintilla was ok but I forgot to change the links for QWT. Now I<br>
>     > downloaded and built QWT using Qt5 version of qmake, then set the<br>
>     > right path but still no luck... I cannot figure out why it is still<br>
>     > linking to libQtCore.so.4<br>
>     ><br>
><br>
><br>
><br>
> Just discovered that QGIS built with QT5 runs fine from the build<br>
> directory  but segfaults from the install directory.<br>
><br>
> This runs fine from the build directory:<br>
> LD_LIBRARY_PATH=output/lib/ output/bin/qgis<br>
><br>
> It seems like the install process (make install) removes the runtime<br>
> path from the .so and this causes the problem: running ldd in<br>
> output/lib/ doesn't show any Qt 4 lib while running ldd on the<br>
> installed libqgis_gui.so shows libQtCore.so.4 libQtGui.so.4 etc.<br>
><br>
> Any idea how to fix this?<br>
</div></div>Maybe you find something here:<br>
<a href="http://www.cmake.org/Wiki/CMake_RPATH_handling" target="_blank">http://www.cmake.org/Wiki/CMake_RPATH_handling</a><br>
<span class=""><font color="#888888"><br></font></span></blockquote><div><br><br></div><div>Thanks Mathias and Juergen,<br><br></div><div>that did the trick:<br><br>objdump -x output/lib/libqgis_gui.so.2.9.0|grep RPATH <br> RPATH                /home/ale/dev/QGIS/build-local-qt5/src/core:/home/ale/dev/QGIS/build-local-qt5/src/gui:/home/ale/dev/QGIS/build-local-qt5/output/lib:/usr/local/qwt-6.1.2/lib:<br><br></div><div>the problem was /usr/local/qwt-6.1.2/lib that I built against Qt5 and installed in /usr/local but the system installed Qt4 version was loaded instead:<br></div><div> ldd ../../../apps-qt5/lib/libqgis_gui.so.2.9.0|grep qwt<br>        libqwt.so.6 => /usr/lib/libqwt.so.6 (0x00007fd0d1da7000)<br><br></div><div>while:<br><br></div><div>LD_LIBRARY_PATH=/usr/local/qwt-6.1.2/lib ldd ../../../apps-qt5/lib/libqgis_gui.so.2.9.0|grep qwt<br>        libqwt.so.6 => /usr/local/qwt-6.1.2/lib/libqwt.so.6 (0x00007f291095a000)<br><br><br>this now works:<br>LD_LIBRARY_PATH=/usr/local/qwt-6.1.2/lib:/home/ale/apps-qt5/lib/ /home/ale/apps-qt5/bin/qgis<br></div></div><br></div><div class="gmail_extra">I just hope this email thread can be useful to others.<br clear="all"></div><div class="gmail_extra"><br>-- <br><div class="gmail_signature">Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div>
</div></div>