[Qgis-developer] Error compiling QGIS v2.8.1 with Globe Plugin

Matthias Kuhn matthias at opengis.ch
Wed Apr 8 14:06:30 PDT 2015


Hi,

a year ago I updated globe to be compatible with newer OSGEarth versions
(up to 2.5 IIRC) but never got around to merge the code back.
In case somebody wants to finish this work, the code is here:

https://github.com/m-kuhn/QGIS/tree/globe-featurequery/

Be prepared however that quite a bit of code was changed in QGIS core as
well because some functionality to make globe more configurable (expose
vector layers as such, extrude features, height exaggeration of the DEM
and at some point some python scripting possibilities...) was added what
required to add the possibility to add additional tabs to the vector
layer properties dialog from plugins.
You have been warned that it's not just a simple patch.

Best,
Matthias

On 04/08/2015 06:04 PM, samuelmesa at gmail.com wrote:
> I have achieved to installQGIS with Globeplugin with an older version
> of osgEarth[1], specifically version 2.1.1 (2011). This version
> contains all headersrequired to compile QGIS globe plugin. However, an
> error occurs when starting QGIS and closes with the following message:
>
> ----------------------------------
> $ qgis
>
> Warning: QGraphicsScene::addItem: item has already been added to this
> scene
> Violación de segmento (`core' generado)
>
> -----------------------------------
> To correct the error I remove the Globe plugin of
> /usr/lib/qgis/plugins/libglobeplugin.so. However, I can not accomplish
> install the Globe plugin in QGIS.
>
>
> [1] https://gist.github.com/samtux/5efb2512d18ec682c64c
>
> 2015-04-08 7:58 GMT-05:00 samuelmesa at gmail.com
> <mailto:samuelmesa at gmail.com> <samuelmesa at gmail.com
> <mailto:samuelmesa at gmail.com>>:
>
>     Hello list. I support in generating GIS AUR packages in Arch Linux
>     repositories, including osgEarth package[1]. However in the latest
>     version of QGIS v2.8.1, I was unable successfully compile osgEarth
>     to support the Globe plugin, because it requires some headers that
>     do not exist.
>
>     QGIS with osgEarth version 2.5 not find osgEarth/FindNode:
>     -------------------------------------------------------------------
>     /home/samtux/Manjaro/aur/qgis/src/qgis/src/plugins/globe/osgEarthUtil/Controls.cpp:21:29:
>     error fatal: osgEarth/FindNode: No existe el fichero o el directorio
>      #include <osgEarth/FindNode>
>                                  ^
>     compilación terminada.
>     src/plugins/globe/CMakeFiles/globeplugin.dir/build.make:170: fallo
>     en las instrucciones para el objetivo
>     'src/plugins/globe/CMakeFiles/globeplugin.dir/osgEarthUtil/Controls.cpp.o'
>     make[2]: ***
>     [src/plugins/globe/CMakeFiles/globeplugin.dir/osgEarthUtil/Controls.cpp.o]
>     Error 1
>     CMakeFiles/Makefile2:2570: fallo en las instrucciones para el
>     objetivo 'src/plugins/globe/CMakeFiles/globeplugin.dir/all'
>     make[1]: *** [src/plugins/globe/CMakeFiles/globeplugin.dir/all]
>     Error 2
>     make[1]: *** Se espera a que terminen otras tareas....
>     -------------------------------------------------------------------
>
>     QGIS with osgEarth version 2.6 not find osgEarthUtil/SkyNode:
>     -------------------------------------------------------------------
>     /home/samtux/Manjaro/aur/qgis/src/qgis/src/plugins/globe/globe_plugin.cpp:60:32:
>     error fatal: osgEarthUtil/SkyNode: No existe el fichero o el
>     directorio
>      #include <osgEarthUtil/SkyNode>
>                                     ^
>     compilación terminada.
>     src/plugins/globe/CMakeFiles/globeplugin.dir/build.make:78: fallo
>     en las instrucciones para el objetivo
>     'src/plugins/globe/CMakeFiles/globeplugin.dir/globe_plugin.cpp.o'
>     make[2]: ***
>     [src/plugins/globe/CMakeFiles/globeplugin.dir/globe_plugin.cpp.o]
>     Error 1
>     CMakeFiles/Makefile2:2570: fallo en las instrucciones para el
>     objetivo 'src/plugins/globe/CMakeFiles/globeplugin.dir/all'
>     make[1]: *** [src/plugins/globe/CMakeFiles/globeplugin.dir/all]
>     Error 2
>     make[1]: *** Se espera a que terminen otras tareas....
>     -------------------------------------------------------------------
>
>     How could correct this error?, someone has the same problems with
>     osgEarth in other Linux distributions?
>
>     regards,
>
>     Samuel Mesa.
>
>     [1] https://aur.archlinux.org/packages/osgearth
>
>
>
>
> -- 
> ---
>     .~.
>    / v \
>   //    \\
>  /(      )\
>    ^`~'^
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150408/997ecac2/attachment.html>


More information about the Qgis-developer mailing list