RJVB / macstrop

RJVB's repository of alternative macports, with ports missing from or overriding those in the standard collection, including a set of KF5 ports.
21 stars 9 forks source link

Outdated Qt and KF5 ports fail to build on arm64 macOS #91

Open Cuperino opened 2 years ago

Cuperino commented 2 years ago

Neither qt5-kde nor qt5-kde-devel seem able to build on M1 hardware. Here are some of the reasons why this might be the case:

  1. Qt version 5.9 may be too outdated to compile on an arm64 Mac. C++ 11 is required to build Qt 5.9 and a few other Ports. The minimal version required to build the package and current KDE software is C++ 17.
  2. There is a required dependency on mariadb, which seems unable to be compiled on arm64 Macs at this point. Since not all projects use sql plugins, mariadb should be made into an optional dependency.
RJVB commented 2 years ago
  1. Qt version 5.9 may be too outdated to compile on an arm64 Mac.

That may be the case but it's also the newest version I can build on my Mac. I'm still putting off upgrading the OS because this will take me months (before everything works again as I want it) and to be really honest, I suspect Murphy's law will express itself in a fatal way (Mac dies just when I'm almost done). Your best option here is to install a Qt5 port from the mainstream ports tree, before installing any KF5 ports.

C++ 11 is required to build Qt 5.9 and a few other Ports. The minimal version required to build the package and current KDE software is C++ 17.

This should be of no consequence.

  1. There is a required dependency on mariadb

No, that dependency is pulled in via the default +mariadb55 variant. You can build without by using -mariadb55 but or by requesting one of the mysql variants (I strongly suggest NOT to build without SQL support).

21stcaveman commented 1 year ago

I'm still putting off upgrading the OS because this will take me months

just putting it out there, I am willing to help if you ever decide to upgrade qt version to latest. I have two macs, running latest of 12 and 13 versions (Monterey and Ventura). Can follow directions :))

RJVB commented 1 year ago

just putting it out there, I am willing to help if you ever decide to upgrade qt version to latest. I have two macs, running latest of 12 and 13 versions (Monterey and Ventura). Can follow directions :))

Noted!