-
-
Notifications
You must be signed in to change notification settings - Fork 350
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
Support for GL (Full KMS) or GL (Fake KMS) on RaspberryPi #135
Comments
What version of GlslViewer are you running? It's compiled by source? are you in master? |
This result came from GlslViewer version 1.5, which I installed via
I also tried building it from source, but make threw an error - seemed to be unhappy about the use of abs in main.cpp, if I remember correctly... I can post the output in a second. |
Seams you are running an old version. I have to get in touch w the people of Raspbian. In the mid time I can help you to compile by source. Just send me the error message. |
Amazing, thank you! Here's what I get in the console after cloning the repo and running make in ~/glslViewer:
Edit: as you can see, turns out the issue was in sandbox.cpp, not main.cpp. |
Oh wow... that's weird... |
Yes, it does seem strange. I'm afraid that even after Not sure if it's a clue, but I see that it's complaining that
|
I looked into this a bit more, and the issue seems to be with the GL driver, as set in |
@patriciogonzalezvivo Will there be support for GL (Full KMS) or GL (Fake KMS) ? |
Not for the moment. |
https://www.raspberrypi.org/forums/viewtopic.php?t=222264 Just leaving this thread in case it helps at all. |
I just finish implementing a GBM/DRM for raspberry pi, wonder if this issue is solve by compiling the lastest master version using:
More information here: https://github.com/patriciogonzalezvivo/glslViewer/wiki/Compiling-GlslViewer |
@evanmtp do you mind confirming that this solve the issue? I would like to close it |
I would love to, but unfortunately don't have access to my Pi at the moment. Next time I have it on hand, I'll give it a try. Thanks for the patch! |
I'm putting a Pi Zero through the paces. I can so far confirm that I got the |
I tried compiling and running on a Raspberry Pi 3B+ with GL (Fake KMS) OpenGL. I compiled via
I noticed that the makefile defines |
I think you forgot to read this and make sure on your
|
I did add this to |
By reading your last message seams you are trying to run GlslViewer from a X11 windows manager. is that right? |
Well yes, but isn't X11 the default window manager on raspberry pi? I'm using the default setup from raspbian, which is LXDE+OpenBox+X11 from what I've read. All I changed was graphics driver to vc4-fkms-v3d (Fake KMS graphics driver). |
There is two ways to compile GlslViewer for Raspberry Pi. For X11 or with out X11. The first one use GLFW drivers. That libs takes care of everything. For non-X11 there is legacy (pre RaspberryPi 4 or legacy) both ways runs GlslViewer directly from the console. If X11 is running that produce the error message you were describing. Here you can find more documentation about it: https://github.com/patriciogonzalezvivo/glslViewer/wiki/Compiling I'm going to close this issue. I have tried it on Rpi4 and Rpi3 with and without X11 and the three versions seams to compile and work correctly. If you have other issues or questions you can open this issue again or create a new one. All the best! Patricio |
Hi! Apologies for opening up an old issue. I recently tried all the compilation methods on my Rpi 4 and I get the same error as above. Any help would be greatly appreciated.
|
Hi @VinaiRachakonda, do you mind sharing a bit of context? Like:
Thanks |
I am on a Raspberry Pi 4 with Raspbian GNU/Linux 10 installed. I am running glslViewer from the console directly with the fake kms driver installed. I am not quite sure how to use glslViewer from a window manager. |
Hi just wanted to update this. I read this issue #198 and I better understand the terms. I currently compiled with fakekms drivers and now ran glslViewer in headless mode. Now when I try to run the ./bin/ I get the following
In fact, when I compile with glfw and run with X11 I get the same error as well. Any ideas on what to do? I have added all necessary config variables per the compilation instructions. Thank you for your time! |
For reference, I am running glslViewer with the Openframe project |
When attempting to run glslViewer on a Raspberry Pi 3 B+ running Raspbian 9 (stretch), it throws the following error:
At least one other user experienced this issue back in 2017, as reported here: https://www.raspberrypi.org/forums/viewtopic.php?t=179373
The text was updated successfully, but these errors were encountered: