Ask Your Question

What is the Difference between Installation OpenCV by Using the Pre-built Libraries & by Making Own Libraries from the Source Files ?

asked 2012-11-01 12:44:08 -0600

Elec gravatar image


I need 2 know the Difference between Installation OpenCV

1. By Using the Pre-built Libraries ?
2. By Making Own Libraries from the Source Files ?

When we do first one we have to only download OpenCV new version and extract it, and configure it with Visual studio using CMake.

But why we are going to download OpenCV libraries and others using TortoiseGit hub(it takes many time) ? Are there any special advantage of that?

Could u please answer these questions...

Thank U, Elec.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2012-11-02 02:32:59 -0600

Daniil Osokin gravatar image

updated 2012-11-02 02:34:34 -0600

Hi, Elec!
Installation by using pre-built libs is the easiest way to start work with OpenCV. If you want just use OpenCV functions you should choice pre-built libs.

If you want to:

  • modify OpenCV source code
  • include OpenCV function in your project without libs dependencies
  • contribute

or there is no pre-built libs for your system, you can clone OpenCV sources and do whatever you want. Furthermore, you can clone master branch to get the OpenCV with latest changes, patches, features.

edit flag offensive delete link more


Hello Mr.Daniil,

First many thanks 4 your reply.

So I have simple problem. When we install OpenCV using pre-built libraries;

1.First we have to install CMAKE.

2.Then Extract OpenCV and configure opencv with visual studio using CMAKE.

3.Next add OpenCV library to the system path.

Are these steps correct?..So is the use of the CMAKE is configure opencv with Visual Studio?What is the use of CMAKE?

I must be thankful to u if u kindly answer these questions.

Thank U.

Elec gravatar imageElec ( 2012-11-03 00:20:39 -0600 )edit

You should not use cmake for pre-built libs.You just need to extract pre-built OpenCV libs, and then you can use them in Visual Studio project. Official installation guide for this case:, build applications with OpenCV inside the Microsoft Visual Studio: Hope, this helps.

Daniil Osokin gravatar imageDaniil Osokin ( 2012-11-05 03:48:00 -0600 )edit

Thanks a lot Daniil

Elec gravatar imageElec ( 2012-11-05 07:34:58 -0600 )edit

Hello Mr Daniil,

I downloaded OpenCV-2.4.2 and I couldn't find any exe(auto run) file there.How ever I extracted that in to my C:\ directory and followed the process in this video>>

I have VS 2008 version. According to the video First I Added OpenCV to system variables and next build Visual Studio project. Added all the libraries and completed according to the video.

But When I debug my project it says>> The application has failed to start because tbb_debug.dll was not found.

So Mr Daniil, 1)Are there any wrong in my installation or this video? 2)Did I completed the installation process correct?

Thank U.

Elec gravatar imageElec ( 2012-11-09 11:50:16 -0600 )edit

I'm think installation is ok, and process correct. You should add tbb_debug.dll as other OpenCV libs to your project properties (this step ~ 4.45 min of video). TBB is a multithreading library, you should download it separately (if you don't have it). P.S. You should ask a new question, not a comment.

Daniil Osokin gravatar imageDaniil Osokin ( 2012-11-15 13:03:41 -0600 )edit

Thanks Daniil..

Elec gravatar imageElec ( 2012-11-25 05:48:21 -0600 )edit

GPU module is not working in pre-build libs?

mrgloom gravatar imagemrgloom ( 2013-04-18 09:18:44 -0600 )edit

Is there a repository of pre built OpenCV (I mean someone has already compiled them)?

Royi gravatar imageRoyi ( 2018-04-08 13:20:57 -0600 )edit

answered 2012-11-26 14:23:41 -0600

paj006 gravatar image

If you want to set debugging breakpoints and step through the code, you need to build your own libraries :(

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2012-11-01 12:44:08 -0600

Seen: 4,900 times

Last updated: Nov 26 '12