Jayesh
Jayesh

Reputation: 3951

Compiling OpenCV

I opened up the solution file in the [InstallDir]\_make\opencv.vs2005 and modified one of the .cpp files in the highgui library.

While compiling, Visual Studio throws the error -

  Unable to start progam 
    C:/Users/../AppData/Local/Temp/opencv.build/cv_Debug.Win32/cv.dll

    The system cannot find the file specified.

I think I am missing something in it. What is the stepped procedure to change and recompile OpenCV library using Visual Studio.

I would appreciate any help!

Thank You..

Upvotes: 0

Views: 1069

Answers (2)

LovaBill
LovaBill

Reputation: 5139

I guess you want to customize a function. You can do this, without recompiling OpenCV from scratch. You can simply copy the .cpp source file locally in your current working directory, and add it(click n drag or add existing file) in the "Source Files" in your project. You might need to copy some other headers as well. You will find everything in the opencv archive. (opencv/modules/highgui/src)

Upvotes: 0

agnul
agnul

Reputation: 13058

Unless you downloaded the visual-studio specific version of the open cv distribution files, you need to follow the instructions on the OpenCV wiki, that is

  1. download cmake
  2. have cmake generate makefiles/solutions
  3. build using the generated files

Upvotes: 2

Related Questions