Opened 3 years ago
Last modified 3 years ago
#67029 assigned defect
gqrx failed to build on macOS 10.15.7
| Reported by: | YesNo801 | Owned by: | michaelld (Michael Dickens) |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | |
| Keywords: | Cc: | ra1nb0w | |
| Port: | gqrx |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
gqrx port failed to build on macOS 10.15.7
$ sudo port install gqrx ---> Computing dependencies for gqrx ---> Fetching archive for gqrx ---> Attempting to fetch gqrx-2.15.9_0.darwin_19.x86_64.tbz2 from https://packages.macports.org/gqrx ---> Attempting to fetch gqrx-2.15.9_0.darwin_19.x86_64.tbz2 from https://nue.de.packages.macports.org/gqrx ---> Attempting to fetch gqrx-2.15.9_0.darwin_19.x86_64.tbz2 from https://cph.dk.packages.macports.org/gqrx ---> Fetching distfiles for gqrx ---> Verifying checksums for gqrx ---> Extracting gqrx ---> Configuring gqrx Error: Failed to configure gqrx: configure failure: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_gqrx/gqrx/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: Processing of port gqrx failed
Attachments (1)
Change History (9)
Changed 3 years ago by YesNo801
| Attachment: | gqrx-main.log added |
|---|
comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
| Cc: | ra1nb0w added |
|---|---|
| Description: | modified (diff) |
| Keywords: | gqrx removed |
| Owner: | set to michaelld |
| Status: | new → assigned |
comment:2 Changed 3 years ago by ra1nb0w
gqrx requires Qt5 and it is defined in the portfile [1]. Have you changed something that you are trying to build with Qt6?
[1] https://github.com/macports/macports-ports/blob/master/science/gqrx/Portfile
comment:3 Changed 3 years ago by YesNo801
Hi, Both environments are installed, qt5 and qt6 Now I uninstalled all the qt6 environment and relaunched the gqrx installation:
$ sudo port install gqrx +experimental +iqba
This time the installation worked, gqrx being built without problems. Any idea why it interfered with qt6 even though it only depends on qt5? Thank you.
comment:4 follow-up: 6 Changed 3 years ago by ra1nb0w
Ok. thank you for the test. I got the issue. It uses the default moc and probably installing both Qt this will be renominated in moc5 or something and can managed with port select. Can you verify which /usr/local/bin/moc is available? This seems a qt5 portgroup issue.
thank you
comment:5 Changed 3 years ago by YesNo801
Hi,
I check for moc
$ ls -al /usr/local/bin/moc ls: /usr/local/bin/moc: No such file or directory $ sudo port content qt5-qtbase | grep moc /opt/local/libexec/qt5/bin/moc
After installing qt6:
$ sudo port content qt6-qtbase | grep moc /opt/local/libexec/qt6/bin/cmake_automoc_parser /opt/local/libexec/qt6/bin/moc
Thank you
comment:6 follow-up: 8 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to ra1nb0w:
Can you verify which
/usr/local/bin/mocis available?
Did you mean /opt/local/bin/moc?
comment:7 Changed 3 years ago by YesNo801
/usr/local/bin/moc: No such file or directory
742324 Jan 7 03:37 /opt/local/libexec/qt5/bin/moc
1045812 Dec 26 22:44 /opt/local/libexec/qt6/bin/moc
comment:8 Changed 3 years ago by ra1nb0w
Replying to ryandesign:
Did you mean
/opt/local/bin/moc?
ops. my fault. Seems that Portgroup qt5 doesn't catch the right moc.
ryandesign: what do you think? an issue for qt5? thanks

Log says:
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) -- Configuring incomplete, errors occurred!