Opened 2 weeks ago

Last modified 43 hours ago

#70865 assigned defect

qt6-qtmultimedia: error: use of undeclared identifier 'kAudioObjectPropertyElementMain'

Reported by: mouse07410 (Mouse) Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version:
Keywords: bigsur Cc: reneeotten (Renee Otten)
Port: qt6-qtmultimedia

Description

$ sudo port upgrade qt6-qtmultimedia
.  .  .
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt6/qt6-qtmultimedia/work/qtmultimedia-everywhere-src-6.7.2/src/multimedia/darwin/qdarwinaudiodevice.mm:11:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt6/qt6-qtmultimedia/work/qtmultimedia-everywhere-src-6.7.2/src/multimedia/darwin/qmacosaudiodatautils_p.h:47:58: error: use of undeclared identifier 'kAudioObjectPropertyElementMain'; did you mean 'kAudioObjectPropertyElementName'?
:info:build                     AudioObjectPropertyElement element = kAudioObjectPropertyElementMain)
:info:build                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build                                                          kAudioObjectPropertyElementName
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardwareBase.h:331:5: note: 'kAudioObjectPropertyElementName' declared here
:info:build     kAudioObjectPropertyElementName         = 'lchn',
:info:build     ^
:info:build 1 error generated.
:info:build [202/375] Building OBJCXX object src/multimedia/CMakeFiles/Multimedia.dir/darwin/qcoreaudioutils.mm.o
:info:build [203/375] Building OBJCXX object src/multimedia/CMakeFiles/Multimedia.dir/darwin/qdarwinaudiosource.mm.o
:info:build [204/375] Building OBJCXX object src/multimedia/CMakeFiles/Multimedia.dir/darwin/qdarwinaudiosink.mm.o
:info:build ninja: build stopped: subcommand failed.
.  .  .

An old MacOS (11.7.10), Macports-installed Clang-16.

Change History (2)

comment:1 Changed 2 weeks ago by ryandesign (Ryan Carsten Schmidt)

Cc: MarcusCalhoun-Lopez removed
Keywords: bigsur added
Owner: set to MarcusCalhoun-Lopez
Status: newassigned
Summary: Fails to compileqt6-qtmultimedia: error: use of undeclared identifier 'kAudioObjectPropertyElementMain'

Please attach the main.log file.

comment:2 Changed 3 days ago by mouse07410 (Mouse)

Help would be appreciated! This problem prevents upgrades of other Macports packages (e.g., mkvtoolnix and x264transcode).

Also, same problem with Macports-installed clang-18, and with Xcode-provided clang-13.

Last edited 43 hours ago by mouse07410 (Mouse) (previous) (diff)
Note: See TracTickets for help on using tickets.