HiveGamesOSS / Chunker

Convert Minecraft worlds between Java Edition and Bedrock Edition
https://hivegames.io/
MIT License
171 stars 6 forks source link

Add support for Linux ARM #8

Open Max-RM opened 4 weeks ago

Max-RM commented 4 weeks ago

What feature would you like seen in Chunker?

Port GUI version of program to Linux ARM32/ARM64. I tried to compile myself but got this error: chunkerlog.txt

FormallyMyles commented 2 weeks ago

I had a quick look into this using a Ubuntu 24 Virtual Machine, seems like it doesn't like building the image for snap. You might want to try following the steps provided in the error specifically snapcraft is not installed, please: sudo snap install snapcraft --classic. I did have a go myself but couldn't get snap building inside my VM (as it wanted nested virtualisation for some reason).

If you modify the app/electron/package.json and add the following to the "build" section it'll just build the AppImage which at least gets it building:

"linux": {
      "target": [
        "AppImage"
      ]
    },

To run it, you may need zlib / fuse (depending on what you have installed).

Max-RM commented 2 weeks ago

snapcraft is not installed, please: sudo snap install snapcraft --classic. I did have a go myself but couldn't get snap building inside my VM

In my case I can't install snapcraft because I'm using Arch ARM on my phone inside proot container. To install it I need to log out from root user but can't because of proot-distro termux features.

I will try your method now.

Max-RM commented 2 weeks ago

To run it

Hi. Many thanks for you. Now it worked. Although it was needed to --appimage-extract because .Appimage doesn't start. Then ./chunker-electron --no-sandbox to run

And now it worked on my phone. Although there is a ton of errors in terminal but it continues works. Chunkerlogbutworks.txt

So now everyone can run it on phone. I will try to compile it on ARM32 (Armeabi-v7a) too!

Screenshot_2024-08-25-22-21-36-988_com realvnc viewer android

Here is app if anyone want to try it: https://t.me/TNT_ENTERTAINMENT_inc/17663

There is also problem with converting chunks that contains Bedrock-only blocks like blocks from MCEE, stonecutter, info_update, etc. So those chunks will be removed after converting :( due to it some of my buildings got half-removed. Second log: Chunker2log.txt

I will make video about how it works tomorrow.

Max-RM commented 2 weeks ago

https://youtu.be/CF8vaN3kd6c

FormallyMyles commented 2 weeks ago

Awesome :) We would like to publish ARM builds in the future but there is the awkwardness at the moment that we can't use public GitHub runners to nicely do so. I'll leave this open as we would like to do it, we'll also consider only using AppImages for linux as snap just seems to have issues when compiling / unneeded dependencies when you just want an executable.

Max-RM commented 1 week ago

ARM builds

Since my Xiaomi POCO x3 PRO has been repared, I'm going to install Windows 11 ARM64 on it.

So Im going to compile Chunker App to Windows ARM64 and maybe ARM32 exe.