[MacPorts] #66593: qt6 references file in /opt/local/bin, which do not exist

MacPorts noreply at macports.org
Sat Dec 31 14:13:05 UTC 2022


#66593: qt6 references file in /opt/local/bin, which do not exist
-----------------------+--------------------
  Reporter:  kgarrels  |      Owner:  (none)
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:
      Port:            |
-----------------------+--------------------
Description changed by kgarrels:

Old description:

> Hi,
>
> got this error now building cmake projects, works if I uninstall all of
> qt6 and use qt5 instead.
>
> Any suggestions?
>
> Happy New Year,
> kai
>

>
> {{{
> CMake Error at
> /opt/local/lib/cmake/Qt6CoreTools/Qt6CoreToolsTargets.cmake:154
> (message):
>   The imported target "Qt6::moc" references the file
>
>      "/opt/local/bin/moc"
>
>   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/local/lib/cmake/Qt6CoreTools/Qt6CoreToolsTargets.cmake"
>
>   but not all the files it references.
>
> Call Stack (most recent call first):
>   /opt/local/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:37 (include)
>   /opt/local/lib/cmake/Qt6Core/Qt6CoreDependencies.cmake:76
> (find_package)
>   /opt/local/lib/cmake/Qt6Core/Qt6CoreConfig.cmake:40 (include)
>   /opt/local/lib/cmake/Qt6/Qt6Config.cmake:209 (find_package)
>   CMakeLists.txt:124 (find_package)
> }}}

New description:

 Hi,

 got this error now building cmake projects, works if I uninstall all of
 qt6 and use qt5 instead.
 All qt6 version 6.2.4_2+openssl

 Any suggestions?

 Happy New Year,
 kai



 {{{
 CMake Error at
 /opt/local/lib/cmake/Qt6CoreTools/Qt6CoreToolsTargets.cmake:154 (message):
   The imported target "Qt6::moc" references the file

      "/opt/local/bin/moc"

   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/local/lib/cmake/Qt6CoreTools/Qt6CoreToolsTargets.cmake"

   but not all the files it references.

 Call Stack (most recent call first):
   /opt/local/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake:37 (include)
   /opt/local/lib/cmake/Qt6Core/Qt6CoreDependencies.cmake:76 (find_package)
   /opt/local/lib/cmake/Qt6Core/Qt6CoreConfig.cmake:40 (include)
   /opt/local/lib/cmake/Qt6/Qt6Config.cmake:209 (find_package)
   CMakeLists.txt:124 (find_package)
 }}}

--

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


More information about the macports-tickets mailing list