Cannot Do Anything With OpenCV Anymore on Windows 7 64-bit
Hi,
I have tried to work with OpenCV 2.2, 2.3, 2.4.0, 2.4.2 and none of them gave my any luck at all. I have Windows 7 64-bit installed in my i5 machine with L3 cache, 8 GB RAM, and 500 GB Hard Drive. I do this to integrate OpenCV:
1) Download the stable version from http://www.sourceforge.net
2) Download CMake 2.8
3) Add C:\OpenCV\build\x86\vc10\bin folder to SYSTEM PATH.
4) Make OpenCV files in a folder called "vs2010build" in OpenCV installation folder.
5) Open the opencv solution in "vs2010build" folder and then build all the libraries again.
When I am at step 5. My windows become really and phenomenally slow like the a browser window, file explorer window, or even the simply volume control menu in the task bar takes nearly a minute to pop-up. Ironically, it is only with OpenCV and no other Visual C++ Express 2010 solution or project will cause this mess! The problem was the same when I tried to install with Code::Blocks IDE and MingGW compiler.
I have been trying to draw attention to people of OpenCV community to actually investigate whether or not they have the same problem and if no, how do you go about doing it. People simply point me towards the OpenCV's own website but I am finding it really misleading. I want a solution to this problem by people who actually did it themselves rather than blinding pointing me towards OpenCV's installation guideline (outdated anyway). Most importantly, some of the important documentations and guidelines are not even quality controlled i.e. no feedbacks or productive comments that it actually does or doesn't work!
I have been following posts from <answers.opencv.org>, <code.opencv.org>, <www.stackoverflow.com>, and other possible Google Search Results but no one is addressing this issue. This is really serious for me I cannot work because of this problem now! I would really appreciate if someone can verify what I am talking about. Most importantly, I would be grateful if someone has pretty much the same setup of Visual Studio/Visual C++ Express 2010, OpenCV, and Windows 7 64-bit as mine, but DO NOT HAVE THIS PROBLEM!!! PLEASE I NEED HELP!!!
N.B. I believe pointing to x86 library files is correct because my Visual C++ Express 2010 ACTUALLY gets registered in the process list as a 32-bit application running on Windows 7 64-bit. However, I changed it also to x64 library files but SAME RESULT!!! JUST SO YOU KNOW THAT WE ALL ARE GOOD PEOPLE TRYING TO SORT OUT ERRORS/FAILURES/BUGS by considering any/every possible combination of solutions.
Just to tell you what I am on about, If you have OpenCV and Windows 7 64-bit, take my source code (below) and use it to build a simple project and see if your PC is dying slowly.
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui ...
We have the same problem on installation on the new OpenCV but I'm using Eclipse. I think OpenCV must create a new guide for OpenCV installation. I also have problems building the libraries. My sympathy.
Karl...thanks a lot for confirming that...I have also tried itvwith Dev C++, code::blocks, eclipse, and visual studio...nothing...are your symptoms same as mine?
Yes i have the same Issue, but I have managed to fix some basic functionality like image loading but image comparison just didn;t want to compile SURF or FANN neither.
@Szippy I have wasted 10 weekends tried to fix this but still not anywhere!!!! I have to ask a colleague in the office whom I saw yesterday doing some hankey pankey with OpenCV and (possibly) with Windows 7 64-bit. If he has managed to fix it, which will be great, I would be posting updates on Monday, 1st or 2nd thing :P...But once again, +1 for your contribution Szippy and I am pleased that you have confirmed this issue in a way I expected. Ta
Btw...Any chance EmguCV (although it is a wrapper to Windows-based development) can make our lives better? or is it even worse?
There is a tutorial on http://docs.opencv.org/doc/tutorials/introduction/windows_visual_studio_Opencv/windows_visual_studio_Opencv.html#windows-visual-studio-how-to
Did you actually check if you can create 64-bit programs with Visual Studio Express? I doubt that but I am not sure.
@SR I am pretty sure about 32-bit stuff...which is my only concern for the time being...personally I couldn't care less about the 64-bit support in visual C++ express 2010...more b importantly as I did before...even if you had the full version OpenCV just doesn't work with anything on Windows 7 64-bit......aaaaaargh...
@manmedia. That is not true for me. I used OpenCV 2.1, 2.2, 2.3 with Visual Studio 2008 SP1 on Windows 7 in 64-bit mode extensively and I never experienced such problems.
@SR so what is it that you think you have and I don't have? This is my original question. And I am glad to know that you have a working version of OpenCV without any problem on Windows 7 64-bit. Could you please tell me how you got about setting up your OpenCV? What exactly did you do with them? This is what I really want to know that if I am missing something, I need to UNMISS it so that I can do the same as you.....It involves any Windows Update too. I just want to fix this problem because it only creates problems when I start using OpenCV
I did not do anything special. I used both pre-compiled and self-compiled versions with success. See also my answer below.