Saturday, February 22, 2014

openFrameworks / sunxi MFB Update 3 (was pcDuino MFB)

These instructions are for installing the latest copy of openFrameworks for sunxi using the mali framebuffer and rather than X-windows. I used to call this pcDuino MFB but it was suggested to me that as it should run on any of the Allwinner SoCs that I change it to sunxi.

The instructions assume you are running Ubuntu and are in an ssh session and not on the console.

Make sure to read the post about changing debug levels for the mali and ump drivers or you will not get very good performance.

Install git

sudo apt-get install git

Setup your sunxi SoC system to use the Mali Framebuffer

git clone
cd sunxi-mali
git submodule init
git submodule update
make config VERSION=r3p0 ABI=armhf EGL_TYPE=framebuffer
sudo make install
make test
sudo stop lightdm
sudo ./test/test

At this point you should see something that looks like this:


Setup openFrameworks

git clone
cd openFrameworks

Install Dependencies

sudo apt-get install libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libasound2-dev libxmu-dev libxxf86vm-dev g++ libraw1394-dev libudev-dev gstreamer0.10-ffmpeg libopenal-dev libsndfile-dev libfreeimage-dev libcairo2-dev libgtk2.0-dev python-lxml python-argparse libfreetype6-dev portaudio19-dev libssl-dev libpulse-dev

Install Codecs

sudo apt-get install libmpg123-dev gstreamer0.10-plugins-ugly

Compile and run the pcDuino Hello World Program

cd ./apps/devApps/pcDuino_hello_world_gles2/
make PLATFORM_VARIANT=sunximfb
sudo ./bin/pcDuino_hello_world_gles2

At this point you should see a spinning pcDuino board on a yellow background.

If you have any questions or something doesn't work please leave a comment.


Alvin said...

We forward this post to our learning center.

Makio135 said...

Thanks for posting your process. Works perfectly!