compileAllExamples error and segfaults in examples, cloned from github

Hi!

I’m continuing my journey getting OF to compile on Debian 9 stretch from this thread: V0.9.8 fail compiling poco

I have cloned the master branch from github, installed dependencies, downloaded libs, compiled PG, run PG on all examples (successfully).

It seems I spoke too soon, all the examples don’t seem to compile, the compileAllExamples scripts ends with this:

Compiling emptyExample for Debug
make[1]: Entering directory '/home/erik/Documents/code/openFrameworks/examples/tvOS/emptyExample'
HOST_OS=Linux
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 openssl libcurl glfw3 rtaudio libpulse-simple alsa gl glu glew gtk+-3.0 
with PKG_CONFIG_LIBDIR=
cat: obj/linux64/Debug/.compiler_flags: No such file or directory
Compiling /home/erik/Documents/code/openFrameworks/examples/tvOS/emptyExample/src/ofApp.mm
g++ -c -g3 -DDEBUG -Wall -Werror=return-type -std=c++14 -DGCC_HAS_REGEX -DOF_USING_GTK -DOF_USING_GTK  -pthread -D_REENTRANT -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/AL -I/usr/include/x86_64-linux-gnu -I/usr/include/rtaudio -I/usr/include/alsa -I/usr/include/libdrm -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/home/erik/Documents/code/openFrameworks/libs/fmodex/include -I/home/erik/Documents/code/openFrameworks/libs/glm/include -I/home/erik/Documents/code/openFrameworks/libs/glm/include/glm -I/home/erik/Documents/code/openFrameworks/libs/glm/include/glm/gtc -I/home/erik/Documents/code/openFrameworks/libs/glm/include/glm/gtx -I/home/erik/Documents/code/openFrameworks/libs/glm/include/glm/detail -I/home/erik/Documents/code/openFrameworks/libs/glm/include/glm/simd -I/home/erik/Documents/code/openFrameworks/libs/json/include -I/home/erik/Documents/code/openFrameworks/libs/kiss/include -I/home/erik/Documents/code/openFrameworks/libs/tess2/include -I/home/erik/Documents/code/openFrameworks/libs/utf8/include -I/home/erik/Documents/code/openFrameworks/libs/utf8/include/utf8 -I/home/erik/Documents/code/openFrameworks/libs/openFrameworks -I/home/erik/Documents/code/openFrameworks/libs/openFrameworks/types -I/home/erik/Documents/code/openFrameworks/libs/openFrameworks/utils -I/home/erik/Documents/code/openFrameworks/libs/openFrameworks/communication -I/home/erik/Documents/code/openFrameworks/libs/openFrameworks/gl -I/home/erik/Documents/code/openFrameworks/libs/openFrameworks/3d -I/home/erik/Documents/code/openFrameworks/libs/openFrameworks/math -I/home/erik/Documents/code/openFrameworks/libs/openFrameworks/events -I/home/erik/Documents/code/openFrameworks/libs/openFrameworks/app -I/home/erik/Documents/code/openFrameworks/libs/openFrameworks/sound -I/home/erik/Documents/code/openFrameworks/libs/openFrameworks/graphics -I/home/erik/Documents/code/openFrameworks/libs/openFrameworks/video -I/home/erik/Documents/code/openFrameworks/examples/tvOS/emptyExample/src -I/home/erik/Documents/code/openFrameworks/examples/tvOS/emptyExample/emptyExample.xcodeproj/xcshareddata -I/home/erik/Documents/code/openFrameworks/examples/tvOS/emptyExample/emptyExample.xcodeproj/xcshareddata/xcschemes -MMD -MP -MF obj/linux64/Debug/src/ofApp.d -MT obj/linux64/Debug/src/ofApp.o -o obj/linux64/Debug/src/ofApp.o -c /home/erik/Documents/code/openFrameworks/examples/tvOS/emptyExample/src/ofApp.mm
g++Compiling /home/erik/Documents/code/openFrameworks/examples/tvOS/emptyExample/src/main.mm
: error trying to exec 'cc1objplus': execvp: No such file or directory
/home/erik/Documents/code/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:241: recipe for target 'obj/linux64/Debug/src/ofApp.o' failed
make[1]: *** [obj/linux64/Debug/src/ofApp.o] Error 1
make[1]: *** Waiting for unfinished jobs....
g++ -c -g3 -DDEBUG -Wall -Werror=return-type -std=c++14 -DGCC_HAS_REGEX -DOF_USING_GTK -DOF_USING_GTK  -pthread -D_REENTRANT -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/AL -I/usr/include/x86_64-linux-gnu -I/usr/include/rtaudio -I/usr/include/alsa -I/usr/include/libdrm -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/home/erik/Documents/code/openFrameworks/libs/fmodex/include -I/home/erik/Documents/code/openFrameworks/libs/glm/include -I/home/erik/Documents/code/openFrameworks/libs/glm/include/glm -I/home/erik/Documents/code/openFrameworks/libs/glm/include/glm/gtc -I/home/erik/Documents/code/openFrameworks/libs/glm/include/glm/gtx -I/home/erik/Documents/code/openFrameworks/libs/glm/include/glm/detail -I/home/erik/Documents/code/openFrameworks/libs/glm/include/glm/simd -I/home/erik/Documents/code/openFrameworks/libs/json/include -I/home/erik/Documents/code/openFrameworks/libs/kiss/include -I/home/erik/Documents/code/openFrameworks/libs/tess2/include -I/home/erik/Documents/code/openFrameworks/libs/utf8/include -I/home/erik/Documents/code/openFrameworks/libs/utf8/include/utf8 -I/home/erik/Documents/code/openFrameworks/libs/openFrameworks -I/home/erik/Documents/code/openFrameworks/libs/openFrameworks/types -I/home/erik/Documents/code/openFrameworks/libs/openFrameworks/utils -I/home/erik/Documents/code/openFrameworks/libs/openFrameworks/communication -I/home/erik/Documents/code/openFrameworks/libs/openFrameworks/gl -I/home/erik/Documents/code/openFrameworks/libs/openFrameworks/3d -I/home/erik/Documents/code/openFrameworks/libs/openFrameworks/math -I/home/erik/Documents/code/openFrameworks/libs/openFrameworks/events -I/home/erik/Documents/code/openFrameworks/libs/openFrameworks/app -I/home/erik/Documents/code/openFrameworks/libs/openFrameworks/sound -I/home/erik/Documents/code/openFrameworks/libs/openFrameworks/graphics -I/home/erik/Documents/code/openFrameworks/libs/openFrameworks/video -I/home/erik/Documents/code/openFrameworks/examples/tvOS/emptyExample/src -I/home/erik/Documents/code/openFrameworks/examples/tvOS/emptyExample/emptyExample.xcodeproj/xcshareddata -I/home/erik/Documents/code/openFrameworks/examples/tvOS/emptyExample/emptyExample.xcodeproj/xcshareddata/xcschemes -MMD -MP -MF obj/linux64/Debug/src/main.d -MT obj/linux64/Debug/src/main.o -o obj/linux64/Debug/src/main.o -c /home/erik/Documents/code/openFrameworks/examples/tvOS/emptyExample/src/main.mm
g++: error trying to exec 'cc1objplus': execvp: No such file or directory
/home/erik/Documents/code/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:241: recipe for target 'obj/linux64/Debug/src/main.o' failed
make[1]: *** [obj/linux64/Debug/src/main.o] Error 1
make[1]: Leaving directory '/home/erik/Documents/code/openFrameworks/examples/tvOS/emptyExample'
/home/erik/Documents/code/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:141: recipe for target 'Debug' failed
make: *** [Debug] Error 2
make: Leaving directory '/home/erik/Documents/code/openFrameworks/examples/tvOS/emptyExample'
error compiling ../../examples/tvOS/emptyExample

Additionally, most of the examples that have been compiled crash with segfaults (one that is working is graphics/blendingExample) while some start, but don’t seem to work properly (3d/3DPrimitivesExample shows a GUI with text and boxes with text in them, but no actual shapes).b