{"id":147,"date":"2010-12-01T14:00:03","date_gmt":"2010-12-01T13:00:03","guid":{"rendered":"https:\/\/www.opengis.ch\/?p=147"},"modified":"2020-04-29T16:08:00","modified_gmt":"2020-04-29T14:08:00","slug":"qgis-globe-plugin-installer-script","status":"publish","type":"post","link":"https:\/\/www.opengis.ch\/it\/2010\/12\/01\/qgis-globe-plugin-installer-script\/","title":{"rendered":"QGis Globe Plugin installer script"},"content":{"rendered":"<p>Lately, thanks to ma Master Thesis, I&#8217;ve been co-working on the Globe Plugin for <a href=\"https:\/\/www.qgis.org\">QGis<\/a><br \/>\nhere my install script for a threaded version of QGis with the Globe Plugin. By now the Globe has stereo 3D support, keyboard navigation (try all the num key), mouse navigation, a gui to control the globe and datasets can be inported configuring the .earth file. Today I&#8217;ll start implementing a dialog to add data without the need of the .earth file.<br \/>\ncheers Marco<br \/>\nUPDATE: the script is now updated to use the new mutex trunk branch and tested on ubuntu natty<br \/>\nUPDATE2: The script now uses the trunk repository of QGIS so it is actually not that usefull anymore since getting globe is just matter of compiling QGIS from source. I&#8217;ll leave it here for reference and &#8220;historic glory&#8221; \ud83d\ude09<br \/>\nUPDATE3: Globe runs on WIN https:\/\/www.opengis.ch\/2011\/08\/02\/qgis-globe-runs-on-win\/<br \/>\n<code>#!\/bin\/sh<br \/>\n#<br \/>\nset -e<br \/>\n#############################<br \/>\n#######CONFIGURE HERE########<br \/>\n#############################<br \/>\nROOT_DIR=~\/globe<br \/>\nSRC_DIR_NAME=qgis<br \/>\nSRC_DIR=$ROOT_DIR\/$SRC_DIR_NAME<br \/>\nBUILD_DIR=$SRC_DIR\/build<br \/>\nINSTALL_DIR=~\/apps<br \/>\nGRASS_PREFIX=\/usr\/lib\/grass64\/lib<br \/>\n#<br \/>\nREPO='git:\/\/github.com\/qgis\/Quantum-GIS.git'<br \/>\nDEV_REPO='git@github.com:YOURREPO\/Quantum-GIS.git'<br \/>\n#<br \/>\n#############################<br \/>\n#######END CONFIGURE#########<br \/>\n#############################<br \/>\n#<br \/>\necho \"Downloading src to: \" $SRC_DIR<br \/>\necho \"Building src to: \" $BUILD_DIR<br \/>\necho \"Installing to: \" $INSTALL_DIR<br \/>\n#<br \/>\nCONTINUE=n<br \/>\necho \"OK? [y, n*]:\"<br \/>\nread CONTINUE<br \/>\nCONTINUE=$(echo $CONTINUE | tr \"[:lower:]\" \"[:upper:]\")<br \/>\nif [ \"$CONTINUE\" = \"Y\" ]; then<br \/>\ncontinue<br \/>\nelse<br \/>\necho \"Abort\"<br \/>\nexit<br \/>\nfi<br \/>\n#<br \/>\n#add qgis repo needed to satisfy all dependences, we only compile qgis<br \/>\nsudo add-apt-repository ppa:ubuntugis\/ubuntugis-unstable\/<br \/>\nsudo apt-get update<br \/>\nsudo apt-get build-dep qgis<br \/>\nsudo apt-get install cmake-curses-gui cmake-qt-gui gdal-bin libgdal1-1.8.0-grass txt2tags python-gdal git osgearth osgearth-dev openscenegraph<br \/>\n#<br \/>\n#get the source<br \/>\nmkdir -p $ROOT_DIR<br \/>\ncd $ROOT_DIR<br \/>\n#<br \/>\nDEV=n<br \/>\necho \"Do you have write acces to the repo (have SSH key to it)? [y, n*]:\"<br \/>\nread DEV<br \/>\nDEV=$(echo $DEV | tr \"[:lower:]\" \"[:upper:]\")<br \/>\nif [ \"$DEV\" = \"Y\" ]; then<br \/>\necho \"cloning $DEV_REPO\"<br \/>\ngit clone $DEV_REPO $SRC_DIR_NAME<br \/>\nelse<br \/>\necho \"cloning $REPO\"<br \/>\ngit clone $REPO $SRC_DIR_NAME<br \/>\nfi<br \/>\n#<br \/>\ncd $SRC_DIR<br \/>\ngit checkout master<br \/>\n#<br \/>\nmkdir -p $INSTALL_DIR<br \/>\nmkdir -p $BUILD_DIR<br \/>\ncd $BUILD_DIR<br \/>\nccmake -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR -DGRASS_PREFIX=$GRASS_PREFIX -DCMAKE_BUILD_TYPE=Release -DWITH_GLOBE=ON ..<br \/>\n#<br \/>\n#detect cpu cores<br \/>\nCORES=$(cat \/proc\/cpuinfo | grep processor | wc -l)<br \/>\nmake -j$CORES install<br \/>\n#<br \/>\n#run qgis<br \/>\n#In some case you might need this 2 lines:<br \/>\n#see https:\/\/code.google.com\/p\/modwsgi\/wiki\/InstallationIssues for details<br \/>\n#LD_PRELOAD=\/usr\/lib\/x86_64-linux-gnu\/libutil.so #use locate libutil to find the path<br \/>\n#export LD_PRELOAD<br \/>\n$INSTALL_DIR\/bin\/qgis<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lately, thanks to ma Master Thesis, I&#8217;ve been co-working on the Globe Plugin for QGis here my install script for a threaded version of QGis with the Globe Plugin. By now the Globe has stereo 3D support, keyboard navigation (try all the num key), mouse navigation, a gui to control [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_themeisle_gutenberg_block_has_review":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[31,6,8,15],"tags":[80,125],"class_list":["post-147","post","type-post","status-publish","format-standard","hentry","category-cpp","category-gis","category-master-thesis","category-qgis","tag-qgis-globe","tag-qgis-org"],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":243,"url":"https:\/\/www.opengis.ch\/it\/2011\/07\/06\/globe-is-in-qgis-trunk\/","url_meta":{"origin":147,"position":0},"title":"Globe is in QGIS Trunk","author":"Marco Bernasocchi","date":"6 Luglio 2011","format":false,"excerpt":"Last night Pirmin committed our Globe plugin to the QGIS trunk. this means that getting the needed dependencies (see below), building QGIS with -DWITH_GLOBE=ON and activating the plugin its all it takes to get a super globe running on QGIS. Dependencies: sudo apt-get install osgearth osgearth-dev openscenegraph (should be enough)\u2026","rel":"","context":"In &quot;C++&quot;","block_context":{"text":"C++","link":"https:\/\/www.opengis.ch\/it\/category\/programming\/cpp\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":191,"url":"https:\/\/www.opengis.ch\/it\/2011\/05\/13\/qgis-globe-runs-in-trunk\/","url_meta":{"origin":147,"position":1},"title":"QGIS Globe runs in Trunk","author":"Marco Bernasocchi","date":"13 Maggio 2011","format":false,"excerpt":"Thanks to Marco Hugentobler's idea of using Mutex, QGIS Globe now runs in Trunk, i just created a dev branch at https:\/\/github.com\/mbernasocchi\/Quantum-GIS\/tree\/mutex-globe and updated the installer script at https:\/\/www.opengis.ch\/2010\/12\/01\/qgis-globe-plugin-installer-script\/ (I haven't tried it yet but it should work) Cheers Marco","rel":"","context":"In &quot;C++&quot;","block_context":{"text":"C++","link":"https:\/\/www.opengis.ch\/it\/category\/programming\/cpp\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":432,"url":"https:\/\/www.opengis.ch\/it\/2012\/03\/30\/qgis-multiview-and-globe-screenshots\/","url_meta":{"origin":147,"position":2},"title":"QGIS Multiview and globe screenshots","author":"Marco Bernasocchi","date":"30 Marzo 2012","format":false,"excerpt":"This screenshots have been created using the QGIS with the following plugins: Multitemporal and multivariate data visualisation (https:\/\/hub.qgis.org\/projects\/multiview) Scttergram identify (https:\/\/hub.qgis.org\/projects\/scattergramdentify Globe Plugin","rel":"","context":"In &quot;GIS&quot;","block_context":{"text":"GIS","link":"https:\/\/www.opengis.ch\/it\/category\/gis\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":262,"url":"https:\/\/www.opengis.ch\/it\/2011\/08\/02\/qgis-globe-runs-on-win\/","url_meta":{"origin":147,"position":3},"title":"QGIS Globe runs on Win","author":"Marco Bernasocchi","date":"2 Agosto 2011","format":false,"excerpt":"I just set up a win xp virtual box (remember to enable 3D acceleration) and to test out globe on windows. here what I did: Get OSGeo4W installer and run it Choose advanced install Select qgis-dev, osgearth-bin, osg-bin from the desktop packages Select osgeart-dev, osg-dev from libs Run Open Qgis,\u2026","rel":"","context":"In &quot;C++&quot;","block_context":{"text":"C++","link":"https:\/\/www.opengis.ch\/it\/category\/programming\/cpp\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":840,"url":"https:\/\/www.opengis.ch\/it\/2013\/01\/23\/qgis-globe-works-again\/","url_meta":{"origin":147,"position":4},"title":"QGIS Globe works again","author":"Marco Bernasocchi","date":"23 Gennaio 2013","format":false,"excerpt":"Just stumbled upon this post by Pirmin, and he says Globe has been fixed. Cool, thanks Pirmin and Regione Umbria for sponsoring his work! And here a demo of what the guys at Oslandia do with it: PostGIS 3D demo from Oslandia on Vimeo.","rel":"","context":"In &quot;QGIS Plugins&quot;","block_context":{"text":"QGIS Plugins","link":"https:\/\/www.opengis.ch\/it\/category\/gis\/qgis\/qgis-plugins\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":154,"url":"https:\/\/www.opengis.ch\/it\/2010\/12\/06\/qgis-plugins-starter-plugin\/","url_meta":{"origin":147,"position":5},"title":"Qgis plugins starter plugin","author":"Marco Bernasocchi","date":"6 Dicembre 2010","format":false,"excerpt":"Today I published my first QGis Python plugin. It does allow to configure a list of available plugins actions to execute in one click. It is published in pyqgis contributed repository and the source is developed on My GitHub Cheers Marco","rel":"","context":"In &quot;GIS&quot;","block_context":{"text":"GIS","link":"https:\/\/www.opengis.ch\/it\/category\/gis\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_shortlink":"https:\/\/wp.me\/pbdBtI-2n","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.opengis.ch\/it\/wp-json\/wp\/v2\/posts\/147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.opengis.ch\/it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.opengis.ch\/it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.opengis.ch\/it\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.opengis.ch\/it\/wp-json\/wp\/v2\/comments?post=147"}],"version-history":[{"count":1,"href":"https:\/\/www.opengis.ch\/it\/wp-json\/wp\/v2\/posts\/147\/revisions"}],"predecessor-version":[{"id":11232,"href":"https:\/\/www.opengis.ch\/it\/wp-json\/wp\/v2\/posts\/147\/revisions\/11232"}],"wp:attachment":[{"href":"https:\/\/www.opengis.ch\/it\/wp-json\/wp\/v2\/media?parent=147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.opengis.ch\/it\/wp-json\/wp\/v2\/categories?post=147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.opengis.ch\/it\/wp-json\/wp\/v2\/tags?post=147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}