我正在尝试将此项目移植到 Mac OSX 10.8.5,它最初是在 Windows Vista 和 Windows 7 上设计和测试的,我严格遵守 Qt 框架。
https://github.com/wiseguy12851/AlarmClock
使用 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.
当应用程序启动时,我注意到一些东西的对齐或布局方式有些奇怪,这是正常的,通常可以很容易地修复,但在测试声音输出时没有播放。然后我去调试,看看是否调用了声音方法,发现它是但没有播放。
该调试还在启动前发出了大量错误和/或警告消息,以下是启动前一次调试中的所有消息。
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;
.cpp 文件:
player(new QMediaPlayer(this)),
...
player->setMedia(QUrl("qrc:///sound"));
...
player->play();
应该注意的是它可以在 Windows 上完美运行,我认为 Qt 搞砸了我的 mac 上的编译