Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't compile examples #10

Open
vanbalen opened this issue Oct 4, 2022 · 1 comment
Open

can't compile examples #10

vanbalen opened this issue Oct 4, 2022 · 1 comment

Comments

@vanbalen
Copy link

vanbalen commented Oct 4, 2022

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 -D__STDC_CONSTANT_MACROS -D__STDC_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 <gbm.h>
^~~~~~~
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
Copy link
Owner

jvcleave commented Oct 4, 2022

Looks like you need to install gbm. run this command

sudo apt-get install libgbm-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants