<div dir="ltr"><div><div>Thanks for the input, Matthias.<br><br></div>It's been some time since I built it from scratch, so I wouldn't be able to provide specifics. But it was on Ubuntu 16, and Mark's comments about Qt5, QScintylla and <span style="font-size:12.8px">libpng did ring a bell for me, since the email.<br></span></div><span style="font-size:12.8px">I'll try again on the next couple of days and if there's interest I can report on how it went.<br></span><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">André<br></span></div><div><div class="gmail_extra"><br><div class="gmail_quote">2017-03-17 13:29 GMT-03: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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi André and Mark,<br>
<br>
Can you clarify on which systems you are working and which dependencies<br>
cause headaches?<br>
<br>
In many situations, a build of Qt is not required and doing this<br>
requires deep understanding of all the involved libraries. I would<br>
strongly advice anyone to first explore other alternatives before<br>
starting the walk on this tricky road.<br>
<br>
For reference, here is a set of script that is able to build many of the<br>
dependencies (into a custom root path) for those who still want to do it:<br>
<a href="https://github.com/opengisch/osgeo4travis/tree/master/docker/qt5/scripts" rel="noreferrer" target="_blank">https://github.com/opengisch/<wbr>osgeo4travis/tree/master/<wbr>docker/qt5/scripts</a><br>
<br>
Best regards<br>
Matthias<br>
<span class=""><br>
On 03/17/2017 05:17 PM, André William wrote:<br>
> Hi all, my name is André, this is my first email on this list.<br>
><br>
> I've also struggled with building QGIS before, and besides the problems<br>
> mentioned by Mark, the default installed libraries are often<br>
> incompatible with QGIS or some of its dependencies.<br>
> I'd be willing to help with documenting my steps or possibly<br>
> contributing code to the scripts as I attempt to build on a clean OS.<br>
><br>
> André<br>
><br>
> 2017-03-17 12:26 GMT-03: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>
>     Hi Mark,<br>
><br>
>     Are the dependencies not available for your distribution?<br>
><br>
>     Except for some very special systems (Android, very old ubuntu versions<br>
>     on travis...) I never ever build these dependencies manually and just<br>
>     install them.<br>
><br>
>     Matthias<br>
><br>
>     On 03/17/2017 04:21 PM, Mark Johnson wrote:<br>
>     > For the last 10 days I have been attempting to build QGIS 3.0 master<br>
>     > from scratch.<br>
>     > For this QT 5 also had to be build, which is not an easy task.<br>
>     ><br>
>     > In the past I had used the 'run' scripts, which installed the source<br>
>     > - qt-opensource-linux-x64-5.7.1.<wbr>run<br>
>     > but after the first installment I noticed that QGIS needed a modal that<br>
>     > had not been included: QtWebKit<br>
>     ><br>
>     > The there is QScintilla,PyQt5 (with sip) and Qwt<br>
>     > - Qwt: did not install the libs where PyQt5 could not find it<br>
>     > - QScintilla  did not accept the –-pyqt=PyQt5 parameter, so<br>
>     > the configure.py had to be adapted<br>
>     ><br>
>     > And then there is the cmake of QGIS3 itself, which in itself is a horror<br>
>     > dream come true<br>
>     > - instead of asking *once* for the 'Qt5 cmake' directory<br>
>     > -- it asks it about 12 times for the 17 modals needed<br>
>     > --> I assume ccmake determines for each module the dependencies,<br>
>     but for<br>
>     > the user this is a horrible -  time consuming experience<br>
>     ><br>
>     > ---<br>
>     > For this reason I think it would be a good idea to add an area in the<br>
>     > QGIS wiki with tip how this should be done,<br>
>     ><br>
>     > Based on a specific QGIS version<br>
>     > - which other versions (QT5, python3 [python 3.5.3rc1 does not work,<br>
>     > python 3.4.6 does] etc.) should be used<br>
>     > - basic howto's to<br>
>     > -- build QT5 from scratch (like using git that contains QtWebKit, as<br>
>     > apposed to the 'run' that does not)<br>
>     > -- known irregularities<br>
>     > ---> copy the Qwt/libs to the Qt5/libs so that PyQt5 can find them<br>
>     > ---> QScintilla how to adapt the configure.py script to create the<br>
>     > needed PyQt5 version<br>
>     ><br>
>     > The goal would be to offer a guideline for those doing this for the<br>
>     > first time<br>
>     > - avoiding known traps<br>
>     ><br>
>     > ---<br>
>     > Something in the form of (based on the present wiki):<br>
>     ><br>
>     > Organize an event<br>
>     > ...<br>
>     > Collaborative documents<br>
>     > ...<br>
>     > Building QGIS 3.0 from scratch<br>
>     >  Building QT 5 from scratch<br>
>     >    Building and correctly installing Qwt<br>
>     >    Building QScintilla for PyQt5<br>
>     >    Building PyQt5<br>
>     >  QGIS3 ccmake<br>
>     ><br>
>     > I would be willing to start this with my experiences.<br>
>     ><br>
>     > Mark Johnson, Berlin Germany<br>
>     ><br>
>     ><br>
>     ><br>
>     ><br>
>     ><br>
>     ><br>
>     > ______________________________<wbr>_________________<br>
>     > Qgis-developer mailing list<br>
</div></div>>     > <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a> <mailto:<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.<wbr>osgeo.org</a>><br>
<span class="">>     > List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
>     <<a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a>><br>
>     > Unsubscribe:<br>
>     <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
>     <<a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a>><br>
>     ><br>
>     ______________________________<wbr>_________________<br>
>     Qgis-developer mailing list<br>
</span>>     <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a> <mailto:<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.<wbr>osgeo.org</a>><br>
<div class="HOEnZb"><div class="h5">>     List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
>     <<a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a>><br>
>     Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
>     <<a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a>><br>
><br>
><br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> Qgis-developer mailing list<br>
> <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
><br>
______________________________<wbr>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a></div></div></blockquote></div><br></div></div></div>