![]() |
|
Using Allegro with Xwayland on an imx6 platform |
thejefty
Member #23,737
February 2023
|
We're having a problem getting a new Allegro project up and running on an IMX6 SMARC board. It seems like this should work and there's something obvious that we've missed, but I can't figure it out. |
Edgar Reynaldo
Major Reynaldo
May 2007
![]() |
Ask someone who knows more, but I don't think there is a wayland driver yet.... My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
thejefty
Member #23,737
February 2023
|
But it should work using Xwayland, right? Seems to on an X86 platform. |
Edgar Reynaldo
Major Reynaldo
May 2007
![]() |
Not being able to set a graphics mode is a fatal failure. I don't know anything about XWayland. Is it based on X11? Sounds like it should run, but I don't know. Also, that sounds like an Allegro 4 error message. Does al_init succeed? My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
thejefty
Member #23,737
February 2023
|
It's definitely in Allegro5. al_init() succeeds. It's al_create_display() that was failing. And still is, but differently. I've actually made a bit of progress, though I'm not entirely sure how. The original issue might have been that xwayland wasn't started properly. Now it's actually seg-faulting in fill_in_info_struct() because the GL_RENDERER passed in is empty. Should be Vivante GC2000, but it's not yet clear to me how it's supposed to be set. Edit: More accurately, glGetString is returning null when passed GL_RENDERER |
dthompson
Member #5,749
April 2005
![]() |
Hah, so I'm seeing a few possible red flags here. By nature, Yocto images are liable to exclude stuff you'd normally take for granted; that could involve any number of missing dependencies. A few things it'd be worth checking:
______________________________________________________ |
thejefty
Member #23,737
February 2023
|
I definitely suspect it's a Yocto missing some dependency problem. Question is what? And I'm kind of surprised cmake didn't catch it, but I guess there are run time things not needed for the build. We've tried a full Ubuntu build and could get allegro to run, but we couldn't get graphics acceleration that way, which is why we turned to the manufacturer's Yocto build. I can try getting all the xorg stuff onto the image, though I'm not sure yocto will cooperate. I've dug a bit deeper, with a debugger and a Debug build of Allegro. It seems to be glXMakeContextCurrent that's failing - then it crashes after that when it tries to use a null GL_RENDERER that it got from the current context. Doesn't seem to be logging the error from that anywhere I can find though, so I can't tell why it's failing. |
dthompson
Member #5,749
April 2005
![]() |
Hmm. I wonder whether this means that it's the enablement of graphics acceleration itself that's causing the problem? I guess there's a small chance this could be a hardware issue, so do you have another board you could try this on? ______________________________________________________ |
|