waqarrashid33
Posts: 2
Joined: Thu Jun 30, 2016 3:20 pm

openframeworks example not running on OpenGL driver

Thu Jun 15, 2017 4:24 pm

Hello,
I am trying to run the openframeworks examples on raspberry pi. After a few modifications I made them work when the opengl legacy driver was selected. After that, I tried to run them after enabling opengl experimental driver but they won't run. Following the error messages when I try to run these examples using the two experimental drivers:

1. G1 GL (Full KMS): OpenGL desktop driver with full KMS

Code: Select all

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 gtk+-3.0 
[ error ] ofAppEGLWindow: getScreenSize(): tried to get display size but failed
[notice ] ofAppEGLWindow: setupRPiNativeWindow(): screenRect: 0x0
[notice ] ofAppEGLWindow: setupRPiNativeWindow(): windowRect: 0x0
[ error ] ofAppEGLWindow: setupRPiNativeWindow(): dispman_element == DISPMANX_INVALID
[warning] ofAppEGLWindow: getNativeDisplay(): window not initialized, returning NULL
[warning] ofAppEGLWindow: getNativeDisplay(): window not initialized, returning NULL
[notice ] ofAppEGLWindow: createSurface(): setting up EGL Display
* failed to add service - already in use?
/home/pi/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:176: recipe for target 'RunRelease' failed
make: *** [RunRelease] Error 1
2. G2 GL (Fake KMS): OpenGL desktop driver with fake KMS

Code: Select all

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 gtk+-3.0 
[notice ] ofAppEGLWindow: setupRPiNativeWindow(): screenRect: 1280x1024
[notice ] ofAppEGLWindow: setupRPiNativeWindow(): windowRect: 1024x768
[notice ] ofAppEGLWindow: createSurface(): setting up EGL Display
* failed to add service - already in use?
/home/pi/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:176: recipe for target 'RunRelease' failed
make: *** [RunRelease] Error 1

TaoHawaii
Posts: 6
Joined: Thu Aug 04, 2016 6:25 pm

Re: openframeworks example not running on OpenGL driver

Fri Mar 02, 2018 10:51 am

I have the same issue with OpenVG and also the examples in /opt/vc. When the either OpenGL driver is enabled I receive the "Failed to add service" message. Super frustrating...

Return to “OpenGLES”

Who is online

Users browsing this forum: No registered users and 3 guests