Created
December 6, 2016 19:01
-
-
Save plevy/9398ccaabf771a8dc4296c1c4aeeaad1 to your computer and use it in GitHub Desktop.
Script to build openscenegraph and osgearth on ubuntu 16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get install git | |
| sudo apt-get install cmake | |
| sudo apt-get install cmake-gui | |
| sudo apt-get install libcairo2-dev libjasper-dev libpoppler-glib-dev libsdl2-dev libtiff5-dev libxrandr-dev libcurl4-openssl-dev libgdal-dev | |
| git clone https://github.com/openscenegraph/OpenSceneGraph.git | |
| cd OpenSceneGraph && mkdir build && cd build | |
| cmake .. | |
| make -j4 | |
| sudo make install | |
| export LD_LIBRARY_PATH=/usr/local/lib64/ | |
| wget http://www.openscenegraph.org/downloads/stable_releases/OpenSceneGraph-3.4.0/data/OpenSceneGraph-Data-3.4.0.zip | |
| unzip OpenSceneGraph-Data-3.4.0.zip | |
| cd ../../.. | |
| git clone https://github.com/gwaldron/osgearth.git | |
| cd osgearth && mkdir build && cd build | |
| cmake .. -DOSGEARTH_INSTALL_SHADERS=YES | |
| make -j4 | |
| sudo make install | |
| cd ../../.. | |
| sudo apt-get install apitrace |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
first I built everything on my own, then I tried out your receipt and followed every single step strictly. Whenever I launch "./osgearth_viewer ../../tests/openstreetmap.earth" I get the following from stderr:
FRAGMENT glCompileShader "main(fragment)" FAILED
FRAGMENT Shader "main(fragment)" infolog:
0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, 3.00 ES, 3.10 ES, and 3.20 ES
glLinkProgram 0x7fa8700867d0"osgEarth::Text" FAILED
Program "osgEarth::Text" infolog:
error: linking with uncompiled/unspecialized shader
In fact, I guess the error means that I don't have a graphic card. Do you know how to overcome that?
Greetings, F.