Error building 0.11 examples on Raspberry Pi - Patchbox OS (Stretch) - cannot find -lGLESv1_CM

Hi there,

I’m using the Patchbox OS which is a modified stretch distribution and whilst trying to build OpenFrameworks examples I get the error below.

I’m using the Patchbox distribution as it provides loads of assistance with audio that I wasn’t able to sort out with Buster, although on Buster I was able to compile OpenFrameworks projects. I want to stick with Patchbox if possible.

The error states “cannot find -lGLESv1_CM”

Any help and advice would be great. Thanks!!

Linking bin/colorExample for linuxarmv6l
g++ -o bin/colorExample  obj/linuxarmv6l/Release/src/ofApp.o obj/linuxarmv6l/Release/src/main.o   /home/patch/openFrameworks/libs/openFrameworksCompiled/lib/linuxarmv6l/libopenFrameworks.a   -Wl,-rpath=./libs:./bin/libs -Wl,--as-needed -Wl,--gc-sections -pthread -latomic -L/opt/vc/lib /home/patch/openFrameworks/libs/kiss/lib/linuxarmv6l/libkiss.a /home/patch/openFrameworks/libs/tess2/lib/linuxarmv6l/libtess2.a   -lz -lgstapp-1.0 -lgstvideo-1.0 -lgstbase-1.0 -lgstreamer-1.0 -ludev -lfontconfig -lfreetype -lsndfile -lopenal -lcurl -lglfw -lrtaudio -lasound -lpulse-simple -lpulse -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lGLEW -lGLU -lGL -lfreeimage -lboost_filesystem -lboost_system -lpugixml -luriparser -lXinerama -lglfw -lGLESv2 -lGLESv1_CM -lEGL -lopenmaxil -lbcm_host -lvcos -lvchiq_arm -lpcre -lrt -lX11 -ldl
/usr/bin/ld: cannot find -lGLESv1_CM
collect2: error: ld returned 1 exit status

This fixed it for me:

sudo apt-get install libegl1-mesa-dev libgles1-mesa-dev libgles2-mesa-dev