Thank you to everyone who pointed out the errors in my walkthrough. I do not seem to have an ability to edit my original post, so I am re-posting below with mistakes
that I noted. If there is anything else wrong here, let me know and I will re-edit accordingly.
I received a few requests about how I went about running openCPN
with HW accelaration on the cubieboard2. The thread contains most of the information, but it might be useful to have it all in a single
place specific to the CB2. Below are notes that I took of the process. I mostly recorded this as I went along, but some of it was written down after-the-fact: if something is unclear, let me know and I can try to fill in the details.
I own a cubieboard2: I am not sure if the cubietruck is exactly the same, but hopefully enough is common that this still works for you.
-- Start with a fresh install of the desktop
version of cubian on an SD card, from here:
-- The stock cubian image has a small amount of free space on the root filesystem. You need to follow the instructions here to expand (I just told it to use the entire amount of my 16GB card):
-- Install some additional packages:
$ sudo apt-get install mesa-utils build-essential git cmake libx11-dev
-- Download the forked version of the glshim:
$ git clone https://github.com/seandepagnier/glshim.git
-- Build glshim library and copy the results to a suitable location:
$ cd ../../glshim
$ cmake .
$ make GL
$ sudo cp glshim/lib/libGL.so.1 /usr/local/lib/
$ sudo cp -r glshim/include/GLES/ /usr/local/include/
-- Install some additional packages to build OpenCPN
$ sudo apt-get install libgtk2.0-dev gettext git-core cmake gpsd gpsd-clients libgps-dev build-essential wx-common libwxgtk2.8-dev libglu1-mesa-dev libgtk2.0-dev wx2.8-headers libbz2-dev libtinyxml-dev libportaudio2 portaudio19-dev
-- Build and install glues from source:
$ git clone https://github.com/ssvb/glues.git
$ cd glues
$ cmake .
$ sudo cp libGLU.so.1 /usr/local/lib
-- Build an OpenCPN .deb package from source, then install the package:
$ git clone git://github.com/OpenCPN/OpenCPN.git
$ cd OpenCPN/
$ mkdir build
$ cd build
$ cmake ../
$ make install
-- Within OpenCPN, enable opengl, texture compression
, and the texture compression
cache. Then rebuild
the chart database (took a long time on my cubieboard2).