Open gatspy opened 8 years ago
已更新pyqt到5.5.1 还是出现上述错误
你的Qt安装了QtMultimedia这个模块?
一个是Qt的QtMultimedia, qml的绑定qml-module-qtmultimedia, pyqt5.5.1的python-pyqt5.qtmultimedia三个模块都要安装
Qt5的QtMultimedia ~/App/Qt5/5.5/clang_64/lib/QtMultimedia.framework QML的 ~/App/Qt5/5.5/clang_64/qml/QtMultimedia/libdeclarative_multimedia.dylib pyqt的 /usr/local/var/lib/pyenv/versions/myenv/lib/python2.7/site-packages/PyQt5/QtMultimedia.so 请指导
我这边没有mac的环境,你可以这样,直接利用pyqt写个简单的demo,就跑qml提供的multimedia例子,看能否跑起来
mac下python2.7.10 ptqt 5.5.0 python main.py --运行出现下面的错误,求解答啊 defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer" file:///Volumes/Home/Work/python/QMusic/src/views/Main.qml:29:5: Type MainWindow unavailable MainWindow { ^ file:///Volumes/Home/Work/python/QMusic/src/views/MainWindow/MainWindow.qml:5:1: plugin cannot be loaded for module "QtMultimedia": Cannot load library /Volumes/Home/App/Qt5/5.5/clang_64/qml/QtMultimedia/libdeclarative_multimedia.dylib: (dlopen(/Volumes/Home/App/Qt5/5.5/clang_64/qml/QtMultimedia/libdeclarative_multimedia.dylib, 5): Library not loaded: @rpath/QtMultimediaQuick_p.framework/Versions/5/QtMultimediaQuick_p Referenced from: /Volumes/Home/App/Qt5/5.5/clang_64/qml/QtMultimedia/libdeclarative_multimedia.dylib Reason: image not found) import QtMultimedia 5.0 ^ QSGContext::initialize: depth buffer support missing, expect rendering errors QSGContext::initialize: stencil buffer support missing, expect rendering errors