Macos 将Qt项目移植到Mac时没有声音和其他问题

Macos 将Qt项目移植到Mac时没有声音和其他问题,macos,qt,audio,porting,qmediaplayer,Macos,Qt,Audio,Porting,Qmediaplayer,我正在尝试将这个项目移植到MacOSX10.8.5,它最初是在WindowsVista和Windows7上设计和测试的,我严格遵守Qt框架 在使用clang编译器使用Qt Creator 5.1.1进行编译之后,我在调试模式下运行了该项目,在应用程序启动之前出现了许多奇怪的错误 objc[3522]: Class AVFCaptureFramesDelegate is implemented in both /Users/***/Qt5.1.1/5.1.1/clang_64/plugins/m

我正在尝试将这个项目移植到MacOSX10.8.5,它最初是在WindowsVista和Windows7上设计和测试的,我严格遵守Qt框架

在使用clang编译器使用Qt Creator 5.1.1进行编译之后,我在调试模式下运行了该项目,在应用程序启动之前出现了许多奇怪的错误

objc[3522]: Class AVFCaptureFramesDelegate is implemented in both /Users/***/Qt5.1.1/5.1.1/clang_64/plugins/mediaservice/libqavfcamera.dylib and /Users/***/Qt5.1.1/5.1.1/clang_64/plugins/mediaservice/libqavfcamera_debug.dylib. One of the two will be used. Which one is undefined.
objc[3522]: Class AVFMediaRecorderDelegate is implemented in both /Users/***/Qt5.1.1/5.1.1/clang_64/plugins/mediaservice/libqavfcamera.dylib and /Users/***/Qt5.1.1/5.1.1/clang_64/plugins/mediaservice/libqavfcamera_debug.dylib. One of the two will be used. Which one is undefined.
objc[3522]: Class AVFCameraSessionObserver is implemented in both /Users/***/Qt5.1.1/5.1.1/clang_64/plugins/mediaservice/libqavfcamera.dylib and /Users/***/Qt5.1.1/5.1.1/clang_64/plugins/mediaservice/libqavfcamera_debug.dylib. One of the two will be used. Which one is undefined.
objc[3522]: Class AVFMediaPlayerSessionObserver is implemented in both /Users/***/Qt5.1.1/5.1.1/clang_64/plugins/mediaservice/libqavfmediaplayer.dylib and /Users/***/Qt5.1.1/5.1.1/clang_64/plugins/mediaservice/libqavfmediaplayer_debug.dylib. One of the two will be used. Which one is undefined.
objc[3522]: Class TransparentQTMovieView is implemented in both /Users/***/Qt5.1.1/5.1.1/clang_64/plugins/mediaservice/libqqt7engine.dylib and /Users/***/Qt5.1.1/5.1.1/clang_64/plugins/mediaservice/libqqt7engine_debug.dylib. One of the two will be used. Which one is undefined.
objc[3522]: Class HiddenQTMovieView is implemented in both /Users/***/Qt5.1.1/5.1.1/clang_64/plugins/mediaservice/libqqt7engine.dylib and /Users/***/Qt5.1.1/5.1.1/clang_64/plugins/mediaservice/libqqt7engine_debug.dylib. One of the two will be used. Which one is undefined.
objc[3522]: Class QTMovieObserver is implemented in both /Users/***/Qt5.1.1/5.1.1/clang_64/plugins/mediaservice/libqqt7engine.dylib and /Users/***/Qt5.1.1/5.1.1/clang_64/plugins/mediaservice/libqqt7engine_debug.dylib. One of the two will be used. Which one is undefined.
当应用程序启动时,我注意到一些奇怪的东西在排列或布局的方式,这是正常的,通常可以很容易地修复,但在测试的声音输出没有播放。然后我去调试,看看是否调用了sound方法,结果发现它是,但没有播放任何东西

调试在启动前也发出了大量错误和/或警告消息,下面是启动前一次调试中的所有消息

Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtbase/src/plugins/platforms/minimal/.obj/debug-shared/main.o" - no debug information available for "main.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtbase/src/plugins/platforms/minimal/.obj/debug-shared/qminimalintegration.o" - no debug information available for "qminimalintegration.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtbase/src/plugins/platforms/minimal/.obj/debug-shared/qminimalbackingstore.o" - no debug information available for "qminimalbackingstore.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtbase/lib/libQt5PlatformSupport_debug.a(qunixeventdispatcher.o)" - no debug information available for "eventdispatchers/qunixeventdispatcher.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtbase/lib/libQt5PlatformSupport_debug.a(qgenericunixeventdispatcher.o)" - no debug information available for "eventdispatchers/qgenericunixeventdispatcher.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtbase/lib/libQt5PlatformSupport_debug.a(moc_qunixeventdispatcher_qpa_p.o)" - no debug information available for ".moc/debug-shared/moc_qunixeventdispatcher_qpa_p.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtbase/src/plugins/platforms/offscreen/.obj/debug-shared/main.o" - no debug information available for "main.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtbase/src/plugins/platforms/offscreen/.obj/debug-shared/qoffscreenintegration.o" - no debug information available for "qoffscreenintegration.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtbase/src/plugins/platforms/offscreen/.obj/debug-shared/qoffscreenwindow.o" - no debug information available for "qoffscreenwindow.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtbase/src/plugins/platforms/offscreen/.obj/debug-shared/qoffscreencommon.o" - no debug information available for "qoffscreencommon.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtbase/src/plugins/platforms/offscreen/.obj/debug-shared/qoffscreenintegration_dummy.o" - no debug information available for "qoffscreenintegration_dummy.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtbase/lib/libQt5PlatformSupport_debug.a(qunixeventdispatcher.o)" - no debug information available for "eventdispatchers/qunixeventdispatcher.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtbase/lib/libQt5PlatformSupport_debug.a(qgenericunixeventdispatcher.o)" - no debug information available for "eventdispatchers/qgenericunixeventdispatcher.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtbase/lib/libQt5PlatformSupport_debug.a(moc_qunixeventdispatcher_qpa_p.o)" - no debug information available for ".moc/debug-shared/moc_qunixeventdispatcher_qpa_p.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/avfoundation/camera/.obj/debug-shared/avfcameraserviceplugin.o" - no debug information available for "avfcameraserviceplugin.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/avfoundation/camera/.obj/debug-shared/avfcameracontrol.o" - no debug information available for "avfcameracontrol.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/avfoundation/camera/.obj/debug-shared/avfvideorenderercontrol.o" - no debug information available for "avfvideorenderercontrol.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/avfoundation/camera/.obj/debug-shared/avfcamerametadatacontrol.o" - no debug information available for "avfcamerametadatacontrol.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/avfoundation/camera/.obj/debug-shared/avfimagecapturecontrol.o" - no debug information available for "avfimagecapturecontrol.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/avfoundation/camera/.obj/debug-shared/avfmediarecordercontrol.o" - no debug information available for "avfmediarecordercontrol.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/avfoundation/camera/.obj/debug-shared/avfcameraservice.o" - no debug information available for "avfcameraservice.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/avfoundation/camera/.obj/debug-shared/avfcamerasession.o" - no debug information available for "avfcamerasession.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/avfoundation/camera/.obj/debug-shared/avfstoragelocation.o" - no debug information available for "avfstoragelocation.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/avfoundation/camera/.obj/debug-shared/avfvideodevicecontrol.o" - no debug information available for "avfvideodevicecontrol.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/avfoundation/camera/.obj/debug-shared/avfaudioinputselectorcontrol.o" - no debug information available for "avfaudioinputselectorcontrol.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/avfoundation/camera/.obj/debug-shared/moc_avfcameraserviceplugin.o" - no debug information available for ".moc/debug-shared/moc_avfcameraserviceplugin.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/avfoundation/mediaplayer/.obj/debug-shared/avfmediaplayercontrol.o" - no debug information available for "avfmediaplayercontrol.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/avfoundation/mediaplayer/.obj/debug-shared/avfmediaplayermetadatacontrol.o" - no debug information available for "avfmediaplayermetadatacontrol.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/avfoundation/mediaplayer/.obj/debug-shared/avfmediaplayerservice.o" - no debug information available for "avfmediaplayerservice.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/avfoundation/mediaplayer/.obj/debug-shared/avfmediaplayerserviceplugin.o" - no debug information available for "avfmediaplayerserviceplugin.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/avfoundation/mediaplayer/.obj/debug-shared/avfmediaplayersession.o" - no debug information available for "avfmediaplayersession.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/avfoundation/mediaplayer/.obj/debug-shared/avfvideorenderercontrol.o" - no debug information available for "avfvideorenderercontrol.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/avfoundation/mediaplayer/.obj/debug-shared/avfdisplaylink.o" - no debug information available for "avfdisplaylink.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/avfoundation/mediaplayer/.obj/debug-shared/avfvideoframerenderer.o" - no debug information available for "avfvideoframerenderer.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/avfoundation/mediaplayer/.obj/debug-shared/avfvideowidgetcontrol.o" - no debug information available for "avfvideowidgetcontrol.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/avfoundation/mediaplayer/.obj/debug-shared/avfvideowidget.o" - no debug information available for "avfvideowidget.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/avfoundation/mediaplayer/.obj/debug-shared/moc_avfmediaplayercontrol.o" - no debug information available for ".moc/debug-shared/moc_avfmediaplayercontrol.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/avfoundation/mediaplayer/.obj/debug-shared/moc_avfmediaplayermetadatacontrol.o" - no debug information available for ".moc/debug-shared/moc_avfmediaplayermetadatacontrol.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/avfoundation/mediaplayer/.obj/debug-shared/moc_avfmediaplayersession.o" - no debug information available for ".moc/debug-shared/moc_avfmediaplayersession.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/avfoundation/mediaplayer/.obj/debug-shared/moc_avfmediaplayerserviceplugin.o" - no debug information available for ".moc/debug-shared/moc_avfmediaplayerserviceplugin.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/avfoundation/mediaplayer/.obj/debug-shared/moc_avfvideorenderercontrol.o" - no debug information available for ".moc/debug-shared/moc_avfvideorenderercontrol.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/avfoundation/mediaplayer/.obj/debug-shared/moc_avfdisplaylink.o" - no debug information available for ".moc/debug-shared/moc_avfdisplaylink.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/avfoundation/mediaplayer/.obj/debug-shared/moc_avfvideowidgetcontrol.o" - no debug information available for ".moc/debug-shared/moc_avfvideowidgetcontrol.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/qt7/.obj/debug-shared/qt7backend.o" - no debug information available for "qt7backend.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/qt7/.obj/debug-shared/qt7serviceplugin.o" - no debug information available for "qt7serviceplugin.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/qt7/.obj/debug-shared/qt7movieviewoutput.o" - no debug information available for "qt7movieviewoutput.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/qt7/.obj/debug-shared/qt7movierenderer.o" - no debug information available for "qt7movierenderer.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/qt7/.obj/debug-shared/qt7ciimagevideobuffer.o" - no debug information available for "qt7ciimagevideobuffer.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/qt7/.obj/debug-shared/qcvdisplaylink.o" - no debug information available for "qcvdisplaylink.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/qt7/.obj/debug-shared/qt7movieviewrenderer.o" - no debug information available for "qt7movieviewrenderer.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/qt7/.obj/debug-shared/qt7movievideowidget.o" - no debug information available for "qt7movievideowidget.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/qt7/.obj/debug-shared/qt7playercontrol.o" - no debug information available for "mediaplayer/qt7playercontrol.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/qt7/.obj/debug-shared/qt7playermetadata.o" - no debug information available for "mediaplayer/qt7playermetadata.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/qt7/.obj/debug-shared/qt7playerservice.o" - no debug information available for "mediaplayer/qt7playerservice.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/qt7/.obj/debug-shared/qt7playersession.o" - no debug information available for "mediaplayer/qt7playersession.mm".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/qt7/.obj/debug-shared/moc_qt7videooutput.o" - no debug information available for ".moc/debug-shared/moc_qt7videooutput.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/qt7/.obj/debug-shared/moc_qt7serviceplugin.o" - no debug information available for ".moc/debug-shared/moc_qt7serviceplugin.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/audiocapture/.obj/debug-shared/audioencodercontrol.o" - no debug information available for "audioencodercontrol.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/audiocapture/.obj/debug-shared/audiocontainercontrol.o" - no debug information available for "audiocontainercontrol.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/audiocapture/.obj/debug-shared/audiomediarecordercontrol.o" - no debug information available for "audiomediarecordercontrol.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/audiocapture/.obj/debug-shared/audioinputselector.o" - no debug information available for "audioinputselector.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/audiocapture/.obj/debug-shared/audiocaptureservice.o" - no debug information available for "audiocaptureservice.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/audiocapture/.obj/debug-shared/audiocaptureserviceplugin.o" - no debug information available for "audiocaptureserviceplugin.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/audiocapture/.obj/debug-shared/audiocapturesession.o" - no debug information available for "audiocapturesession.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/audiocapture/.obj/debug-shared/audiocaptureprobecontrol.o" - no debug information available for "audiocaptureprobecontrol.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/audiocapture/.obj/debug-shared/moc_audioencodercontrol.o" - no debug information available for ".moc/debug-shared/moc_audioencodercontrol.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/audiocapture/.obj/debug-shared/moc_audiocontainercontrol.o" - no debug information available for ".moc/debug-shared/moc_audiocontainercontrol.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/audiocapture/.obj/debug-shared/moc_audiomediarecordercontrol.o" - no debug information available for ".moc/debug-shared/moc_audiomediarecordercontrol.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/audiocapture/.obj/debug-shared/moc_audioinputselector.o" - no debug information available for ".moc/debug-shared/moc_audioinputselector.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/audiocapture/.obj/debug-shared/moc_audiocaptureservice.o" - no debug information available for ".moc/debug-shared/moc_audiocaptureservice.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/audiocapture/.obj/debug-shared/moc_audiocaptureserviceplugin.o" - no debug information available for ".moc/debug-shared/moc_audiocaptureserviceplugin.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/audiocapture/.obj/debug-shared/moc_audiocapturesession.o" - no debug information available for ".moc/debug-shared/moc_audiocapturesession.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtmultimedia/src/plugins/audiocapture/.obj/debug-shared/moc_audiocaptureprobecontrol.o" - no debug information available for ".moc/debug-shared/moc_audiocaptureprobecontrol.cpp".
objc[3570]: Class AVFCaptureFramesDelegate is implemented in both /Users/***/Qt5.1.1/5.1.1/clang_64/plugins/mediaservice/libqavfcamera.dylib and /Users/***/Qt5.1.1/5.1.1/clang_64/plugins/mediaservice/libqavfcamera_debug.dylib. One of the two will be used. Which one is undefined.
objc[3570]: Class AVFMediaRecorderDelegate is implemented in both /Users/***/Qt5.1.1/5.1.1/clang_64/plugins/mediaservice/libqavfcamera.dylib and /Users/***/Qt5.1.1/5.1.1/clang_64/plugins/mediaservice/libqavfcamera_debug.dylib. One of the two will be used. Which one is undefined.
objc[3570]: Class AVFCameraSessionObserver is implemented in both /Users/***/Qt5.1.1/5.1.1/clang_64/plugins/mediaservice/libqavfcamera.dylib and /Users/***/Qt5.1.1/5.1.1/clang_64/plugins/mediaservice/libqavfcamera_debug.dylib. One of the two will be used. Which one is undefined.
objc[3570]: Class AVFMediaPlayerSessionObserver is implemented in both /Users/***/Qt5.1.1/5.1.1/clang_64/plugins/mediaservice/libqavfmediaplayer.dylib and /Users/***/Qt5.1.1/5.1.1/clang_64/plugins/mediaservice/libqavfmediaplayer_debug.dylib. One of the two will be used. Which one is undefined.
objc[3570]: Class TransparentQTMovieView is implemented in both /Users/***/Qt5.1.1/5.1.1/clang_64/plugins/mediaservice/libqqt7engine.dylib and /Users/***/Qt5.1.1/5.1.1/clang_64/plugins/mediaservice/libqqt7engine_debug.dylib. One of the two will be used. Which one is undefined.
objc[3570]: Class HiddenQTMovieView is implemented in both /Users/***/Qt5.1.1/5.1.1/clang_64/plugins/mediaservice/libqqt7engine.dylib and /Users/***/Qt5.1.1/5.1.1/clang_64/plugins/mediaservice/libqqt7engine_debug.dylib. One of the two will be used. Which one is undefined.
objc[3570]: Class QTMovieObserver is implemented in both /Users/***/Qt5.1.1/5.1.1/clang_64/plugins/mediaservice/libqqt7engine.dylib and /Users/***/Qt5.1.1/5.1.1/clang_64/plugins/mediaservice/libqqt7engine_debug.dylib. One of the two will be used. Which one is undefined.
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtsvg/src/plugins/iconengines/svgiconengine/.obj/debug-shared/main.o" - no debug information available for "main.cpp".
Could not find object file "/Users/bld.qt/bamboo-agent-home/xml-data/build-dir/DQTC-LGPLRELEASEBUILD510-OSX106/qt5_workdir/w/s/qtsvg/src/plugins/iconengines/svgiconengine/.obj/debug-shared/qsvgiconengine.o" - no debug information available for "qsvgiconengine.cpp".
我一辈子都搞不懂这一切,任何代码引用都可以通过github链接完成

.pro文件如下

cache()

#-------------------------------------------------
#
# Project created by QtCreator 2013-10-28T05:20:59
#
#-------------------------------------------------

QT       += core gui multimedia

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = AlarmClock
TEMPLATE = app

SOURCES += main.cpp\
        windowmain.cpp

HEADERS  += windowmain.h

FORMS    += windowmain.ui

RESOURCES += \
    resources.qrc

OTHER_FILES += \
    Alarm.rc

win32:RC_FILE += Alarm.rc
这是我想做的最起码的一点

.h文件:

#include <QMediaPlayer>
...
QMediaPlayer* player;

应该注意的是,它在Windows上运行得非常好,我认为Qt会把我mac上的编译搞得一团糟。问题在于错误消息,如果你仔细阅读,它就不会那么奇怪了。只需在第一行中比较以下路径:-

类AVFCaptureFramesDelegate在两个

libqavfcamera.dylib和libqavfcamera_uu调试.dylib


因此,链接库的发布版本和调试版本混合在一起,这很可能是导致出现不一致的原因。把这些整理好,错误就会消失,你的声音也会回来。

问题在于错误信息,如果你仔细阅读,它就不会那么奇怪了。只需在第一行中比较以下路径:-

类AVFCaptureFramesDelegate在两个

libqavfcamera.dylib和libqavfcamera_uu调试.dylib



因此,链接库的发布版本和调试版本混合在一起,这很可能是导致出现不一致的原因。解决这个问题,错误就会消失,你的声音应该会回来。

在发布模式下警告会消失吗?另外,尝试提供一个简单的示例,而不是链接到github。是的,它在发布模式下也会这样做。我很乐意给出一个最小的例子,但我不确定你的意思,因为文件相当大,在其中给出一个或两个方法没有多大意义。我添加了一些在我的程序中提到的声音作为最小的例子,这就是你所说的最小的例子吗?警告在发布模式下会消失吗?还有,尝试提供一个简单的例子,而不是链接到github。是的,它在发布模式下也做同样的事情。我很乐意给出一个简单的例子,但我不确定你的意思,因为这个文件相当大,在其中给出一个或两个方法没有多大意义。我添加了一些在我的程序中提到的声音,作为一个简单的例子,这就是你所说的一个简单的例子吗?我尝试过整理它,我在谷歌上找不到任何关于两个被链接的库的东西,我已经三次检查了所有的构建参数和所有东西。一切看起来都很好,但似乎都不起作用。我在调试和发布时都会遇到相同的错误。在清除了release或debug文件夹中的所有内容后,它又提出了另一个抱怨,即该版本的OSX不受支持,这让我很难相信,因为我运行的是OSX 10.8.5,而Qt说clang支持10.6及以上版本。我完全迷路了。你能把你的.pro的内容添加到问题中吗?我从gibhub下载了你的项目(看起来不错!)。从.pro中删除行“greaterThan(QT_MAJOR_VERSION,4):QT+=widgets”后,它为我构建并运行良好,但我没有听到任何声音。我注意到的一件事是,资源中有声音文件。除非对Qt 5进行了更改,否则从从未使用过的资源加载音频文件是可行的。另外请注意,在连接播放机的错误信号,然后使用player->errorString()获取错误时,它表示在尝试加载媒体文件时找不到该文件。您是否在Mac或Windows上测试声音,在Windows上,声音对我来说很好,因此我从未想过测试错误,在Mac上,我从未想过测试错误,因为有一百万个错误。谢谢,我将进行测试,看看是否会出现相同的错误,但我该如何处理所有其他错误。我尝试过对其进行分类,我在Google上的两个链接库上都找不到任何东西,我已经对所有构建参数和所有内容进行了三次检查。一切看起来都很好,但似乎都不起作用。我在调试和发布时都会遇到相同的错误。在清除了release或debug文件夹中的所有内容后,它又提出了另一个抱怨,即该版本的OSX不受支持,这让我很难相信,因为我运行的是OSX 10.8.5,而Qt说clang支持10.6及以上版本。我完全迷路了。你能把你的.pro的内容添加到问题中吗?我从gibhub下载了你的项目(看起来不错!)。从.pro中删除行“greaterThan(QT_MAJOR_VERSION,4):QT+=widgets”后,它为我构建并运行良好,但我没有听到任何声音。我注意到的一件事是,资源中有声音文件。除非对Qt 5进行了更改,否则从从未使用过的资源加载音频文件是可行的。另外请注意,在连接播放机的错误信号,然后使用player->errorString()获取错误时,它表示在尝试加载媒体文件时找不到该文件。您是否在Mac或Windows上测试声音,在Windows上,声音对我来说很好,因此我从未想过测试错误,在Mac上,我从未想过测试错误,因为有一百万个错误。谢谢,我会进行测试,看看是否会出现同样的错误,但是d是什么
player(new QMediaPlayer(this)),
...
player->setMedia(QUrl("qrc:///sound"));
...
player->play();