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

Should be possible compile the version for Windows 10 ARM64 version? #1436

Closed
Corsair-63 opened this issue Dec 27, 2020 · 22 comments
Closed
Assignees
Labels
infrastructure Infrastructure related issues
Milestone

Comments

@Corsair-63
Copy link

Stellarium runs in windows 10 ARM64 (Surface pro X and another hardware at this time) under emulation of x86, it means that doesn't run natively in the system and could be some loose of functionality either to take advantage of processor and memory.

should be possible offer this suite as default with this Windows 10 ARM64 compiled version?

_x86 versions of software is becoming more rare and sometimes deprecated in order to squeeze all the benefits and advantages of new processor and OS version, so could be a good start to port also marvellous Stellarium to have such feature of running "at home" with these processor that looks like that are pushing hard to make their proper room, mostly used in tablet, that are really useful for the star sighting in landscapes and at sea.

@github-actions
Copy link

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

@alex-w alex-w added the infrastructure Infrastructure related issues label Dec 27, 2020
@gzotti
Copy link
Member

gzotti commented Dec 27, 2020

Does it run in x86 emulation mode or not? What does not work?

X86 compatible hardware will be with us for many more years, even if sales may go down. There is a small computer or even SBC market still for x86. Win32 builds and Mac builds are downloaded in about equal numbers.
Don't forget that Stellarium had WinXP builds years after WinXP had been declared dead. And it has still seen thousands of downloads, even if only about 1% of regular Win32 builds.

Is Windows 10 ARM64 the same as Windows UWP? Then at least Qt5 supports it. You can always build Stellarium from source.

@alex-w
Copy link
Member

alex-w commented Dec 27, 2020

Important note - tablets (e.g. Surface Pro X) is not in primary target for desktop edition of Stellarium

@alex-w
Copy link
Member

alex-w commented Dec 27, 2020

Is Windows 10 ARM64 the same as Windows UWP? Then at least Qt5 supports it. You can always build Stellarium from source.

AppVeyor is not support Qt for Windows UWP and we cannot prepare signed binaries for this platform.

@Corsair-63
Copy link
Author

Corsair-63 commented Dec 27, 2020

Thanks for your quick answer, understood.

I'm seaman and I use the tablet as desktop computer when at work. I cannot travel with neither desktop nor big laptop, I have to minimize my luggage. 😉 (I learnt after long time being travelling with big laptops)

I know that it works under emulation on _x86 I haven't test in deep, I did it with my previous one Surface 4 that was wintel x64 based and I installed x64 version running smoothly but the new one running under emulation is really slow, It's a pity not having it working natively.

From my point of view _x86 should be deprecated long time ago, from my poor knowledge versions of _x86 are not making any benefit for any software development that should be based in the close future as x64 and ARM64 (that's what computing gurus say, not me)

AFAIK as per Microsoft itself UWP app must run natively under Windows ARM64, but I'm not computing engineer.

@Corsair-63
Copy link
Author

And first of all I have to say that I'm really happy to test and run this program since long time ago, because is really useful on board in order to have a clear picture of the stars that could be sightseeing in order to get the astronomical position, making the observation job really easy.

@gzotti
Copy link
Member

gzotti commented Dec 30, 2020

Is the title of this issue valid then? Should it not rather be "I want to download installable version for ARM64 Windows UWP"?

I assume everybody could follow our instructions (maybe with a little help from Google) and compile Stellarium on his own ARM64 UWP with the Qt libraries for UWP, if that is possible without unknown obstacles. Only somebody with such hardware has the interest to build and test it. We have no such hardware and no "testing department for new/rare hardware" or whatever you seem to assume.

@axd1967
Copy link
Contributor

axd1967 commented Dec 30, 2020

I assume everybody could follow our instructions (maybe with a little help from Google) and compile Stellarium on his own ARM64 UWP with the Qt libraries for UWP, if that is possible without unknown obstacles. Only somebody with such hardware has the interest to build and test it. We have no such hardware and no "testing department for new/rare hardware" or whatever you seem to assume.

@Corsair-63 could be a good tester of the build procedures :-) ideally, anyone should be able to build Stellarium, assuming the instructions are clear enough; if not, the instructions should be expanded accordingly. (https://github.com/Stellarium/stellarium/blob/master/BUILDING.md)

@ultrapre
Copy link
Contributor

It may not to build it for UWP easily like Desktop because the kit for uwp lacks modules like script, serialport and printsupport. Maybe you need to pay efforts to fix it like #194 . My suggestion is to build from a lite version like stellarium-mobile.

@gzotti
Copy link
Member

gzotti commented Dec 31, 2020

You can build a version without scripting support. Serial: likely just drop Telescope plugin and external GPS device? Print: not currently required I think. But probably the disabling #defines need to be tested/fixed.

@ultrapre
Copy link
Contributor

ultrapre commented Dec 31, 2020

QtPrintSupport is imported by qcustomplot.h, not like the other two which could be disabled by what like ENABLE_GPS.

@Corsair-63
Copy link
Author

I could try to build a version for windows 10 ARM64, but I have no clue of using Visual studio 2019, already installed, and how to get the option to compile for ARM64, I had to install the x86 version in my Surface X.

also QT is asking me for an account to install the library, ??

for sure that I'll burst my Tablet ;-)

@gzotti
Copy link
Member

gzotti commented Jan 17, 2021

Downloading Qt requires an account, yes. But it's free for open-source projects. If QtScript (deprecated) is not at all available for UWP, you must disable ENABLE_SCRIPTING. We have not tested (I think) disabling some of the ENABLE_* config options in a long time, though. If printing support really is a problem, we will have to find some way to circumvent, maybe at cost of having to disable the entire AstroCalc module for this build. However, currently UWP is officially not supported, and we can only watch from afar.

gzotti added a commit that referenced this issue Jan 17, 2021
- also remove double negation logic to test for disabled scripting
@gzotti
Copy link
Member

gzotti commented May 18, 2022

Stellarium no longer depends on qcustomplot or QtPrintSupport. (#2447)

@alex-w
Copy link
Member

alex-w commented Aug 2, 2022

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

@alex-w alex-w removed the community label Aug 2, 2022
@alex-w
Copy link
Member

alex-w commented Oct 2, 2023

Good news: msys2/MINGW-packages#18653

@hmartinez82
Copy link
Contributor

hmartinez82 commented Oct 3, 2023

I already got CalcMySky building for MSYS2 even for Windows on ARM (see unit tests passing at msys2/MINGW-packages#18697)
I'm going to add the libindiclient package now, but I need to know now, if Stellarium will work with the latest indiclient? I saw that CPM is using a fairly version of INDI.

@10110111
Copy link
Contributor

10110111 commented Oct 3, 2023

INDI upgrade appears to be stuck in #3269.

@hmartinez82
Copy link
Contributor

We decided to stop pursuing a solution for this with MSYS2 / MinGW 64 and went with Visual Studio instead. It was of absolutely great help that the AppVeyor runners images already had Qt 6 compiled for Windows on ARM

It is now possible to build AppVeyor for Windows on ARM. You need Qt 6 compiled for x64 and for ARM64 and CMake. The x64 build of Qt is needed for running the compile time tools and Qt must be compiled to use SChannel as its SSL QtNetwork backend. OpenSSL is not required.

@alex-w
Copy link
Member

alex-w commented Oct 23, 2023

Please check the fresh version (development snapshot) of Stellarium:
https://github.com/Stellarium/stellarium-data/releases/tag/weekly-snapshot

@alex-w alex-w closed this as completed Dec 9, 2023
@alex-w alex-w added the state: published The fix has been published for testing in weekly binary package label Dec 10, 2023
Copy link

Hello @Corsair-63!

Please check the fresh version (development snapshot) of Stellarium:
https://github.com/Stellarium/stellarium-data/releases/tag/weekly-snapshot

@alex-w alex-w removed the state: published The fix has been published for testing in weekly binary package label Dec 23, 2023
Copy link

Hello @Corsair-63!

Please check the latest stable version of Stellarium:
https://github.com/Stellarium/stellarium/releases/latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Infrastructure related issues
Development

No branches or pull requests

7 participants