MEGAcmd icon indicating copy to clipboard operation
MEGAcmd copied to clipboard

Raspbian ARM64 support

Open thurask opened this issue 3 years ago • 9 comments

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.

thurask avatar Feb 17 '22 20:02 thurask

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!

aabellagm avatar Feb 21 '22 11:02 aabellagm

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

cravas avatar Mar 18 '23 09:03 cravas

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.

thurask avatar Mar 22 '23 21:03 thurask

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

xd003 avatar Dec 21 '23 07:12 xd003

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

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

image

thurask avatar Dec 23 '23 03:12 thurask

@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

xd003 avatar Dec 23 '23 04:12 xd003

@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.

thurask avatar Dec 23 '23 04:12 thurask

@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 ?

xd003 avatar Dec 28 '23 12:12 xd003

@xd003 if you look carefully at the logs you'll notice that mega is throttling your traffic and some requests would fail because of traffic quota being exceeded

Is there a way to improve the speeds ?

...just an assumption that I haven't tested personally, but I'd suspect that buying a paid subscription will probably increase your traffic quota and thus improve your transfer speeds

glowinthedark avatar Feb 13 '24 10:02 glowinthedark

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

thurask avatar May 22 '24 18:05 thurask