getting error when run mingw32-make: cap_dshow.cpp file error

asked 2018-12-12 09:00:38 -0600

SpeedEC gravatar image

updated 2018-12-14 02:39:20 -0600

HI, After setting necessary things, When I run mingw32-make in command line, up to 41% Many things were gone fine with few warnings. But at 42%, it stopped due to error in module/videoio/cmakefiles/opencv_videoio.dir/src/cap_dshow.cpp.obj failed

After searching this website, someone recommended to check for broken Cap_dshow.cpp (missing "/" on comment, etc). when I go through the Cap_dshow.cpp file, i think something missing in the file but I could not able to recognize the error. Can anyone give me working cap_dshow.cpp file to replace the error file? Or could be there any other issue?

my OS: MS Windows 7 32 bit Opencv: opencv-4.0.0-vc14_vc15.exe

advance thanks

Added:

Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2.7")
Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "3.2")
libjpeg-turbo: VERSION = 1.5.3, BUILD = opencv-4.0.0-libjpeg-turbo
Looking for Mfapi.h
Looking for Mfapi.h - found
Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
Could NOT find BLAS (missing: BLAS_LIBRARIES) 
LAPACK requires BLAS
A library with LAPACK API not found. Please specify library location.
Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) 
VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
OpenCV Python: during development append to PYTHONPATH: D:/opencv/build/my_build/python_loader      

Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.avx2.cpp         
Excluding from source files list: <BUILD>/modules/core/test/test_intrin256.avx2.cpp     
Excluding from source files list: modules/imgproc/src/filter.avx2.cpp      
Excluding from source files list: modules/imgproc/src/imgwarp.avx2.cpp      
Excluding from source files list: modules/imgproc/src/resize.avx2.cpp     
Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx2.cpp       
Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx512_skx.cpp     
Excluding from source files list: modules/features2d/src/fast.avx2.cpp      
Excluding from source files list: modules/calib3d/src/undistort.avx2.cpp      

    General configuration for OpenCV 4.0.0 =====================================
  Version control:               unknown

  Platform:
    Timestamp:                   2018-12-12T18:01:01Z
    Host:                        Windows 6.1.7600 x86
    CMake:                       3.13.1
    CMake generator:             MinGW Makefiles
    CMake build tool:            C:/PROGRA~1/MINGW-~1/I686-8~1.0-P/mingw32/bin/mingw32-make.exe
    Configuration:               Release

  CPU/HW features:
    Baseline:                    SSE SSE2
      requested:                 SSE2
    Dispatched code generation:  SSE4_1 SSE4_2 FP16 AVX
      requested:                 SSE4_1 SSE4_2 AVX FP16
      SSE4_1 (8 files):          + SSE3 SSSE3 SSE4_1
      SSE4_2 (2 files):          + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2
      FP16 (1 files):            + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
      AVX (5 files):             + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 AVX

  C/C++:
    Built as dynamic libs?:      YES
    C++ Compiler:                C:/Program Files/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/g++.exe  (ver 8.1.0)   
    C++ flags (Release):         -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections ...
(more)
edit retag flag offensive close merge delete

Comments

your pictures are useless here.

please replace the screenshots with a TEXT version, so we can quote you properly, it can be indexed for search, etc. thank you !

(also, they don't show any real error, which must be some lines higher up, so please look again !)

berak gravatar imageberak ( 2018-12-12 09:20:31 -0600 )edit

also: which mingw are you trying with, exactly ?

berak gravatar imageberak ( 2018-12-12 09:44:31 -0600 )edit

mingw version: i686-5.1.0-release-posix-dwarf-rt_v4-rev0 (extracted to folder C:\mingw)

Tried "mingw-w64-install" using "mingw-get-setup" msi (Folder C:\Program Files..\mingw)

OS: MS Windows 7 32 bit , IDE: Netbeans 8.0.2 , Make: msys ("MSYS-1.0.11") , CMake: CMake("cmake-3.13.1-win32-x86") ,

Warnings Received: 1. D:\opencv\sources\modules\core\src\lda.cpp:187:39: warning: unknown conversion type character 'z' in format [-WFormat=] ,
..... same type of warnings in many .cpp files

Error Received (at final, Stopped): mingw32-make[2]: [modules\videoio\CMakeFiles\opencv_videoio.dir\build.make:61: modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_dshow.cpp.obj] Error 1 mingw32-make[1]: [CMakeFiles\Makefile2:4127: modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2

SpeedEC gravatar imageSpeedEC ( 2018-12-13 00:58:46 -0600 )edit

makefile:161:recipe for target 'all' failed ,
mingw32-make: [all] Error 2

SpeedEC gravatar imageSpeedEC ( 2018-12-13 01:07:12 -0600 )edit

those are still only warnings. and mingw 5.1.0 is VERY old (and might not work here)

please have another look at the compiler output. if you cannot find it, edit your question, and put the make output there. (NOT into comments !)

berak gravatar imageberak ( 2018-12-13 01:09:31 -0600 )edit

latest mingw downloded and installed and run.

g++ version = 8.1 ,
gcc version = 8.1 , msys make version = 3.81 ,
CMake version = 3.13 ,

OpenCV_VERSION 4.0.0 (opencv-4.0.0-alpha-vc14_vc15) ,
Netbeans IDE 8.0.2 ,
OS : Windows 7 32 bit ,

same result. Any help? thanks

SpeedEC gravatar imageSpeedEC ( 2018-12-13 02:37:00 -0600 )edit

since you seem unable to find the error, please add the make output TO YOUR QUESTION

berak gravatar imageberak ( 2018-12-13 02:45:42 -0600 )edit

Sorry to ask you this. Where is the output of the 'make' file resides?

SpeedEC gravatar imageSpeedEC ( 2018-12-13 03:11:01 -0600 )edit

on a console, in some window, idk. how you run make.

but the cmake output is already valuable ! please change your cmake flags like this:

ENABLE_PRECOMPILED_HEADERS=OFF
WITH_MSMF=OFF
CPU_DISPATCH=""

and rerun cmake configure / generate

berak gravatar imageberak ( 2018-12-13 03:20:31 -0600 )edit

tried. but not succeeded yet. when I run cmake cmd (after configure, Generate), it is not reaching up to 100%. it stopped at 42% as earlier. The same file cap_dshow.cpp. cmd takes 2 to 3 hrs to reach 42%.

when I run netbeans using simple "Hello World !", it displays the "Hello World !" text and also error as read from master failed : Input/output error Hello World !

RUN FAILED (exit value 1, total time: 4s) When i include #include <opencv2 opencv.hpp=""> and run,
it displays error as
main.cpp:9:10: fatal error: opencv2/opencv.hpp: No such file or directory
#include <opencv2 opencv.hpp="">
^~~~~~~~~~~~~~~~~~~~ Any other issu

SpeedEC gravatar imageSpeedEC ( 2018-12-13 06:44:42 -0600 )edit