Tutorial test fails. W7 problem?
Tutorial test fails. W7 problem?
Hello
I am trying to set up opencv following the tutorial and I get an error. Well, I get more errors, but I cannot solve this.
I have installed on my computer:
- windows 7 pro 64 bits sp1
- Visual Studio 2017 community 15.6.7
- ipp 2018.2.185
Following the installation tutorial I have chosen "Installation by Using git-bash (version>=2.14.1) and cmake (version >=3.9.1)"
I think that I have got ocv 4.0.0
I have built the library, setup vs2017 and try to test it with the sample code that comes with the tutorial.
https://docs.opencv.org/master/dd/d6e...
I have built the sample program, but I get a runtime error:
No se encuentra el punto de entrada del procedimiento MFCreateDXGIDeviceManager en la biblioteca de vínculos dinámicos MFPlat.DLL
Something like:
MFCreateDXGIDeviceManager procedure entry point not found in MFPlat.DLL
I get this error before executing my first line of code and after drawing the console window.
If I comment every line related to cv:: (Mat, imread, namedWindow, imshow and waitKey) I get no error.
I have found in the internet that MFCreateDXGIDeviceManager is for w8 and higher and I am using w7, so I think that this could be the problem, I need libs for w7 but I don´t know how to set up to use them.
I have looked for MFCreateDXGIDeviceManager, MFPlat.DLL, windows 7 and w7 in the q&a but have found no entries for the first 2, and a few non related entries for the last 2.
Can anyone please help me?
Thanks in advance.
you seem to have an MFC related problem, not an opencv one.
I think too it is not an opencv problem try to modify your projects cmakelists.txt
berak, LBerger, thank you for your comments.
I have made a new MFC application and it works.
If I add the ocv includes it still run.
If I add
I get the same runtime error
If I comment
//Mat imagen;
I still get the runtime error, although is the same situation that previous step.
If I comment the ocv includes it run again with no errors.
The error is related to MFC, but only when use ocv libs.
I have search in c:/lib for CMakeLists.txt and I have found 155 files, no one with CMAKE_MFC_FLAG
I suppose that I need to add to C:\lib\opencv\ CMakeLists.txt isn´t it?
Do you use cmake to build your own project ? if yes modify your own cmakelists.txt.
Rebuild opencv with options -DWITH_MSMF:BOOL=OFF
DON'T make an MFC application, simply. opencv does not need that, at all.
http://pklab.net/?id=390&lang=EN
@LBerger , sure it can be done. it's not nessecarily a good idea, though.
I use VS2017 to build my project.
The original post was related to a non MFC project.
I have tried with a console project, with an empty project and, after reading your comments, with an MFC project. I get the same error in all three cases
Have you try : Rebuild opencv with options -DWITH_MSMF:BOOL=OFF
@LBerger , so, the MSMF VideoCapture / Writer depends on MFC ?