pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchainpacman -S mingw-w64-ucrt-x86_64-opencvpacman -S mingw-w64-ucrt-x86_64-qt6-baseg++ -o TEST/test TEST/test.cpp -I"C:/msys64/ucrt64/include/opencv4" -L"C:/msys64/ucrt64/lib" -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_videoio -lopencv_objdetecttry test.exe if you installed correctly it would show window of Video Capture TEST.