mimoguz / tripeaks-gdx

A simple tri peaks solitaire game using libGDX.
GNU General Public License v3.0
74 stars 9 forks source link

[Feature Request] Linux Support #34

Open Henry-Hiles opened 2 weeks ago

Henry-Hiles commented 2 weeks ago

Hello! I'm not sure if it's possible, but it would be great if linux support could be added to this app.

I have a linux phone, and there currently aren't any good solitaire games (and this is the best I've seen for Android). Again, I have no GDX knowledge, so this might be impossible, sorry if so. If you can get it compiling for Linux, I can package it as a Flatpak and put it on Flathub, so it can be downloaded on any linux distro. Thanks!

Henry-Hiles commented 2 weeks ago

Since libGDX is cross-platform, it should be possible, right?

mimoguz commented 2 weeks ago

Since libGDX is cross-platform, it should be possible, right?

Probably? Apparently LibGDX already supports Linux on Arm, and the project genarator I used, gdx-liftoff, creates basic setup for cross-compiling lwjgl3 module using construo. I'd been able to create a Linux x64 runnable by simply running ./gradlew packageLinuxX64. I don't know anything about Linux phones though.

mimoguz commented 2 weeks ago

A small upadate: I played with the build config a bit and was able to add Linux AARCH64 as a target. Now ./gradlew packageLinuxAARCH64 creates something 🙂. I don't know if that 'something' works though.

Henry-Hiles commented 2 weeks ago

A small upadate: I played with the build config a bit and was able to add Linux AARCH64 as a target. Now ./gradlew packageLinuxAARCH64 creates something 🙂. I don't know if that 'something' works though.

If you've pushed that build config change I'll try it on my Linux phone later today :)

mimoguz commented 2 weeks ago

If you've pushed that build config change I'll try it on my Linux phone later today :)

I did.

Henry-Hiles commented 2 weeks ago

I ran it, where does it output to?

mimoguz commented 2 weeks ago

I ran it, where does it output to?

lwjgl3/build/construo/<target OS & architecture>/roast/

Henry-Hiles commented 2 weeks ago

ty

Henry-Hiles commented 2 weeks ago

Hmm. Screenshot from 2024-09-02 14-33-55

Henry-Hiles commented 2 weeks ago

Got a better error: Screenshot from 2024-09-02 14-36-24

Henry-Hiles commented 2 weeks ago

ah Screenshot from 2024-09-02 14-41-28

mimoguz commented 2 weeks ago

But it's there, right?

Screenshot from 2024-09-02 21-45-42

Or not. It's complaining about ld-linux...

Henry-Hiles commented 2 weeks ago

Looks related to this?: https://github.com/00-Evan/shattered-pixel-dungeon/issues/385#issuecomment-884290949

Henry-Hiles commented 2 weeks ago

What version of libgdx is used

Henry-Hiles commented 2 weeks ago

But it's there, right?

Screenshot from 2024-09-02 21-45-42

Or not. It's complaining about ld-linux...

wait a second, thats not there for me

Henry-Hiles commented 2 weeks ago

oh did you unpack the jar

mimoguz commented 2 weeks ago

oh did you unpack the jar

Yes

Henry-Hiles commented 2 weeks ago

Oh yeah its in the unpacked jar.

mimoguz commented 2 weeks ago

Maybe that? : https://forums.raspberrypi.com/viewtopic.php?t=357800. 32 bit OS?

Henry-Hiles commented 2 weeks ago

Certainly I'm not on 32 bit, its arm64

Henry-Hiles commented 2 weeks ago

Looks related to this?: 00-Evan/shattered-pixel-dungeon#385 (comment)

Did you see this? What version of libgdx is being used? Also maybe this? https://github.com/libgdx/libgdx/issues/1127

Henry-Hiles commented 2 weeks ago

shattered-pixel-dungeon definitely has a working flatpak linux aarch64 build (ive played it)

mimoguz commented 2 weeks ago

Did you see this? What version of libgdx is being used? Also maybe this? libgdx/libgdx#1127

gdxVersion=1.12.1

Well native libs are there, and linuxX64 build works 😐