Opencv and Visual Studio 2010

I am trying to use Opencv in Visual Studio 2010. My computer is 64-bit, and I also use the 64-bit version of 2010. I searched a lot of guides for setting up opencv in vs 2010. However, I was not able to succeed. There is a video about compiling and configuring vs 2010 and opencv http://www.youtube.com/watch?v=XeBhwbRoKvk I got a couple of errors, such as: Error 1 error C1083: Cannot open include file: 'tbb / tbb_stddef.h ': There is no such file or directory C: \ SeniorProject \ OPENCV2.1 \ include \ opencv \ cvinternal.h 131 1 cxcore

Error 2 error LNK1104: cannot open file '.... \ lib \ Debug \ cxcore210d.lib' C: \ SeniorProject \ OPENCV2.1 \ build \ tests \ cxts \ LINK cxts Error 4 error C1083: Cannot open include file: 'tbb / tbb_stddef.h': There is no such file or directory c: \ seniorproject \ opencv2.1 \ include \ opencv \ cvinternal.h 131 1 ml

Error 7 errors LNK1104: cannot open file '.... \ lib \ Debug \ cxcore210d.lib' C: \ SeniorProject \ OPENCV2.1 \ build \ apps \ haartraining \ LINK haartraining Error 8 error C1083: Cannot open include file: 'tbb / tbb_stddef.h': There is no such file or directory c: \ seniorproject \ opencv2.1 \ include \ opencv \ cvinternal.h 131 1 mltest Error 9 error LNK1104: cannot open file ".... \ lib \ Debug \ cxcore210d.lib "C: \ SeniorProject \ OPENCV2.1 \ build \ apps \ haartraining \ Performance LINK Error 16 error C1083: Cannot open file include: 'tbb / tbb_stddef.h': There is no such file or directory c: \ seniorproject \ opencv2.1 \ include \ opencv \ cvinternal.h 131 1 traincascade

Other errors are the same as above. I tried to make a project on opencv in C ++, and I was told to do it in 2011. I am using opencv 2.1 not 2.2. Any help would be greatly appreciated.

+4
source share
4 answers

In Visual C ++, you need to tell the compiler where to look for libraries and OpenCV headers. It seems the compiler cannot find the library.

OR According to:

http://opencv.willowgarage.com/wiki/VisualC%2B%2B

a) OpenCV 2.1 has problems with 64 bit configuration, updating. b) As you can see from the link above, create libraries on your system using CMake and Visual Studio in 64-bit mode.

+1
source

You need to configure using CMake (as indicated by Ouspoken). Get OpenCV 2.2 and try the next walkthrough .

If you are using the latest Intel IPP / TBB, you will have to modify the CMake file a bit (sure / hope it will be fixed soon).

0
source

In fact, you need to check the system processes, there are several MSBUILD.exe, even if you close the MS Visual studio. After you kill this process and try to restore it again, it will work.

0
source

You can also watch this video here, http://www.youtube.com/watch?v=kZvjTTK9zTw . It shows how to configure opensv 2.3.1 in MS Visual studio 2010. It has directive instructions on how to do this, you should not experience serious problems.

0
source

Source: https://habr.com/ru/post/1338631/


All Articles