Skip to content

Instantly share code, notes, and snippets.

@plevy
Created December 6, 2016 19:01
Show Gist options
  • Select an option

  • Save plevy/9398ccaabf771a8dc4296c1c4aeeaad1 to your computer and use it in GitHub Desktop.

Select an option

Save plevy/9398ccaabf771a8dc4296c1c4aeeaad1 to your computer and use it in GitHub Desktop.
Script to build openscenegraph and osgearth on ubuntu 16
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
Copy link

ghost commented Feb 7, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment