Raspberry Pi QT 5.9.2 -qt.camera not working (no service found for - “org.qt-project.qt.camera”
I want to run a simple sample camera application but I have this error:
defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.camera" Note: I install Qt 5.9.2 in Raspberry Pi3 (Raspbian).
Note: I install this packages but not benefit.
sudo apt-get install libqt5multimedia5-plugins qtmultimedia5-dev sudo apt-get install gstreamer-tools sudo apt-get install gstreamer1.0-tools sudo apt-get dist-upgrade sudo apt-get install qtmultimedia5-dev libqt5multimediawidgets5 libqt5multimedia5-plugins libqt5multimedia5 sudo apt-get build-dep qtmultimedia5-dev
@neda Those sudo apt-get install you did on your host machine or RaspberryPi?
Also, you said you installed Qt 5.9.2. Those sudo apt-get install will not help you on RaspberryPi as it will install another Qt version not related to your Qt 5.9.2.
How did you install Qt 5.9.2?
Those sudo apt-get install you did on your host machine or RaspberryPi?
@jsulm How did you install Qt 5.9.2?
@neda Then all those apt-get install will not help you. When you built Qt did you build qtmultimedia?
When you built Qt did you build qtmultimedia?
I don't know. How build qtmultimedia?
@neda Sorry, forget my last question: you have QtMultimedia, else you would not be able to build your app.
Try to set QT_DEBUG_PLUGINS=1 in a terminal (or QtCreator Run settings for your project) and then start your app there, then post the output here:
QT_DEBUG_PLUGINS=1 && ./my_app
Try to set QT_DEBUG_PLUGINS=1 in a terminal
I execute this commands in terminal:
$ export QT_PLUGIN_PATH=/usr/local/plugins/ $ export QT_DEBUG_PLUGINS=1
@jsulm then start your app there
Did you mean to run from terminal?
I start my app in Qt Creator in Raspberry.
Starting /home/pi/build-untitled-Desktop-Debug/untitled... QML debugging is enabled. Only use this in a safe environment. Unable to query physical screen size, defaulting to 100 dpi. To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters). JIT is disabled for QML. Property bindings and animations will be very slow. Visit https://wiki.qt.io/V4 to learn about possible solutions for your platform. defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.camera" transient parent ApplicationWindow_QMLTYPE_11(0xe66fc8) can not be same as window