meganz / MEGAcmd

Command Line Interactive and Scriptable Application to access MEGA
Other
1.89k stars 406 forks source link

Raspbian ARM64 support #622

Open thurask opened 2 years ago

thurask commented 2 years ago

I see there's prebuilt packages for megacmd 1.5.0 for Raspbian 11 armhf on the repo, now that Raspbian 11 arm64 is official (https://www.raspberrypi.com/news/raspberry-pi-os-64-bit/) it would be good to have native arm64 packages supplied. Megacmd 1.5.0 builds from source fine on a fresh copy of Raspbian 11 arm64, no issues, for what it's worth.

I also see that Raspbian 9 and 10 have packages for megasync 4.6.3 available (but not Raspbian 11?), I haven't tried building megasync on arm64 yet but it should also work out of the box.

aabellagm commented 2 years ago

Hi @thurask ! Thanks for the suggestion. We will add packages for Raspbian 11 arm64 soon. And thanks a lot for checking that it builds ok :)

Rgarding MEGAsync, yes, you are right. We have packages for Raspbian 9 and 10 but not for 11 yet. We are experiencing some problems with MEGAsync on Raspbian 11. As soon as they are fixed we will release a version for it too. We are working on it.

Thanks a lot!

cravas commented 1 year ago

Hello!

More than one year and there's still no arm64 for RaspiOS. Is it still planed to be done or the only way is to built it ourselves? And if yes, how can I do it on an AMD64 system?

Thank you

thurask commented 1 year ago

I had issues getting it to build with 32-bit ARM in the past (#451) but on Raspberry Pi OS 11 ARM64 it's just the steps verbatim from the README file; in terms of dependencies I used the list for Debian 9 in the README, although libcrypto++ is now libcrypto++8.

I've built MEGAcmd 1.6.0 directly on my Pi 4 without cross-compile and without issue; I'm eagerly awaiting both the 1.6.1 tag for this repo and the upcoming Raspberry Pi OS 12 release (sometime later this year) to see how builds go.

image

Edit: 1.6.1 built and ran with no issues.

xd003 commented 6 months ago

Can someone please share linux arm64 megacmd binary with me ? i am having trouble compiling it

thurask commented 6 months ago

Successful build on Raspberry Pi OS 12 (Bookworm) ARM64:

Otherwise follows the steps in README.md and the Debian 9 instructions.

image

xd003 commented 6 months ago

@thurask Thanks for the heads up, i want to use megacmd on my ubuntu 23.10 arm64 server, can i still follow the debian 9 instructions ? Sorry i am not familiar with compiling and stuff in general

thurask commented 6 months ago

@xd003 I don't have ARM hardware running Ubuntu but I do have an AMD64 23.10 system; compilation works using the Ubuntu 18.04 dependencies list (again without libpcre++) and ignoring FFmpeg during configuration.

xd003 commented 6 months ago

@thurask Thanks for the help. I have successfully compiled mega. I tried mega-get to download some links on my machine. I have 4 gbps bandwidth speed. Although i am getting abysmally low speeds. In 15 minutes, it only downloaded like 5.5 gb. Is this normal ? Is there a way to improve the speeds ?

thurask commented 1 month ago

1.7.0 builds on Bookworm using the same process as 1.6.3 above, although I did need to install libicu-dev to get compile to finish.

image