[MacPorts] #68863: Not able to configure cmake using port

MacPorts noreply at macports.org
Mon Dec 11 01:39:21 UTC 2023


#68863: Not able to configure cmake using port
-------------------------+-----------------------
  Reporter:  Sharvani26  |      Owner:  michaelld
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.8.99
Resolution:              |   Keywords:
      Port:  cmake       |
-------------------------+-----------------------
Changes (by ryandesign):

 * version:  2.8.1 => 2.8.99


Comment:

 The log says:
 {{{
 CMake Error at /opt/homebrew/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:14
 (message):
   The imported target "Qt5::Core" references the file

      "/opt/homebrew/.//mkspecs/macx-clang"

   but this file does not exist.  Possible reasons include:

   * The file was deleted, renamed, or moved to another location.

   * An install or uninstall procedure did not complete successfully.

   * The installation package was faulty and contained

      "/opt/homebrew/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake"

   but not all the files it references.
 }}}
 So the problem is that you have Qt5 installed with Homebrew and it is
 confusing cmake when built by MacPorts, possibly due to #64111.

 Using more than one package manager on one machine is not supported;
 please pick one. If you choose MacPorts, uninstall Homebrew, `sudo port
 clean cmake`, and then try again.

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


More information about the macports-tickets mailing list