[MacPorts] #59601: qt5-qt3d @ 5.12.5 configure fails ERROR: Feature 'system-assimp' was enabled, but the pre-condition 'features.assimp && libs.assimp' failed

MacPorts noreply at macports.org
Sun Dec 20 07:47:36 UTC 2020


#59601: qt5-qt3d @ 5.12.5 configure fails ERROR: Feature 'system-assimp' was
enabled, but the pre-condition 'features.assimp && libs.assimp' failed
----------------------------+---------------------------------
  Reporter:  mikealeonetti  |      Owner:  MarcusCalhoun-Lopez
      Type:  defect         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.6.2
Resolution:                 |   Keywords:
      Port:  qt5-qt3d       |
----------------------------+---------------------------------

Comment (by kencu):

 I stumbled across this tonight building qt5-qt3d on arm64.

 This happens because the test build to see if assimp fails. In the log, it
 shows the test application is being built for x86_64 (which it should not
 be, on arm64), but when it tries to link against the system installed
 libassimp, it finds that the library is arm64 (which it should be) it
 fails.

 The problem is in this file:

 {{{/opt/local/libexec/qt5/mkspecs/common/macx.conf}}}

 it lists the build defaults as:
 {{{
 QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.13
 QMAKE_APPLE_DEVICE_ARCHS = x86_64
 }}}

 which is quite wrong tor arm64 and 11.0.

 Changing them to
 {{{
 QMAKE_MACOSX_DEPLOYMENT_TARGET = 11.0
 QMAKE_APPLE_DEVICE_ARCHS = arm64
 }}}

 gives the proper configuration, and then the test application is built for
 arm64, the correct arch libassimp is found, the test succeeds, and all is
 well.

 So {{{/opt/local/libexec/qt5/mkspecs/common/macx.conf}}} is installed by
 qt5-qttools, and I think we have to patch that to be the machine's native
 arch, or at least the arch that all the libraries will be built for.

-- 
Ticket URL: <https://trac.macports.org/ticket/59601#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list