opencv_highgui320: Qt5 .dlls required and 0xc000a200 error [closed]

asked 2017-03-29 13:09:13 -0600

yrazin gravatar image

updated 2017-03-29 17:03:46 -0600

I tried building opencv With_Qt:off and on. Either way including opencv_highgui in my project compiles but won't allow my project .exe to unless (1) it can find the Qt5 .dlls and (2)even then it throws a 0xc000a200 error, which I have found it linked to app container.

I have tried building opencv with cmake_exe_linker_flags, cmake_module_linker_flags, and cmake_shared_linker_flags with the /APPCONTAINER:NO flag but this has not solved it. Any other suggestions?

I am building opencv3.2.0 in windows 10, VS2015, and using cmake-gui for x86.

Thanks!

Could NOT find PythonInterp: Found unsuitable version "2.7.5", but required is at least "3.4" (found C:/Python27/python.exe)
Could NOT find PythonInterp: Found unsuitable version "2.7.5", but required is at least "3.2" (found C:/Python27/python.exe)
POPCNT is not supported by C++ compiler
SSE4_2 is not supported by C++ compiler
FP16: Compiler support is available
found IPP (ICV version): 9.0.1 [9.0.1]
at: C:/Users/yrazin3/Desktop/OpenCV6/build7/3rdparty/ippicv/ippicv_win
Could NOT find JNI (missing:  JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) 
Found VTK ver. 7.1.0 (usefile: C:/Users/yrazin3/Downloads/VTK-7.1.0/VTK-7.1.0/CMake/UseVTK.cmake)
Caffe:   NO
Protobuf:   NO
Glog:   NO
Looking for tiny_dnn.h
Looking for tiny_dnn.h - not found
Module opencv_dnn_modern disabled because tiny-dnn was not found
freetype2:   NO
harfbuzz:    NO
No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.
Failed to find installed gflags CMake configuration, searching for gflags build directories exported with CMake.
Failed to find an installed/exported CMake configuration for gflags, will perform search for installed gflags components.
Failed to find gflags - Could not find gflags include directory, set GFLAGS_INCLUDE_DIR to directory containing gflags/gflags.h
Failed to find glog - Could not find glog include directory, set GLOG_INCLUDE_DIR to directory containing glog/logging.h
Module opencv_sfm disabled because the following dependencies are not found: Glog/Gflags
Tesseract:   NO

General configuration for OpenCV 3.2.0-dev =====================================
  Version control:               3.2.0-360-gf70cc29-dirty

  Extra modules:
    Location (extra):            C:/Users/yrazin3/Desktop/OpenCV6/opencv_contrib/modules
    Version control (extra):     3.2.0-162-g3875806

  Platform:
    Timestamp:                   2017-03-29T17:37:02Z
    Host:                        Windows 10.0.14393 AMD64
    CMake:                       3.5.2
    CMake generator:             Visual Studio 14 2015
    CMake build tool:            C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe
    MSVC:                        1900

  CPU/HW features:
    Baseline:                    SSE SSE2
      requested:                 SSE2
    Dispatched code generation:  SSE4_1 FP16 AVX AVX2
      requested:                 SSE4_1 AVX FP16 AVX2
      SSE4_1 (0 files):          + SSE3 SSSE3 SSE4_1
      FP16 (0 files):            + SSE3 SSSE3 SSE4_1 FP16 AVX
      AVX (0 files):             + SSE3 SSSE3 SSE4_1 AVX
      AVX2 (0 files):            + SSE3 SSSE3 SSE4_1 FP16 FMA3 AVX AVX2

  C/C++:
    Built as dynamic libs?:      NO
    C++ Compiler:                C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe  (ver 19.0.23918.0)
    C++ flags (Release):         /DWIN32 /D_WINDOWS /W4 /GR  /EHa  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2020-10-08 15:22:08.345037

Comments

read this post or this one

LBerger gravatar imageLBerger ( 2017-03-29 15:08:08 -0600 )edit

I am already doing everything in this one.

yrazin gravatar imageyrazin ( 2017-03-29 16:59:49 -0600 )edit

I added my cmake-gui output but it won't let me add all of it

yrazin gravatar imageyrazin ( 2017-03-29 17:04:14 -0600 )edit

Can you find Qt5.dll ? If yes is Qt5.dll is in path?

LBerger gravatar imageLBerger ( 2017-03-30 00:30:10 -0600 )edit

No - Qt5.8 does not seem to include a .dll called Qt5.dll. I do have Qt5Cored.dll, Qt5Networkd.dll, Qt5Guid.dll, Qt5Multimedia.dll, and Qt5Testd.dll,and Qt5Widgetsd.dll.I copied and pasted all the Qt5*.dlls in to test that. It worked briefly but stopped on the next time I built the solution.

yrazin gravatar imageyrazin ( 2017-03-30 11:36:20 -0600 )edit

Any thoughts Laurent? It works every few times I build but usually sends out that same 0xc000a200 error I cannot figure out why.

yrazin gravatar imageyrazin ( 2017-03-31 10:36:39 -0600 )edit

I don't use QT and I think it is QT problem have you read this post. (may be this one)

You are in debug mode for QT (Qt5Cored.dll) are in you debug for opencv?

LBerger gravatar imageLBerger ( 2017-03-31 11:14:54 -0600 )edit

Laurent - QT5 is required for highgui. How do you use opencv3 without it? Even when I compiled cmake with_Qt:OFF it still required it.

i am in debug for Qt, opencv, and my application

yrazin gravatar imageyrazin ( 2017-03-31 13:42:30 -0600 )edit

"QT5 is required for highgui" no you can use win32ui. All examples in opencv uses win32ui. "when I compiled cmake with_Qt:OFF it still required it." no you forget to delete CMakeCache.txt in CMake GUI

LBerger gravatar imageLBerger ( 2017-03-31 14:14:47 -0600 )edit