qt4-mac on M1

Ryan Schmidt ryandesign at macports.org
Fri Apr 1 14:44:18 UTC 2022



On Apr 1, 2022, at 09:42, Peter West wrote:

> On 1 Apr 2022, at 11:53 pm, Ryan Schmidt wrote:
> 
>> On Apr 1, 2022, at 04:32, Peter West wrote:
>> 
>>> On 1 Apr 2022, at 7:22 pm, Peter West wrote:
>>>> 
>>>> I just tried to install kmymoney4 on my M1 running 12.2.1. MacPorts spat the dummy with
>>>> 
>>>> Error: Cannot install kmymoney4 for the arch 'arm64' because
>>>> Error: its dependency qt4-mac only supports the archs 'ppc ppc64 i386 x86_64’.
>>>> 
>>>> 
>>>> Is it possible for me to install this somehow?
>>>> 
>>>> Should I file a ticket for this?
>>> 
>>> My Xcode version is 13.3. #61789 was closed as fixed 8 months ago.
>> 
>> https://trac.macports.org/ticket/61789#comment:6 says "qt4-mac is old enough that my best guess is it'll take significant work to get it working on ARM64". Therefore #61789 was fixed by making the qt4-mac port indicate that it does not support the arm64 architecture, and thus if you try to install it on an Apple Silicon Mac, MacPorts should install it for the x86_64 architecture instead and it will run in emulation via Rosetta 2.
>> 
>> However, kmymoney4 and probably most other ports that depend on qt4-mac do not similarly indicate that they do not support arm64, therefore MacPorts tries to install them and their dependencies (including qt4-mac) for arm64, which as we know doesn't work.
>> 
>> The kmymoney4 portfile does include the kde4 portgroup which in turn includes the qt4 portgroup. The qt4 portgroup seems like a great place to set supported_archs to indicate non-support of arm64.
> 
> Can I do this with a local portfile?

Sure. To test whether this works, you could add the line

supported_archs ppc ppc64 i386 x86_64

to the kmymoney4 portfile.



More information about the macports-users mailing list