OpenCV Build 64bit using MinGW64

asked 2017-06-25 06:56:00 -0500

evilkid gravatar image

updated 2017-06-25 07:29:42 -0500

Hello, I am trying to build OpenCV (3.2.0) with the opencv_contrib, however, I could not generate 64bit files. I'm using CMake, and I couldn't find where I need to set my architecture to 64bit. It is only generating x86 dlls. Does MinGW64 even supports generating 64bit files? I am really not comfortable with Visual Studio so i dont wanna go there.

UPDATE: One more thing I have tried, is go to the CMakeVars.txt file, and added the "-m64" flag to CMAKE_CXX_FLAGS and CMAKE_C_FLAGSvars, that did generate a 64bit dll, however, im getting: libopencv_java320.dll: %1 is not a valid Win32 application while trying to load the library in java.

One more thing, while generating, the all the dlls are prefixied with "lib", example : "libopencv_java320.dll" I believe it should be "opencv_java320.dll" only, because even Java wouldn't accept the libs prefixed with "lib".

edit retag flag offensive close merge delete


is it this one ?

there are 2 mingw projects, the former indeed only builds 32bit binaries.

i think, it's this one

berak gravatar imageberak ( 2017-06-25 07:24:53 -0500 )edit
evilkid gravatar imageevilkid ( 2017-06-25 07:28:55 -0500 )edit