[MacPorts] #68866: SDRangel @7.13.0_0: error: unknown type name 'QStringRef'; did you mean 'CFStringRef'? (was: SDRangel 7.13.0_0 install failure on M1 Mac with OSX 14.1.2)
MacPorts
noreply at macports.org
Sun Dec 10 17:05:23 UTC 2023
#68866: SDRangel @7.13.0_0: error: unknown type name 'QStringRef'; did you mean
'CFStringRef'?
----------------------------+----------------------
Reporter: BMeyendriesch | Owner: ra1nb0w
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords:
Port: SDRangel |
----------------------------+----------------------
Changes (by ryandesign):
* status: new => assigned
* cc: michaelld (added)
* milestone: MacPorts Future =>
* owner: (none) => ra1nb0w
* port: sdrangel => SDRangel
Old description:
> sdrangel fails to install on M1 Mac with OSX 14.1.2
>
> sudo port install -v sdrangel
> Password:
> ---> Computing dependencies for SDRangel
> ---> Fetching archive for SDRangel
> ---> Attempting to fetch
> SDRangel-7.13.0_0+airspy+airspyhf+funcube+gui+limesuite+rtlsdr+server+soapysdr.darwin_23.arm64.tbz2
> from https://packages.macports.org/SDRangel
> ---> Attempting to fetch
> SDRangel-7.13.0_0+airspy+airspyhf+funcube+gui+limesuite+rtlsdr+server+soapysdr.darwin_23.arm64.tbz2
> from https://fra.de.packages.macports.org/SDRangel
> ---> Attempting to fetch
> SDRangel-7.13.0_0+airspy+airspyhf+funcube+gui+limesuite+rtlsdr+server+soapysdr.darwin_23.arm64.tbz2
> from https://cph.dk.packages.macports.org/SDRangel
> ---> Building SDRangel
> Error: Failed to build SDRangel: command execution failed
> Error: See
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_SDRangel/SDRangel/main.log
> for details.
> Error: Follow https://guide.macports.org/#project.tickets if you believe
> there is a bug.
> Error: Processing of port sdrangel failed
New description:
sdrangel fails to install on M1 Mac with OSX 14.1.2
{{{
sudo port install -v sdrangel
Password:
---> Computing dependencies for SDRangel
---> Fetching archive for SDRangel
---> Attempting to fetch
SDRangel-7.13.0_0+airspy+airspyhf+funcube+gui+limesuite+rtlsdr+server+soapysdr.darwin_23.arm64.tbz2
from https://packages.macports.org/SDRangel
---> Attempting to fetch
SDRangel-7.13.0_0+airspy+airspyhf+funcube+gui+limesuite+rtlsdr+server+soapysdr.darwin_23.arm64.tbz2
from https://fra.de.packages.macports.org/SDRangel
---> Attempting to fetch
SDRangel-7.13.0_0+airspy+airspyhf+funcube+gui+limesuite+rtlsdr+server+soapysdr.darwin_23.arm64.tbz2
from https://cph.dk.packages.macports.org/SDRangel
---> Building SDRangel
Error: Failed to build SDRangel: command execution failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_SDRangel/SDRangel/main.log
for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe
there is a bug.
Error: Processing of port sdrangel failed
}}}
--
Comment:
The log says:
{{{
:info:build In file included from
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_SDRangel/SDRangel/work/sdrangel-7.13.0/devices/usrp/deviceusrp.cpp:19:
:info:build In file included from
/opt/local/libexec/qt5/lib/QtCore.framework/Headers/QDebug:1:
:info:build
/opt/local/libexec/qt5/lib/QtCore.framework/Headers/qdebug.h:162:37:
error: unknown type name 'QStringRef'; did you mean 'CFStringRef'?
:info:build inline QDebug &operator<<(const QStringRef & t) {
putString(t.constData(), uint(t.length())); return maybeSpace(); }
:info:build ^
:info:build /opt/homebrew/include/QtCore/qstring.h:36:1: note:
'CFStringRef' declared here
:info:build Q_FORWARD_DECLARE_CF_TYPE(CFString);
:info:build ^
:info:build /opt/homebrew/include/QtCore/qdarwinhelpers.h:24:77: note:
expanded from macro 'Q_FORWARD_DECLARE_CF_TYPE'
:info:build # define Q_FORWARD_DECLARE_CF_TYPE(type) typedef const struct
__ ## type * type ## Ref
:info:build
^
:info:build <scratch space>:192:1: note: expanded from here
:info:build CFStringRef
:info:build ^
}}}
So the problem is that you have Homebrew's Qt installed and it is
conflicting with MacPorts' Qt (possibly due to #64111).
Using multiple package managers at once is not supported; pick one. If you
pick MacPorts, then please remove Homebrew, then `sudo port clean
SDRangel`, then try again.
--
Ticket URL: <https://trac.macports.org/ticket/68866#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list