Hi,
I had started the little project with follows code:
// https://subwaymatch.medium.com/adding-opencv-4-2-0-to-visual-studio-2019-project-in-windows-using-pre-built-binaries-93a851ed6141
//*
//*
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <iostream>
using namespace cv;
using namespace std;
int main()
{
Mat image = Mat::zeros(300, 600, CV_8UC3);
circle(image, Point(250, 150), 100, Scalar(0, 255, 128), -100);
circle(image, Point(350, 150), 100, Scalar(255, 255, 255), -100);
imshow("Display Window", image);
waitKey(0);
return 0;
}
the dynamic library opencv_world453d.dll had been copied to the project folder. The Visual Studio showed console debug window if I had started the application with follows text:
[ INFO:0] global Z:\WI\VS\opencv-4.5.3\modules\highgui\src\registry.impl.hpp (114) cv::highgui_backend::UIBackendRegistry::UIBackendRegistry UI: Enabled backends(4, sorted by priority): GTK(1000); GTK3(990); GTK2(980); WIN32(970) + BUILTIN(WIN32UI)
[ INFO:0] global Z:\WI\VS\opencv-4.5.3\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load Z:\WI\VS\prj\testOpenCV2_win\x64\Debug\opencv_highgui_gtk453_64.dll => FAILED
[ INFO:0] global Z:\WI\VS\opencv-4.5.3\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load opencv_highgui_gtk453_64.dll => FAILED
[ INFO:0] global Z:\WI\VS\opencv-4.5.3\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load Z:\WI\VS\prj\testOpenCV2_win\x64\Debug\opencv_highgui_gtk3453_64.dll => FAILED
[ INFO:0] global Z:\WI\VS\opencv-4.5.3\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load opencv_highgui_gtk3453_64.dll => FAILED
[ INFO:0] global Z:\WI\VS\opencv-4.5.3\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load Z:\WI\VS\prj\testOpenCV2_win\x64\Debug\opencv_highgui_gtk2453_64.dll => FAILED
[ INFO:0] global Z:\WI\VS\opencv-4.5.3\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load opencv_highgui_gtk2453_64.dll => FAILED
[ INFO:0] global Z:\WI\VS\opencv-4.5.3\modules\highgui\src\backend.cpp (90) cv::highgui_backend::createUIBackend UI: using backend: WIN32 (priority=970)
[ INFO:0] global Z:\WI\VS\opencv-4.5.3\modules\highgui\src\window_w32.cpp (3009) cv::impl::Win32BackendUI::createWindow OpenCV/UI: Creating Win32UI window: Display Window (1)
[ INFO:0] global Z:\WI\VS\opencv-4.5.3\modules\core\src\parallel\registry_parallel.impl.hpp (96) cv::parallel::ParallelBackendRegistry::ParallelBackendRegistry core(parallel): Enabled backends(3, sorted by priority): ONETBB(1000); TBB(990); OPENMP(980)
[ INFO:0] global Z:\WI\VS\opencv-4.5.3\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load Z:\WI\VS\prj\testOpenCV2_win\x64\Debug\opencv_core_parallel_onetbb453_64d.dll => FAILED
[ INFO:0] global Z:\WI\VS\opencv-4.5.3\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load opencv_core_parallel_onetbb453_64d.dll => FAILED
[ INFO:0] global Z:\WI\VS\opencv-4.5.3\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load Z:\WI\VS\prj\testOpenCV2_win\x64\Debug\opencv_core_parallel_tbb453_64d.dll => FAILED
[ INFO:0] global Z:\WI\VS\opencv-4.5.3\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load opencv_core_parallel_tbb453_64d.dll => FAILED
[ INFO:0] global Z:\WI\VS\opencv-4.5.3\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load Z:\WI\VS\prj\testOpenCV2_win\x64\Debug\opencv_core_parallel_openmp453_64d.dll => FAILED
[ INFO:0] global Z:\WI\VS\opencv-4.5.3\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load opencv_core_parallel_openmp453_64d.dll => FAILED
Why the opencv_wold453d.dll need to load many others dll? I think, I had compiled the framework incorrect in the CMake? Or opencv_world.dll must call all others libraries?