Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mac下有问题,求助 #2

Open
gatspy opened this issue Nov 4, 2015 · 5 comments
Open

mac下有问题,求助 #2

gatspy opened this issue Nov 4, 2015 · 5 comments

Comments

@gatspy
Copy link

gatspy commented Nov 4, 2015

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
Copy link
Author

gatspy commented Nov 5, 2015

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

@dragondjf
Copy link
Owner

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

@dragondjf
Copy link
Owner

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

@gatspy
Copy link
Author

gatspy commented Nov 7, 2015

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants