What's the difference between OpenCV_DIR and OpenCV_BUILD?

asked 2014-02-25 12:42:44 -0500

solarblast gravatar image

updated 2014-02-25 12:43:33 -0500

My question is in the Subject. cmake?

edit retag flag offensive close merge delete

Comments

  • OpenCV_DIR is where the source is (i.e the location of CmakeLists.txt)
  • OpenCV_BUILD is where the temporary / generated files will be written. (please don't use the src folder for this, else you get into trouble cleaning up)

  • CMAKE_INSTALL_PREFIX is the dir, where the final libs/binaries/headers will be copied

berak gravatar imageberak ( 2014-02-25 13:12:59 -0500 )edit

I should have mentioned that I'm using pre-built, and 2.4.6. Do I need to go into command mode to somehow to find the actual value (path) of Open_DR. I have yet to come even close to getting a config started. I found in my path, ...\Tools\Binn\;%OPENCV_BUILD%\x64\VC10\bin. The install must have put it there.

solarblast gravatar imagesolarblast ( 2014-02-25 13:28:10 -0500 )edit

wait.

if you're using the prebuild binaries, where's the point in using cmake ?

berak gravatar imageberak ( 2014-02-25 13:32:10 -0500 )edit

I don't use cmake.

solarblast gravatar imagesolarblast ( 2014-02-25 14:56:49 -0500 )edit

why bother then about cmake variables ?

berak gravatar imageberak ( 2014-02-25 15:06:53 -0500 )edit

As far as I know, I'm not using any cmake variables.

solarblast gravatar imagesolarblast ( 2014-02-25 16:29:22 -0500 )edit

With a little research on Google, it appears cmake is a pretty heavy duty program. <http://www.cmake.org/cmake/help/cmake_tutorial.html> There's go to be another way to configure OpenCV.

solarblast gravatar imagesolarblast ( 2014-02-25 23:01:14 -0500 )edit