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

Raspbian ARM64 support #622

Open
thurask opened this issue Feb 17, 2022 · 11 comments
Open

Raspbian ARM64 support #622

thurask opened this issue Feb 17, 2022 · 11 comments

Comments

@thurask
Copy link

thurask commented Feb 17, 2022

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
Copy link
Contributor

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
Copy link

cravas commented Mar 18, 2023

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
Copy link
Author

thurask commented Mar 22, 2023

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
Copy link

xd003 commented Dec 21, 2023

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

@thurask
Copy link
Author

thurask commented Dec 23, 2023

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

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

image

@xd003
Copy link

xd003 commented Dec 23, 2023

@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
Copy link
Author

thurask commented Dec 23, 2023

@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
Copy link

xd003 commented Dec 28, 2023

@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
Copy link
Author

thurask commented May 22, 2024

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

@okelet
Copy link

okelet commented Dec 30, 2024

One tip, remember to run ldconfig as root if you get this error running mega-cmd-server or any other related tool:

mega-cmd-server: error while loading shared libraries: libmega.so.43000: cannot open shared object file: No such file or directory

@thurask
Copy link
Author

thurask commented Feb 6, 2025

With the switch to a cmake based build system in 2.0 the necessary changes are to add the ARM64 Linux target to cmake (meganz/sdk#2699), but after doing that building 2.0 works fine on native ARM64 Linux.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants