If I compile OpenCV using MinGW MakeFiles in CMAKE.Would I be able to use it on QT that uses Visual Studio Compilers?
Asked
Active
Viewed 99 times
1 Answers
2
Depends - which compiler are you using. If you compile OpenCV using CL (the GnuMakefile calls CL and not GCC) it will work. Compiling using gcc and using this in MSVC/CL will fail.
Each compiler uses another ABI. Don't match them - it will not work (linker will complain for example if you replace DLLs on runtime).
See also: Using MSVC++ .lib files with mingw. Name mangling http://www.mingw.org/wiki/Interoperability_of_Libraries_Created_by_Different_Compiler_Brands

elcuco
- 8,948
- 9
- 47
- 69