Wednesday, June 19, 2013

openFrameworks / pcDuino

After a couple of months of on and off again work building on what was started by bakercp and others I have had some success in getting openFrameworks running on the pcDuino.

I am able to compile the openFrameworks library, compile openFrameworks programs and run them.

With the steps below you should be able to compile a pcDuino Hello World application similar to the one for the Raspberry Pi.

Setup the pcDuino to use Mali Framebuffer

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


At this point you should see something that looks like this

MaliTestTraiangle

Setup openFrameworks

git clone https://github.com/digitalhack/RaspberryPi-openFrameworks.git
cd RaspberryPi-openFrameWorks
cd scripts/linux/ubuntu_pcduino/
sudo install_dependancies.sh
sudo install_codecs.sh
sudo install_poco_libraries.sh


Compile and run the pcDuino Hello World Program

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


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

pcDhw
I haven't had time for much testing. Besides the Hello World program I have successfully tested several of the examples. I hope to have some time for more testing over the next couple of days.

2 comments:

Unknown said...

Three scripts are gone in guthub. Any advice?

sudo install_dependancies.sh
sudo install_codecs.sh
sudo install_poco_libraries.sh

digitalhack said...

Jingfeng Liu,

Sorry, it looks like a made a mistake. You need to cd scripts/linux/ubuntu_pcduino/.

I have updated the post. Try it now.

digitalhack