Error code 0xc0000135 in Qt Creator with OpenCV - c++

Im a novice coder, that needs to make a simple UI - i've chosen to do it in Qt Creator.
As i need to incorporate a webcam feed, i've been advised to use OpenCV.
I've followed the following guide: https://wiki.qt.io/How_to_setup_Qt_and_openCV_on_Windows
However im running into the problem "Error code 0xc0000135" when i try to debug my code.
I've added the different PATHs to the Enviromental Variables as requested in the guide. Anyone with a kind idea of where the issue might lie, or can it be anywhere in the process?
Cheers!

I am going to suggest that unless you are going to do a lot of computer vision stuff, that you leave OpenCV for the native Qt approach which is QMediaPlayer.
In QtCreator the example is built in, just select "Welcome" -> "Examples" -> "search for video player" -> "select example.
Or if you prefer browsing online, here it is.
If you still want to use OpenCV, please add more details to the question so it is easier to help you!

Related

Configure wxwidgets with Codeblocks

I want to build C++ GUI programs using Codeblocks+Wxwidgets+cmake. I tried to configure Wxwidgets with codeblocks IDE following the instructions given in the wxWidgets Discussion Forum as well as other Youtube tutorials.
I followed the youtube tutorials below.
Youtube tutorial
But, when 'DEBUG' and 'RELEASE' are being built, it keeps showing some kind of errors. As a result, the building was failed.
Please help me to solve this or suggest another easy way to do C++ GUI projects.
Thank you!
There is an excellent document explaining how to set up C::B with wxWidgets. It can be found here.
It is not about CMake-thingy, but it is written with enough details to help people understand how to setup the IDE.
So I suggest to delete C::B, delete wxWidgets, delete all projects you setup before and start all over, following the instructions from PB to a T.
If you hit a wall or something will not work - please comeback with the exact explanation.

How to install Qt to work with OpenCV and Visual Studio 2022

I am sorry if this question is already asked but, from every source I have read on google so far they don't cover the most latest versions and I am having a lot of trouble figuring this out.
I have a VS code for detecting faces and saving the ROI onto the desktop. Now, I need to add the functionality for force capture and need to employ GUI for it which openCV is not good enough for. I have been told to use Qt. For more than a week now I have been stuck at simply installing Qt and getting it to work. If anyone could help me out in-line with my project's purpose I would greatly appreciate it.
Every time I install I get some sort of different error which I am not able to understand (complete beginner here), the latest one I got was that Qt could not find the "Kit", even though the dialog box displayed the available ones (Mingw 2022).
Thanks in advance!

How to display an image with Skia on a Win32 Project (C++)

All right. I just a student from China. You know it is hard to visit the official website. So I had to download Skia from GitHub, and I use JetBrains pre-built version.
Recently I am trying to display a picture on a Win32 program. But almost everything I got is to include SkImageDecoder.h and a function SkImageDecode to read an image into SkBitmap. However, I can't find it. So I think it may have been removed.
I got mad because of it. So anyone is OK. I really HOPE somebody can solve my problem.
Thanks a lot!!!

CodeBlocks 13.12 adding sound

Hello I just started learning c++, and my teacher wants us to create a game for our final exam.
I am using CodeBlocks 13.12 and can't seem to be able to add any game sound. I just need to play a simple .wav file if you guys could show me how that would look I'd greatly appreciate it.
The teacher made adding sound extra credit because he didn't actually show us how to do that. I have no clue as to how to do it so please show if I have to change anything in the settings.
I haven't worked much with audio files either, but a quick search turned up the following links:
StackOverflow: Playing a wav file
CodeProject: Audio files in c++
It looks that (for Windows at least) you can use
PlaySound
Check out the Windows documentation for PlaySound and make sure to include windows.h!
#include <windows.h>
Note: I should expand on AdamS's comment. CodeBlocks is your Integrated Development Environment (IDE). Your question is specific to the language C++ but not to the IDE CodeBlocks. If your code is correct but you still can't hear the sounds, then it could be an issue with your IDE or your computer.

OpenCV - How do I get started?

I just don't seem to be able to get OpenCV to work properly. Here's what I want to accomplish:
Use CodeBlocks (which I installed using codeblocks-10.05mingw-setup.exe) with OpenCV (installer: OpenCV-2.4.2.exe) on my Windows x64.
I've tried a lot of different configurations which will only bother you if I posted them all, so I hope you don't mind if I just ask the simple question: how do I get this to work?
I think I'm missing the smallest detail right now, so a detailed description of how to get started would be welcome.
If the OpenCV installer did the job, you should have by now OpenCV libraries and headers already installed in your system.
I would then go ahead and try to compile a hello world basic code, like the one you can get from here. If you would like to program using an IDE, like VisualC++ in Windows, you can follow this guide that will help you setting up the environment.
OpenCV team just introduced their new web site. There you can find Introduction to OpenCV section with installation instructions, including detailed instructions for Windows. Don't forget to cleanup your system before installation to avoid problems with mixing different install options. If you still can't get it working with CodeBlocks, follow Dan's advice and try compiling from command line.
When you are done with installation, go on and read there great new tutorials!