qt4-mac on M1

Peter West pbw at pbw.id.au
Mon Apr 11 15:01:09 UTC 2022

Arch supports have been added to my local installations of the kde4 and qt4 portgroup files.

That doesn’t solve the problem.

I now have in my local ports dir 

supported_archs ppc ppc64 i386 x86_64

My current trouble is with gwenhywfar4. Command execution fails with lots of compile error and warnings which seem to be focussed on cocoa.

I’ve added arch support to the portfile, but the problem may be with the subports.

subport gwenhywfar4-gtk {}
subport gwenhywfar4-gtk3 {}

These seem to be looking at gtk2 and gtk3 respectively. Can I just disable one or the other? It looks as though I’m going to have to go down a separate rabbit hole with one or both of them.

if {$subport == "gwenhywfar4-gtk"} {
    depends_lib-append      path:lib/pkgconfig/gtk+-2.0.pc:gtk2
    configure.args-append   --with-guis="gtk2 cpp" --disable-qt4

if {$subport == "gwenhywfar4-gtk3"} {
    depends_lib-append      path:lib/pkgconfig/gtk+-3.0.pc:gtk3
    configure.args-append   --with-guis="gtk3 cpp" --disable-qt4

Any top-of-the-head idea on how to get it to build?

Peter West
pbw at ehealth.id.au
…the whole multitude of his disciples began to rejoice and praise God with a loud voice for all the mighty works that they had seen, saying, “Blessed is the King who comes in the name of the Lord! Peace in heaven and glory in the highest!”

> On 3 Apr 2022, at 2:45 am, Ryan Schmidt <ryandesign at macports.org> wrote:
> On Apr 1, 2022, at 22:26, Peter West wrote:
>> I’m following dependencies which have their own dependency on qt4-mac and are set to universal, I presume, because I get messages like
>> Error: Cannot install automoc for the archs 'arm64 x86_64' because
>> Error: its dependency qt4-mac only supports the archs 'ppc ppc64 i386 x86_64'.
> Ok. Since automoc also uses the kde4 portgroup which uses the qt4 portgroup, adding the supported_archs line to the qt4 portgroup should solve that as well.
> Additionally, as I understand it, automoc is a tool used at build time only and it does not contain any libraries. Therefore the line "installs_libs no" should be added to the automoc Portfile which should cause MacPorts to no longer try to enforce an architecture match, which would also avoid the problem.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20220412/e7f48a20/attachment.htm>

More information about the macports-users mailing list