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

Running xmage in Raspberry Pi #11611

Open
pyested opened this issue Jan 5, 2024 · 5 comments
Open

Running xmage in Raspberry Pi #11611

pyested opened this issue Jan 5, 2024 · 5 comments
Labels
FAQ Instructions to fix problems linux / macos support Questions from users, help and support

Comments

@pyested
Copy link

pyested commented Jan 5, 2024

Hi, I've tried to install xmage on a Raspberry Pi 400 (arm64 processor), but it seems that the dedicated java environment that is automatically downloaded during installation (i.e. jre 8u201) is specific for amd64 architecture. I'm able to run the .jar file from the terminal after installation, but when I try to launch the client I get an error message since the dedicated java environment cannot run on the Pi 400.

Is there a way to work this around or are there any plans to add support to arm64 architecture? Thanks a lot!

@JayDi85
Copy link
Member

JayDi85 commented Jan 5, 2024

mage-server and mage-client folders contains sh and other scripts to run under default os java version. You can try to use it instead launcher.

Another option: find and download your java version and extract to launcher/java folder (keep same files structure as old version from a launcher downloader).

@JayDi85 JayDi85 added the support Questions from users, help and support label Jan 5, 2024
@pyested
Copy link
Author

pyested commented Jan 5, 2024

I've tried both and I found this:

  1. Using my default os java version (openjdk-17) and the sh script I could launch the client but I couldn't connect to the server. All the rest was fine (images, etc). Not sure why this happened, I tried the same in my laptop (openjdk-11) and I could connect to the server.

  2. I also downloaded jdk 8u391 for arm64 (link to Oracle page) and I simply extracted the content in the java folder but I kept the old folder name inside (jre1.8.0_201) so the launcher wouldn't mess up. I couldn't find jre for arm64, so I've dowloaded jdk and it has worked fine. In this way I could both launch the client and connect to the server, so it's definitely possible to run xmage on Raspberry Pi.

  3. There is simply one little detail. Once inside the client some of the buttons look odd. I attach an image so you can see this. Is there a reason for this to happen?

screen

@JayDi85
Copy link
Member

JayDi85 commented Jan 5, 2024

Try to apply d3d fix param from here (if you run from sh script then add that param to it instead launcher settings): #4626 (comment)

@JayDi85
Copy link
Member

JayDi85 commented Jan 5, 2024

There are many other 2d and 3d params for opengl too (I think it can be useful for your use case):
https://xy2401.com/local-docs/oracle/java/11/troubleshoot/java-2d-pipeline-rendering-and-properties.html#GUID-DEA4F3FC-87F5-4196-A295-30A559982B10

-Dsun.java2d.opengl=true
-Dsun.java2d.opengl.fbobject=false

@pyested
Copy link
Author

pyested commented Jan 6, 2024

Thanks a lot for all the support! It works now. My Pi 400 is using x11, but after enabling opengl and configuring the java pipeline using the commands above to launch the client the buttons look as they should:

screen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FAQ Instructions to fix problems linux / macos support Questions from users, help and support
Projects
None yet
Development

No branches or pull requests

2 participants