<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Thu, Nov 15, 2018 at 10:09 AM Andrea Aime <<a href="mailto:andrea.aime@geo-solutions.it">andrea.aime@geo-solutions.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div>Thanks everybody for the followup! I'm answering this mail but I'll integrate comments about the others too.</div><div dir="ltr"><br></div><div dir="ltr">On Thu, Nov 15, 2018 at 8:26 AM Alessandro Pasotti <<a href="mailto:apasotti@gmail.com" target="_blank">apasotti@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">Hi Andrea,<br></div><div><br></div><div>I've never seen that particular error, I'd look into cmake installation and/or version.</div></div></div></div></div></blockquote><div><br></div><div>See below</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div>The vast majority of QGIS C++ developers uses Qt Creator on a daily basis on different platforms, what work for me here is:<br></div><div><br></div><div>Ubuntu xenial</div><div><br></div><div>QtCreator: 4.7.2 installed from <a href="https://www.qt.io/download" target="_blank">https://www.qt.io/download</a><br></div><div>cmake version 3.10.2 self-built from sources</div><div>Qt 10.0.1 self-built from sources</div><div><br></div><div>Notice that none of the above was installed with apt, the main reason is that xenial is a little bit old, but IIRC that was also to avoid some problems in the integration of the different components.<br></div></div></div></div></div></blockquote><div><br></div><div>I see... on my machine I have everything installed from apt instead, versions are:</div><div><ul><li>QT Creator 4.5.2</li><li>cmake 3.10.2</li><li>QT is 5.9.5 (you have QT 10 instead??)</li></ul></div></div></div></div></blockquote><div><br></div><div>You should be good with 5.9, I have several kits with different QT versions in release or debug mode, this is the script I use to build them: <a href="http://termbin.com/froy">http://termbin.com/froy</a></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div> In other comments I've been invited to build from sources using cmake, which I did, worked, but then trying to start qgis as built results in this:</div><div><br></div><div><div>aaime@colossus ~/devel/qgis/build-master (master) $ export LD_LIBRARY_PATH=/home/aaime/apps/lib</div><br></div></div></div></div></blockquote><div><br></div><div>[...]</div><div><br></div><div>You might need some more env vars, here is an example of a run script of mines: <a href="http://termbin.com/us9x">http://termbin.com/us9x</a> note that I never run make/ninja install but I run everything directly from the output dir under the build dir.<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div></div><div><br></div><div>I'm starting to think I'd be better of using a virtual machine where one can do any custom setup required.</div><div>Someone was hinting at a video showing how to do that, using a vagrant setup. Is the same also documented anywhere, like,</div><div>in text form?</div><div><br></div></div></div></div></blockquote><div><br></div><div>Not that I'm aware of, but depending on your needs, you might find it useful a docker recipe to build qgis from sources:  <a href="https://github.com/qgis/QGIS/blob/master/.docker/qgis.dockerfile">https://github.com/qgis/QGIS/blob/master/.docker/qgis.dockerfile</a></div><div><br></div><div>Btw, a Vagrant recipe to build a QGIS development environment ready to go would be IMO very welcome and would low barriers for new developers.</div><div><br></div><div>Cheers<br></div><div><br></div><div>--<br></div></div><div dir="ltr" class="gmail_signature">Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div></div></div></div></div>