The camera example provided in the qt documentation is not working, returning the following erro:
defaultServiceProvider::requestService(): no service found for -
"org.qt-project.qt.camera"
https://doc.qt.io/qt-5/qtmultimedia-multimediawidgets-camera-example.html
Note: I'm using Ubuntu 16.04 LTS
Note: I have webcam embedded in my notebook
Note: I'm using qt 5.7
Related
I am trying to create an application on Qt 6.4 for facial recognition. For this, I want to use OpenCV4. I am using a widget-based application with qmake on QtCreator.
How am I supposed to use OpenCV in this application? I have installed OpenCV using brew on the terminal. What exactly am I supposed to do now?
I have a Mac M2 chip running MacOS 12.5. All the tutorials on the internet are on the outdated versions of Qt and OpenCV which are not working on the current version.
I am trying to build and run a CEF application on Ubuntu 16.04.5 LTS. The application is built using CEF (Chromium Embedded Framework), in C++. I have previously built it on Debian 8.11 with success. The issue is as is shown on the screenshot here. Instead of being just a copy of whatever was behind it, the screen should contain a mini custom web browser. I am pretty sure there is something wrong with the rendering process but I can not describe it in more detail.
The differences I noted are following:
gcc/g++: Debian - 4.9.2 | Ubuntu - 4.9.3
libgtk2.0-0: Debian - 2.24.25-3+deb8u2 | Ubuntu - 2.24.30-1ubuntu1.16.04.2
libgtk-3-0
libgtk-3-0: Debian - 3.14.5-1+deb8u1 | Ubuntu - 3.18.9-1ubuntu3.3
I would be more than happy to provide more info if needed.
I am trying to run this code Domain Transform Filter on Ubuntu 14.04. This code has been originally written on Windows 7 Visual studio. When I try to run this code on Ubuntu, I get the error
error: opencv2/core/internal.hpp: No such file or directory
I tried to download this file for Ubuntu but this is specifically related to Windows.
Is there any way to get this file for Ubuntu ?
Install an older OpenCV.
The file is for instance contained in libopencv-core-dev 2.3.1 on Ubuntu 12.04. (So it is not related to Windows.)
If that is not an option, you probably need to correct your existing code for OpenCV 3.
I'm trying to investigate using off-screen rendering, I would like to explore the examples that are installed with Qt5.5, but so far every attempt to open one of the existing projects and build results in:
QOpenGLWidget: No such file or directory
#include <QOpenGLWidget>
I have not modified the examples in any way, I'm running on Ubuntu 14.04.
The installation of Qt5.5 on Ubuntu 14.04 was not completed correctly, as a result I have two installations 5.2 and 5.5, however thank you to "peppe" I ran Qt Creator for 5.5 and after cleaning up the project by removing the "pro.user" file I was able to progress.
I have a unix binary file built with QT and OpenGL which I'm trying to execute on linux-64. It is a simple visual program that shows 2d and 3d graphics.
I have installed all necessary dependencies such as QT and openGL libraries.
However, I have stuck with the following error trying to execute the binary
QXcbIntegration: Cannot create platform OpenGL context, neither GLX
nor EGL are enabled
However, the binary eventually runs but with some missing features such as 3D graphics.
my setup includes: virtual linux-64 using virtualBox, Vagrant, x-11 forwarding, and a Mac machine.
Eventually I realised that OpenGL 3.3 wouldn't work easily on virtual machines .. yet. I had to boot from ubuntu usb and work from there by installing latest mesa 3d package.
This shows a similar issue and the developer in the comment said our 3D support is not very clean in Linux guests, hence the warnings. You can give a try to VMware.
After some time trying to get some opengl working on a particular locked down linux box, I ended up going back to Qt Creator 2.5.2 .
http://download.qt.io/archive/qtcreator/2.5/
http://download.qt.io/archive/qtcreator/2.5/qt-creator-linux-x86_64-opensource-2.5.2.bin
After getting it on the linux box...
chmod u+x *.bin
./qt-creator-linux-x86_64-opensource-2.5.2.bin
And after a short installer, Qt Creator is working!
Basically QtQuick is a requirement in any Qt Creator built after 2.5 (aka Qt 5.x) and QtQuick NEEDS opengl libraries and support.
Hope that helps.
I see this problem when executing Qt App, I was executing in dash prompt. (Ubuntu 16.04 has dash by default). I changed to bash prompt and rebuilt my QT App. This error is gone.
To configure bash I used below command.
sudo dpkg-reconfigure dash