jvcleave / ofxRPI4Window

This is an openFrameworks addon for the Raspberry Pi to allow rendering without X
21 stars 3 forks source link

can't compile examples #10

Open vanbalen opened 2 years ago

vanbalen commented 2 years ago

I was trying to use this add-on to fix issues with running oF apps and examples on Rpi4 but I'm getting errors. This is all a bit in the deep end for me so I'm just pasting the whole error, in case that's helpful.

`~:~/oF112/addons/ofxRPI4Window/example-billboard $ sudo make Compiling OF library for Release make[1]: Entering directory '/home/pi/oF112/libs/openFrameworksCompiled/project' Done! make[1]: Leaving directory '/home/pi/oF112/libs/openFrameworksCompiled/project'

Compiling example-billboard for Release make[1]: Entering directory '/home/pi/oF112/addons/ofxRPI4Window/example-billboard' Compiling /home/pi/oF112/addons/ofxRPI4Window/example-billboard/src/main.cpp g++ -c -O3 -DNDEBUG -Wall -Werror=return-type -DGCC_HAS_REGEX -march=armv6 -mfpu=vfp -mfloat-abi=hard -fPIC -ftree-vectorize -Wno-psabi -pipe -DOF_USING_GTK -DOF_USING_MPG123 -DTARGET_RASPBERRY_PI -DSTANDALONE -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DSTDC_CONSTANT_MACROS -DSTDC_LIMIT_MACROS -DTARGET_POSIX -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -DUSE_EXTERNAL_OMX -DHAVE_LIBBCM_HOST -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_VCHIQ_ARM -I/usr/include/libdrm -Wno-unused-variable -Wno-unused-value -Wno-unused-function -Wno-class-memaccess -Wall -Werror=return-type -std=c++14 -DGCC_HAS_REGEX -I/opt/vc/include -I/opt/vc/include/IL -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -pthread -D_REENTRANT -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/orc-0.4 -I/usr/include/gstreamer-1.0 -I/usr/include/AL -I/usr/include/arm-linux-gnueabihf -I/usr/include/rtaudio -I/usr/include/alsa -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/arm-linux-gnueabihf/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/fribidi -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/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/home/pi/oF112/libs/glm/include -I/home/pi/oF112/libs/glm/include/glm -I/home/pi/oF112/libs/glm/include/glm/detail -I/home/pi/oF112/libs/glm/include/glm/gtc -I/home/pi/oF112/libs/glm/include/glm/ext -I/home/pi/oF112/libs/glm/include/glm/gtx -I/home/pi/oF112/libs/glm/include/glm/simd -I/home/pi/oF112/libs/json/include -I/home/pi/oF112/libs/kiss/include -I/home/pi/oF112/libs/tess2/include -I/home/pi/oF112/libs/utf8/include -I/home/pi/oF112/libs/utf8/include/utf8 -I/home/pi/oF112/libs/openFrameworks -I/home/pi/oF112/libs/openFrameworks/app -I/home/pi/oF112/libs/openFrameworks/types -I/home/pi/oF112/libs/openFrameworks/utils -I/home/pi/oF112/libs/openFrameworks/math -I/home/pi/oF112/libs/openFrameworks/3d -I/home/pi/oF112/libs/openFrameworks/graphics -I/home/pi/oF112/libs/openFrameworks/gl -I/home/pi/oF112/libs/openFrameworks/communication -I/home/pi/oF112/libs/openFrameworks/events -I/home/pi/oF112/libs/openFrameworks/sound -I/home/pi/oF112/libs/openFrameworks/video -pthread -D_REENTRANT -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/orc-0.4 -I/usr/include/gstreamer-1.0 -I/usr/include/AL -I/usr/include/arm-linux-gnueabihf -I/usr/include/rtaudio -I/usr/include/alsa -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/arm-linux-gnueabihf/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/fribidi -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/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/home/pi/oF112/addons/ofxRPI4Window/example-billboard/src -I/home/pi/oF112/addons/ofxRPI4Window/src -Isrc -I/home/pi/oF112/addons/ofxAssimpModelLoader/src -MMD -MP -MF obj/linuxarmv6l/Release/src/main.d -MT obj/linuxarmv6l/Release/src/main.o -o obj/linuxarmv6l/Release/src/main.o -c /home/pi/oF112/addons/ofxRPI4Window/example-billboard/src/main.cpp In file included from /home/pi/oF112/addons/ofxRPI4Window/example-billboard/src/main.cpp:3: /home/pi/oF112/addons/ofxRPI4Window/src/ofxRPI4Window.h:18:10: fatal error: gbm.h: No such file or directory

include

      ^~~~~~~

compilation terminated. make[1]: [/home/pi/oF112/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:217: obj/linuxarmv6l/Release/src/main.o] Error 1 make[1]: Leaving directory '/home/pi/oF112/addons/ofxRPI4Window/example-billboard' make: [/home/pi/oF112/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:129: Release] Error 2`

jvcleave commented 2 years ago

Looks like you need to install gbm. run this command

sudo apt-get install libgbm-dev