dragondjf / QMusic

QMusic是基于python + PyQT5 + QML的一款本地音乐播放器,旨在提升Linux下更好的音乐播放体验
http://dragondjf.github.io/QMusic/
GNU Lesser General Public License v2.1
103 stars 30 forks source link

mac下有问题,求助 #2

Open gatspy opened 8 years ago

gatspy commented 8 years ago

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

gatspy commented 8 years ago

已更新pyqt到5.5.1 还是出现上述错误

dragondjf commented 8 years ago

你的Qt安装了QtMultimedia这个模块?

dragondjf commented 8 years ago

一个是Qt的QtMultimedia, qml的绑定qml-module-qtmultimedia, pyqt5.5.1的python-pyqt5.qtmultimedia三个模块都要安装

gatspy commented 8 years ago

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 请指导

dragondjf commented 8 years ago

我这边没有mac的环境,你可以这样,直接利用pyqt写个简单的demo,就跑qml提供的multimedia例子,看能否跑起来