How to use OpenCV on Qt 6 on MacOS Monterey - c++

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.

Related

Do I need to install Mingw compiler components in Qt installation if i had already installed Mingw in my computer?

I installing Qt open source framework in my window 10 pc. I already downloaded Mingw compiler and installed it to write C/C++. Now I wanna learn QT framework. I using Qt online installer. I choice to download custom compoment. Do I need to selet mingw component to download if i had already installed?
Note that there's not just one MinGW distribution and version out there. You can check out the exact supported version per Qt release at https://wiki.qt.io/MinGW .
Anyhow, if you install the pre-built Qt binaries via the online installer, the matching MinGW version will automatically be installed for you, and will be registered in Qt Creator so that things just work. There is actually no official way to prevent this.

how to build openPose in QT Project?

I'm Student, in Korea.
um..sorry about that I am not good in English.
so I used translate program KOR to ENG.
I succeed test opnePose demo.
I want to build openPose GUI Program.
But, I can't build project openPose with QT.
Cannot find with_qt in cmake-gui.
enter image description here
how to build openPose project with QT?
Help me please..I stayed up three nights...
I want to complete this project.
*Development Environment
Win 10 64 Pro
Visual Studio 2017 Community
CMake 3.13.3
Openpose 1.4.0
CUDA 8.0.61 win 10
Cudnn 8.0 win 10 64 v5.1
I believe your question is how to enable QT in the OpenCV that openpose uses. You are looking for a WITH_QT option as you saw in OpenCV, but one is not present in OpenPose.
This is because openpose does not come with opencv, but will use the opencv that you provide it. If you have built opencv with Qt, provide that version to openpose by setting the OpenCV_DIR to the path of your OpenCV install.

QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled

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

c++ Qt Qwt build issue

I a Qt neophyte so I apologize in advance if this question is obvious...
I just downloaded and installed the latest version of Qt Creator 5 as well as Qwt (Qt Widgets for Technical Applications) on my Windows7 machine.
Qwt.pro does not build using QT Creator on my windows machine.
It all worked fine on my Ubuntu machine using Qt Creator 4.
Is there a compatibility issue with Qwt and the newest version of Qt??
Have you installed the MinGW version Qt? If not make sure you have installed Visual Studio, which contains the MSVC compiler. To get started use the MinGW version, the MSVC compiler is faster on Windows but more complicated to set up. For testing run qmake in your Qwt directory directly from the Qt console (start menu). Also make sure you can build a simple hello world project with Qt Creator first.

How to build native apps for Gentoo 64bit (Linux kernel 2.6) using Qt SDK?

unfortunately I am new to Linux. I have made a virtual machine with Linux Mint 13 (32bit), installed Qt 5.0 with Qt Creator. I was given a task to create a simple FastCGI app for the server running Gentoo 64bit. This app must use Qt stuff.
The installation of 64bit Qt 5.0 through SSH failed due to the libSM.so.6 (shared object) absense.
How can I make this stuff work? Should I create another VM with Gentoo 64bit in order to train with Qt installation and not to mix 32bit and 64bit? My simple FastCGI app will work as a backend for a site.
You can develop everywhere you want. When you want to deploy, simply build the project on the Gentoo machine.
Note that you don't need to install Qt 5 manually on Gentoo. It is offered in the "qt" overlay. You add it with layman:
layman -a qt
Then you can emerge the Qt components you need by using slot 5. For example, to get Qt Core:
emerge -a qt-core:5
If you have never used Layman before, it's in the "app-portage/layman" package and you can find docs here:
http://layman.sourceforge.net