-
Notifications
You must be signed in to change notification settings - Fork 17
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
Raspberry PI 4 support #23
Comments
Hello. @map7 I'm kojix2 and I'm working on LibUI backend for glimmer-dsl-libui. So you need to get either andlabs/libui or libui-ng/libui-ng yourself. |
@map7 Raspberry PI 4 uses an ARM processor on Linux. Currently, like @kojix2 mentioned, the LibUI backend only includes support for Mac ARM/x64 and Linux x86_64 out of the box (and Win x64 of course), but not Linux ARM (aka AARCH64). I linked this issue to a LibUI backend issue regarding AARCH64 support. Once it is addressed, you will be notified. In the meantime, you can use @kojix2 's workaround of compiling C libui for Linux ARM (AARCH64) manually if you don't want to wait. |
@map7 First I installed meson and libgtk-3-dev with the apt command. This time I also installed Ruby with apt, Ruby 2.5. It is a little bit old. I created a symbolic link libui.so to libui.so.0, set the environment variable LIBUIDIR, cloned the glimmer-dsl-libui repository and launched Meta-Example. I launched many windows! @AndyObtiva |
@kojix2 I disagree with your statement about not many people using Linux ARM. It has become a standard offering in most Linux distributions and I know many libraries supporting Linux ARM (AARCH64) like SWT. Linux ARM is now a first-class citizen and must be supported out of the box in any library claiming to be cross-platform. It is important to provide a good programming experience to Linux ARM (AARCH64) users just like any other platform users. And, by the way, there are many users of Ruby who run on Linux in addition to Mac and Windows. I encounter such users regularly in my open-source project issues. Ruby in fact runs on Linux better than Windows, so it is very important to support completely in Ruby libraries. |
@kojix2 I think glimmer-dsl-libui is a great project and would love to see it work easily on the Raspberry PI 4. Thanks for the documentation I'll try and install it on my Raspberry PIs. I have a few Raspberry PIs in which I use ruby on with GUIs, some where using the GTK old library and another uses Shoes, both of which are unmaintained or hard to use. I like using glimmer as it's much lighter and easier to use. I think it would benefit the project to be easily accessible on the PI. |
I know it's been a while, but better late than never! I forgot to mention that @kojix2 did eventually support the Raspberry PI several months ago. I don't have a Raspberry PI, so I cannot test the support at the moment, but I will look into finding an environment where I could test it. Still, I'd say try the latest glimmer-dsl-libui in case the newly included libui (0.1.2.pre , updated relatively recently) works with Raspeberry PI on Aarch64 on Linux out of the box (I am not sure if @kojix2 included that support in the latest libui gem by default). If that doesn't work, then pull @kojix2 's project: https://github.com/kojix2/LibUI Afterwards, enter the project and Finally, if you run Run the Raspberry PI rake task and it should download the right binaries for it. If you install glimmer-dsl-libui on top of there, it should use those binaries. If this works for you, please let us know. |
Thanks for your comments.
It downloads binaries created with GitHub Actions using pguyot/arm-runner-action. However, this is not something that has been tested on an actual device, so it may be better to build libuii-ng yourself, as shown below.
|
Error when running on Raspberry PI 4 with debian buster and ruby 2.5.5 with the following example;
Code
Error
The text was updated successfully, but these errors were encountered: