[QGIS-Developer] Cannot load QGIS source code in QTCreator

Andrea Aime andrea.aime at geo-solutions.it
Thu Nov 15 01:08:55 PST 2018


Thanks everybody for the followup! I'm answering this mail but I'll
integrate comments about the others too.

On Thu, Nov 15, 2018 at 8:26 AM Alessandro Pasotti <apasotti at gmail.com>
wrote:

> Hi Andrea,
>
> I've never seen that particular error, I'd look into cmake installation
> and/or version.
>

See below


> The vast majority of QGIS C++ developers uses Qt Creator on a daily basis
> on different platforms, what work for me here is:
>
> Ubuntu xenial
>
> QtCreator: 4.7.2 installed from https://www.qt.io/download
> cmake version 3.10.2 self-built from sources
> Qt 10.0.1 self-built from sources
>
> 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.
>

I see... on my machine I have everything installed from apt instead,
versions are:

   - QT Creator 4.5.2
   - cmake 3.10.2
   - QT is 5.9.5 (you have QT 10 instead??)

 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:

aaime at colossus ~/devel/qgis/build-master (master) $ export
LD_LIBRARY_PATH=/home/aaime/apps/lib
aaime at colossus ~/devel/qgis/build-master (master) $
/home/aaime/apps/bin/qgis
src/app/main.cpp: 469: (main) [0ms] Starting qgis main
src/core/qgsmessagelog.cpp: 29: (logMessage) [0ms] 2018-11-15T10:04:25
QGIS[1] Successfully loaded globalsettingsfile path:
/home/aaime/apps/share/qgis/resources/qgis_global_settings.ini
src/core/qgsapplication.cpp: 158: (QgsApplication) [50ms] loading of qt
translation failed /usr/share/qt5/translations/qt_it_IT
src/app/qgsversionmigration.cpp: 92: (requiresMigration) [1ms] File version
is=2
src/app/qgscustomization.cpp: 945: (loadDefault) [4ms] Status path =
/Customization/status
src/app/qgscustomization.cpp: 946: (loadDefault) [0ms] status = 0
src/app/qgscustomization.cpp: 954: (loadDefault) [0ms] Default
customization not found in
/home/aaime/apps/share/qgis/resources/customization.ini
src/core/qgsfontutils.cpp: 277: (loadStandardTestFonts) [13ms] Test font
'QGIS Vera Sans' (Bold) loaded from testdata.qrc
src/core/qgsfontutils.cpp: 277: (loadStandardTestFonts) [7ms] Test font
'QGIS Vera Sans' (Roman) loaded from testdata.qrc
src/core/qgsapplication.cpp: 1706: (setMaxThreads) [71ms] maxThreads: -1
src/core/qgsapplication.cpp: 1722: (setMaxThreads) [0ms] set QThreadPool
max thread count to 16
src/core/qgsruntimeprofiler.cpp: 54: (end) [1ms] PROFILE: User profile
manager - 0
src/core/qgsruntimeprofiler.cpp: 54: (end) [46ms] PROFILE:
qgisapp/startup/Setting up UI - 0.046
src/core/qgsruntimeprofiler.cpp: 54: (end) [22ms] PROFILE:
qgisapp/startup/Checking database - 0.022
src/core/qgsruntimeprofiler.cpp: 54: (end) [0ms] PROFILE:
qgisapp/startup/Creating theme folder - 0
src/core/qgsproviderregistry.cpp: 105: (init) [2ms] Checking
/home/aaime/apps/lib/qgis/plugins for provider plugins
src/core/qgsproviderregistry.cpp: 158: (init) [7ms] Checking
/home/aaime/apps/lib/qgis/plugins/libbasicauthmethod.so: ...invalid (no
isProvider method)
src/core/qgsproviderregistry.cpp: 150: (init) [2ms] Checking
/home/aaime/apps/lib/qgis/plugins/libcoordinatecaptureplugin.so: ...invalid
(has type method)
QGIS died on signal 11Could not attach to process.  If your uid matches the
uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operazione non permessa.
No thread selected
No stack.
gdb returned 0
Annullato

I'm starting to think I'd be better of using a virtual machine where one
can do any custom setup required.
Someone was hinting at a video showing how to do that, using a vagrant
setup. Is the same also documented anywhere, like,
in text form?

Cheers
Andrea

== GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf
Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa
(LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549
http://www.geo-solutions.it http://twitter.com/geosolutions_it
------------------------------------------------------- *Con riferimento
alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 -
Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni
circostanza inerente alla presente email (il suo contenuto, gli eventuali
allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i
destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per
errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le
sarei comunque grato se potesse darmene notizia. This email is intended
only for the person or entity to which it is addressed and may contain
information that is privileged, confidential or otherwise protected from
disclosure. We remind that - as provided by European Regulation 2016/679
“GDPR” - copying, dissemination or use of this e-mail or the information
herein by anyone other than the intended recipient is prohibited. If you
have received this email by mistake, please notify us immediately by
telephone or e-mail.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20181115/8d30fb26/attachment.html>


More information about the QGIS-Developer mailing list