opencv: Missing opencv dlls for multithreading
System information (version)
- OpenCV => 4.5.2
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2019
Detailed description
When trying to link my minimal application to the official OpenCV windows build, I get errors when running the application:
[ INFO:0] global c:\build\master_winpack-build-win64-vc15\opencv\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 c:\build\master_winpack-build-win64-vc15\opencv\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load C:\Users\...\build\Debug\opencv_core_parallel_onetbb452_64d.dll => FAILED
[ INFO:0] global c:\build\master_winpack-build-win64-vc15\opencv\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load opencv_core_parallel_onetbb452_64d.dll => FAILED
[ INFO:0] global c:\build\master_winpack-build-win64-vc15\opencv\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load C:\Users\...\build\Debug\opencv_core_parallel_tbb452_64d.dll => FAILED
[ INFO:0] global c:\build\master_winpack-build-win64-vc15\opencv\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load opencv_core_parallel_tbb452_64d.dll => FAILED
[ INFO:0] global c:\build\master_winpack-build-win64-vc15\opencv\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load C:\Users\...\build\Debug\opencv_core_parallel_openmp452_64d.dll => FAILED
[ INFO:0] global c:\build\master_winpack-build-win64-vc15\opencv\modules\core\src\utils\plugin_loader.impl.hpp (67) cv::plugin::impl::DynamicLib::libraryLoad load opencv_core_parallel_openmp452_64d.dll => FAILED
Also tested with build from source from 4.5.2 and from the master branch
Steps to reproduce
Calling imshow(...)
seems to produce the error.
Sample project: https://gist.github.com/pagdot/0465b3bf99384310153aad190ba584d4
Issue submission checklist
- I report the issue, it’s not a question
- I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found solution
- I updated to latest OpenCV version and the issue is still there
- There is reproducer code and related data files: videos, images, onnx, etc
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 5
- Comments: 29 (2 by maintainers)
问题已经解决了https://blog.csdn.net/benobug/article/details/117653268
Why is this closed? Having the same issue in newest version of opencv in Visual Studio 2022, but only in debug mode. Anyone found a solution?
实际上这是因为OpenCV4.5.2(好像是这个版本)之后多了个并行计算的功能。在编译opencv库的时候可以不勾选PARALLEL_ENABLE_PLUGINS这个选项。但是仍然会提示[ INFO:0] global c:\build\master_winpack-build-win64-vc15\opencv\modules\core\src\parallel\registry_parallel.impl.hpp (96) cv::parallel::ParallelBackendRegistry::ParallelBackendRegistry core(parallel): Enabled backends(3, sorted by priority):N/A。 另外这个提示在release模式下是没有的,想必这个提示的本意是方便并行配置的时候debug吧 想要完全关闭这个提示应该可以通过修改opencv中的某个宏来实现,这个正在尝试,有结果了再来说吧
There are no error messages. These threading libraries are optional and may be used as replacement for builtin parallel framework.
Use this code to check available multi-threading in OpenCV: https://github.com/opencv/opencv/blob/4.5.2/modules/ts/src/ts.cpp#L1125-L1132
I encounter the same issue, could you tell me your solution?
Hmm. According to this source its not really an issue.
Thanks 😃