huihut / OpenCV-MinGW-Build

👀 MinGW 32bit and 64bit version of OpenCV compiled on Windows. Including OpenCV 3.3.1, 3.4.1, 3.4.1-x64, 3.4.5, 3.4.6, 3.4.7, 3.4.8-x64, 3.4.9, 4.0.0-alpha-x64, 4.0.0-rc-x64, 4.0.1-x64, 4.1.0, 4.1.0-x64, 4.1.1-x64, 4.5.0-with-contrib, 4.5.2-x64
https://opencv.org/
928 stars 215 forks source link

No x86 version ? #21

Closed liar666 closed 3 years ago

liar666 commented 4 years ago

Hi, Thanks for the job! I downloaded the zip files for multiple non-x64 versions of openCV on your release age.

Unfortunately, in the build dir, there are only "x64/" subdir version?

Do you compile any x86 version for mingW? (I'm using mingw included in Code::Blocks and it's the 32bits version)

huihut commented 3 years ago

The branch with -x64 is 64-bit mingw, and the branch without -x64 is 32-bit mingw.

The folder name in 32-bit mingw is x64/mingw, but the dll is 32-bit.


For example OpenCV-3.4.9, you can use Developer Commond Prompt for VS to verify.

C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional>dumpbin /headers C:\Users\huihut\Downloads\OpenCV-MinGW-Build-OpenCV-3.4.9\x64\mingw\bin\libopencv_calib3d349.dll
Microsoft (R) COFF/PE Dumper Version 14.16.27032.1
Copyright (C) Microsoft Corporation.  All rights reserved.

Dump of file C:\Users\huihut\Downloads\OpenCV-MinGW-Build-OpenCV-3.4.9\x64\mingw\bin\libopencv_calib3d349.dll

PE signature found

File Type: DLL

FILE HEADER VALUES
             14C machine (x86)
              11 number of sections
        5E04D70C time date stamp Thu Dec 26 23:51:40 2019
          1A7800 file pointer to symbol table
            660B number of symbols
              E0 size of optional header
            2106 characteristics
                   Executable
                   Line numbers stripped
                   32 bit word machine
                   DLL

14C machine (x86)


For OpenCV-4.1.1-x64,

C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional>dumpbin /headers C:\Users\huihut\Downloads\OpenCV-MinGW-Build-OpenCV-4.1.1-x64\x64\mingw\bin\libopencv_calib3d411.dll
Microsoft (R) COFF/PE Dumper Version 14.16.27032.1
Copyright (C) Microsoft Corporation.  All rights reserved.

Dump of file C:\Users\huihut\Downloads\OpenCV-MinGW-Build-OpenCV-4.1.1-x64\x64\mingw\bin\libopencv_calib3d411.dll

PE signature found

File Type: DLL

FILE HEADER VALUES
            8664 machine (x64)
              12 number of sections
        5D4D968B time date stamp Fri Aug  9 23:51:39 2019
          1CD800 file pointer to symbol table
            6E50 number of symbols
              F0 size of optional header
            2026 characteristics
                   Executable
                   Line numbers stripped
                   Application can handle large (>2GB) addresses
                   DLL

8664 machine (x64)