RockPi installation of OF 0.10.1

#1

Hi there!
I am trying to compile OF on a RockPi (http://rockpi.org/)
I am using their Ubuntu server distro (https://dl.radxa.com/rockpi/images/ubuntu/rockpi4b-ubuntu-bionic-minimal-20190104_2101-gpt.img.gz)
Downloaded armv7 version of OF (https://openframeworks.cc/versions/v0.10.1/of_v0.10.1_linuxarmv7l_release.tar.gz)
Installed Ubuntu dependecies using the script but upgrade g++ and gcc to 5.0 and had to install all libboost because it couldn’t find 1.55
Had an error when moving to gcc and g++ 5.0 but doesn’t look that bad:

detected ubuntu default gcc too old for compatibility with c++11
OF needs at least -5.0 as default compiler, we can install this now
or you will need to setup this manually before compiling
Do you want to set gcc/g++ -5.0 as default now? [Y/n] Y
setting gcc--5.0 as default compiler
update-alternatives: error: alternative path /usr/bin/gcc-5.0 doesn't exist
update-alternatives: error: alternative path /usr/bin/g++-5.0 doesn't exist

When trying to compile the polygonExample, using make, it wasn’t recognicing the arch so i forced it:

PLATFORM_ARCH=armv7l

at line 63 of

/of_v0.10.1_linuxarmv7l_release/libs/openFrameworksCompiled/project/makefileCommon/config.shared.mk 

Then I have this error:

HOST_OS=Linux
PLATFORM_ARCH=armv7l
PLATFORM_OS=Linux
HOST_ARCH=aarch64
HOST_OS=Linux
CROSS_COMPILING=0
PLATFORM_VARIANT=default
IS_RASPBIAN=
checking pkg-config libraries:   cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal libcurl glfw3 rtaudio gtk+-3.0 libmpg123 glesv1_cm glesv2 egl 
with PKG_CONFIG_LIBDIR=
Package glesv1_cm was not found in the pkg-config search path.
Perhaps you should add the directory containing `glesv1_cm.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glesv1_cm' found
Package glesv1_cm was not found in the pkg-config search path.
Perhaps you should add the directory containing `glesv1_cm.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glesv1_cm' found
/home/rock/of_v0.10.1_linuxarmv7l_release/libs/openFrameworksCompiled/project/makefileCommon/config.shared.mk:293: *** couldn't find glesv1_cm pkg-config package or it's dependencies, did you run the latest install_dependencies.sh?.  Stop.

Tried to install manually glesv1_cm.pc but I can’t find any package for that :frowning:

I am afraid it has to do with the graphic output, headless configuration and so:

but if anybody has any idea, I would really appreciate it.

Edit: I just found this:

https://forum.openframeworks.cc/t/compile-of-on-ubuntu-18-04/32981/6

I assume is a similar issue, though diff. hw

#2

Not much luck jumping to Armbian. Everything ends more or less the same when trying to compile the example:

Package glesv1_cm was not found in the pkg-config search path.
Perhaps you should add the directory containing `glesv1_cm.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glesv1_cm' found

Just updating the info…