#68866 closed defect (invalid)

SDRangel @7.13.0_0: error: unknown type name 'QStringRef'; did you mean 'CFStringRef'?

Reported by: BMeyendriesch (Burkard Meyendriesch) Owned by: ra1nb0w
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: bmeyendriesch@…, michaelld (Michael Dickens)
Port: SDRangel

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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

Attachments (1)

main.log (8.3 MB) - added by BMeyendriesch (Burkard Meyendriesch) 11 months ago.
main.log

Change History (7)

Changed 11 months ago by BMeyendriesch (Burkard Meyendriesch)

Attachment: main.log added

main.log

comment:1 Changed 11 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: michaelld added
Description: modified (diff)
Milestone: MacPorts Future
Owner: set to ra1nb0w
Port: SDRangel added; sdrangel removed
Status: newassigned
Summary: SDRangel 7.13.0_0 install failure on M1 Mac with OSX 14.1.2SDRangel @7.13.0_0: error: unknown type name 'QStringRef'; did you mean 'CFStringRef'?

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.

comment:2 Changed 11 months ago by ra1nb0w

thanks @ryandesign for the support.

comment:3 Changed 11 months ago by BMeyendriesch (Burkard Meyendriesch)

I removed HomeBrew, did "sudo clean SDRangel" and now "sudo install SDRangel" compiles without errors.

Thank you for your support!

comment:4 Changed 11 months ago by ra1nb0w

Resolution: fixed
Status: assignedclosed

comment:5 Changed 11 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: closedreopened

We didn't fix anything.

comment:6 Changed 11 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: reopenedclosed
Note: See TracTickets for help on using tickets.