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

Port to Raspberry Pi (Zero) with Dispmanx #760

Open
hajimehoshi opened this issue Dec 21, 2018 · 10 comments
Open

Port to Raspberry Pi (Zero) with Dispmanx #760

hajimehoshi opened this issue Dec 21, 2018 · 10 comments

Comments

@hajimehoshi
Copy link
Owner

Probably improving performance would be challenging

@hajimehoshi hajimehoshi changed the title Test Raspberry Pi Test Raspberry Pi (Zero) Dec 21, 2018
@hajimehoshi hajimehoshi added this to the v1.10.0 milestone Dec 31, 2018
@hajimehoshi hajimehoshi changed the title Test Raspberry Pi (Zero) Port to Raspberry Pi (Zero) with Dispman Mar 23, 2019
@hajimehoshi hajimehoshi changed the title Port to Raspberry Pi (Zero) with Dispman Port to Raspberry Pi (Zero) with Dispmanx Mar 23, 2019
@hajimehoshi
Copy link
Owner Author

Ugh, I'm now quite busy to do this. Let me defer this.

@hajimehoshi hajimehoshi removed this from the v1.10.0 milestone Jul 4, 2019
@hajimehoshi
Copy link
Owner Author

@hajimehoshi
Copy link
Owner Author

Would OpenGL ES work Raspberry Pi Zero W? It's worth investigating...

@rytrose
Copy link

rytrose commented Jan 25, 2021

Hi! I believe this thread answers my question, but is ebiten able to run on a Pi Zero W? (I think the answer is no, or maybe not yet?)

@hajimehoshi
Copy link
Owner Author

I think yes with OpenGL, but not very efficiently.

@rytrose
Copy link

rytrose commented Jan 25, 2021

Hm, okay. Are there any more instructions about setting up ebiten for Raspberry Pi? I followed the Install > Linux > Debian / Ubuntu instructions, but all ebiten programs (examples and my own) fail with the following:

$ libGL error: No matching fbConfigs or visuals found
$ libGL error: failed to load driver: swrast

I've tried on both a Pi Zero W and a Pi 4B.

If there's a better place to direct this question, please let me know! Thanks for any help you can provide, and for the great library!

@hajimehoshi
Copy link
Owner Author

That's odd. At least, Ebiten should work with Raspberry Pi 4. @gravestench do you have any insights?

@gravestench
Copy link

@hajimehoshi I'm not sure, last I tested with pi4 and I did not see issues like these. @rytrose My only hunch is that maybe golang from package manager is old, you may want to install prebuilt golang for arm64 from the golang web site (i think current version is 1.15.7). Otherwise, build+install from source. Again, just a hunch, and i don't have my pi4 handy for testing any of this.

@Ryan-Rose-Bose
Copy link

Ryan-Rose-Bose commented Jan 29, 2021

After digging into it a bit, I'm fairly confident it was user error 🙃. I was trying to first use X11 forwarding over SSH and didn't realize the implications of OpenGL and that process, and then I had the same issue when first using an HDMI display, but that resolved itself on reboot.

@hajimehoshi
Copy link
Owner Author

https://www.raspberrypi.org/forums/viewtopic.php?t=148656

We might have to use OpenGL ES instead of OpenGL?

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

No branches or pull requests

4 participants