Skip to content

Procedure entry point inflateValidate error - zlib weird on >=OpenCV 3.4.x? #10576

@patrikhuber

Description

@patrikhuber
System information (version)
  • OpenCV => git tag 3.4.0
  • Operating System / Platform => Windows 64 Bit
  • Compiler => Visual Studio 2017 15.5.3 cl.exe 19.12.25834
Detailed description

Running a program in Release mode causes this error:
image

I think something is a bit weird anyway with zlib in this OpenCV release:
In the install directory (C:\opencv\opencv-git\build-3.4.0-cl19.12.25834\install), there is no zlib*.dll file.
E.g. nothing in build-3.4.0-cl19.12.25834\install\x64\vc15\bin.
But in the build directory, build-3.4.0-cl19.12.25834\bin\Debug and build-3.4.0-cl19.12.25834\bin\Release, there is zlibd1.dll and zlib1.dll. So I have to add this to my Windows PATH too.
Looks to me like something weird is going on with zlib and OpenCV changed some of its CMake scripts or something.

In OpenCV 3.3.0, everything was fine.

BUILD_ZLIB is ON.

Steps to reproduce
found Intel IPP (ICV version): 2017.0.3 [2017.0.3]
at: C:/opencv/opencv-git/build-3.4.0-cl19.12.25834/3rdparty/ippicv/ippicv_win
found Intel IPP IW sources: 2017.0.3
at: C:/opencv/opencv-git/build-3.4.0-cl19.12.25834/3rdparty/ippicv/ippiw_win
Could NOT find Pylint (missing: PYLINT_EXECUTABLE) 
Excluding from source files list: C:/opencv/opencv-git/build-3.4.0-cl19.12.25834/modules/imgproc/accum.neon.cpp

General configuration for OpenCV 3.4.0 =====================================
  Version control:               3.4.0

  Platform:
    Timestamp:                   2018-01-10T00:08:34Z
    Host:                        Windows 10.0.16299 AMD64
    CMake:                       3.10.1
    CMake generator:             Visual Studio 15 2017 Win64
    CMake build tool:            C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/MSBuild/15.0/Bin/MSBuild.exe
    MSVC:                        1912

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

  C/C++:
    Built as dynamic libs?:      YES
    C++11:                       YES
    C++ Compiler:                C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.12.25827/bin/Hostx86/x64/cl.exe  (ver 19.12.25834.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 /bigobj /Oi      /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /MP8  /MD /O2 /Ob2 /DNDEBUG  /Zi
    C++ flags (Debug):           /DWIN32 /D_WINDOWS /W4 /GR  /EHa  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi      /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /MP8  /MDd /Zi /Ob0 /Od /RTC1 
    C Compiler:                  C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.12.25827/bin/Hostx86/x64/cl.exe
    C flags (Release):           /DWIN32 /D_WINDOWS /W3  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi        /MP8  /MD /O2 /Ob2 /DNDEBUG  /Zi
    C flags (Debug):             /DWIN32 /D_WINDOWS /W3  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi        /MP8  /MDd /Zi /Ob0 /Od /RTC1 
    Linker flags (Release):      /machine:x64  /INCREMENTAL:NO  /debug
    Linker flags (Debug):        /machine:x64  /debug /INCREMENTAL 
    ccache:                      NO
    Precompiled headers:         YES
    Extra dependencies:          opengl32 glu32
    3rdparty dependencies:

  OpenCV modules:
    To be built:                 calib3d core features2d flann highgui imgcodecs imgproc ml objdetect photo shape stitching superres ts video videoio videostab
    Disabled:                    js python_bindings_generator world
    Disabled by dependency:      -
    Unavailable:                 cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev java python2 python3 viz
    Applications:                -
    Documentation:               NO
    Non-free algorithms:         NO

  Windows RT support:            NO

  GUI: 
    Win32 UI:                    YES
    OpenGL support:              YES (opengl32 glu32)

  Media I/O: 
    ZLib:                        build (ver 1.2.11)
    JPEG:                        build (ver 90)
    WEBP:                        build (ver encoder: 0x020e)
    PNG:                         build (ver 1.6.34)
    TIFF:                        build (ver 42 - 4.0.9)
    JPEG 2000:                   build (ver 1.900.1)

  Video I/O:
    Video for Windows:           YES
    FFMPEG:                      YES (prebuilt binaries)
      avcodec:                   YES (ver 57.89.100)
      avformat:                  YES (ver 57.71.100)
      avutil:                    YES (ver 55.58.100)
      swscale:                   YES (ver 4.6.100)
      avresample:                YES (ver 3.5.0)
    GStreamer:                   NO
    DirectShow:                  YES

  Parallel framework:            Concurrency

  Trace:                         YES (with Intel ITT)

  Other third-party libraries:
    Intel IPP:                   2017.0.3 [2017.0.3]
           at:                   C:/opencv/opencv-git/build-3.4.0-cl19.12.25834/3rdparty/ippicv/ippicv_win
    Intel IPP IW:                sources (2017.0.3)
              at:                C:/opencv/opencv-git/build-3.4.0-cl19.12.25834/3rdparty/ippicv/ippiw_win
    Custom HAL:                  NO

  Python (for build):            C:/Users/Patrik/AppData/Local/Programs/Python/Python34/python.exe

  Install to:                    C:/opencv/opencv-git/build-3.4.0-cl19.12.25834/install
-----------------------------------------------------------------

Configuring done
Generating done

Then create a new CMake app that uses OpenCV and run it in Release and Debug mode, with the paths to the dll's added to PATH.
With 3.3.x and older it works fine.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions