stellarium icon indicating copy to clipboard operation
stellarium copied to clipboard

Stellarium for ARM

Open edegraaff opened this issue 3 years ago • 31 comments

Is your feature request related to a problem? Please describe. Hi, since there is a Pi4 with plenty memory, and ubuntu 64 bits for arm, i am experimenting with appimages Describe the solution you'd like Is it possible to build appimages for pi arm 64 ubunto architecture?

Describe alternatives you've considered It is possible to use the normal installer, but appimage seems nice, but seems also to have special demands to the platform

Additional context none

edegraaff avatar Nov 23 '20 18:11 edegraaff

Thanks for adding your first issue to Stellarium. If you have questions, please do not hesitate to contact us.

github-actions[bot] avatar Nov 23 '20 18:11 github-actions[bot]

Just follow build instructions for Linux.

gzotti avatar Nov 23 '20 18:11 gzotti

I can write a recipe for appimage and update bash script for building an appimage from the recipe, but... I don’t have ARM (I think you meant aarch64 architecture) device for building package.

alex-w avatar Nov 23 '20 18:11 alex-w

I am willing to test and build it, just for fun

edegraaff avatar Nov 23 '20 19:11 edegraaff

I am willing to test and build it, just for fun

Thanks, but what about architecture details? Could you share result of running uname -m?

alex-w avatar Nov 24 '20 07:11 alex-w

@edegraaff please install prerequisite packages (see https://github.com/Stellarium/stellarium/blob/master/BUILDING.md#debian--ubuntu), get the source code from git and check the script util/appimage/build-appimage.sh

alex-w avatar Nov 24 '20 12:11 alex-w

I am willing to test and build it, just for fun

Thanks, but what about architecture details? Could you share result of running uname -m?

eelco@pi4:~$ uname -m aarch64

edegraaff avatar Nov 24 '20 20:11 edegraaff

@edegraaff could you test build-appimage.sh script?

alex-w avatar Nov 25 '20 03:11 alex-w

Maybe you need to cross-compile a new kit for aarch64.

ultrapre avatar Nov 26 '20 04:11 ultrapre

Please test those packages (see artifacts section): https://github.com/Stellarium/stellarium/actions/runs/390046411

alex-w avatar Nov 29 '20 16:11 alex-w

hi i am builing an new machine image with usb disk. the sd card was to small... i.will.get bet to you later this week when the system is rrady with enough resources to compile

edegraaff avatar Nov 29 '20 23:11 edegraaff

I prepared an AppImage - just test it :)

alex-w avatar Nov 30 '20 03:11 alex-w

i will this evening great i am curious

edegraaff avatar Nov 30 '20 10:11 edegraaff

I prepared an AppImage - just test it :) I downloaded 2 of them the x86 i have ignored on the pi4 Files rights changed to able to execute

root@pi4:/home/eelco/Downloads# ./Stellarium-edge-aarch64.AppImage ./Stellarium-edge-aarch64.AppImage: error while loading shared libraries: libz.so: cannot open shared object file: No such file or directory

root@pi4:/home/eelco/Downloads/Stellarium-edge-armv7# ./Stellarium-edge-armhf.AppImage bash: ./Stellarium-edge-armhf.AppImage: No such file or directory

edegraaff avatar Nov 30 '20 20:11 edegraaff

Thanks!

root@pi4:/home/eelco/Downloads# ./Stellarium-edge-aarch64.AppImage ./Stellarium-edge-aarch64.AppImage: error while loading shared libraries: libz.so: cannot open shared object file: No such file or directory

This is very strange. :(

root@pi4:/home/eelco/Downloads/Stellarium-edge-armv7# ./Stellarium-edge-armhf.AppImage bash: ./Stellarium-edge-armhf.AppImage: No such file or directory

This is OK for aarch64

alex-w avatar Nov 30 '20 20:11 alex-w

@edegraaff could you check package zlib1g - is it installed into system?

alex-w avatar Nov 30 '20 21:11 alex-w

Probably this workaround could help you: sudo link /lib/aarch64-linux-gnu/libz.so.1 /lib/aarch64-linux-gnu/libz.so

alex-w avatar Nov 30 '20 21:11 alex-w

@edegraaff could you check package zlib1g - is it installed into system? Reading state information... Done zlib1g is already the newest version (1:1.2.11.dfsg-2ubuntu4). zlib1g set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

edegraaff avatar Nov 30 '20 21:11 edegraaff

Probably this workaround could help you: sudo link /lib/aarch64-linux-gnu/libz.so.1 /lib/aarch64-linux-gnu/libz.so

link: cannot create link '/lib/aarch64-linux-gnu/libz.so' to '/lib/aarch64-linux-gnu/libz.so.1': File exists

edegraaff avatar Nov 30 '20 21:11 edegraaff

This is weird... what about ldd Stellarium-edge-aarch64.AppImage?

alex-w avatar Nov 30 '20 21:11 alex-w

Possible workaround 1: sudo apt-get install zlib1g-dev

Possible workaround 2: sudo apt-get install fuse

alex-w avatar Nov 30 '20 21:11 alex-w

darn both where already installed and the latest version

edegraaff avatar Dec 02 '20 17:12 edegraaff

@edegraaff any news?

@gzotti could you test it on your RPi?

alex-w avatar Dec 09 '20 16:12 alex-w

I am still out of town. Maybe next week.

gzotti avatar Dec 09 '20 18:12 gzotti

@edegraaff any news?

@gzotti could you test it on your RPi?

I did test it, see respond above both options where tested, and both where already installed and the latest version :-( grrr

edegraaff avatar Dec 10 '20 20:12 edegraaff

This is a good task for the community to participate in the contribution into Stellarium. Who wants to help us?

alex-w avatar Aug 02 '22 16:08 alex-w

What is the benefit of using an AppImage on a RPi? We support building and running out of the box on RPi4 and RPi3B+.

gzotti avatar Aug 02 '22 20:08 gzotti

What is the benefit of using an AppImage on a RPi? We support building and running out of the box on RPi4 and RPi3B+.

Not all linux for RPi support the deb packages…

alex-w avatar Aug 02 '22 23:08 alex-w

But all RPi distros which have Qt5 available in some format (via own package manager or even self-compiled for the masochists) should allow building on-board, maybe with omissions (QtWebengine may not be available). Uncommon distros are usually used for special purposes, not to run astronomical applications. I understand the AppImage packs all required libraries again, so IMHO it's a waste of space on the small SD cards.

That said, What would I do to install and run such AppImage for a test? I have Raspbian/Buster in RPi3 and Ubuntu Mate 22.04 on my RPi4.

gzotti avatar Aug 03 '22 07:08 gzotti

This is a good task for the community to participate in the contribution into Stellarium. Who wants to help us?

github-actions[bot] avatar Aug 03 '22 07:08 github-actions[bot]