<div dir="ltr">cmake 2.8.12<div>MacOSX 10.8.5</div><div>gcc i686-apple-darwin11-llvm-gcc-4.2</div><div>OpenCV 2.4.3</div><div><br></div><div>Hi. I am new to cmake. Now I am trying to build a system that requires OpenCV.</div>
<div>Source codes are separated into several modules, so cmake can make my life easier.</div><div><br></div><div>running </div><div><br></div><div>cmake . </div><div><br></div><div>in the project directory seems ok, giving,</div>
<div><br></div><div><div>% cmake .</div><div>-- Configuring done</div><div>-- Generating done</div><div>-- Build files have been written to: /Users/soichi/Dropbox/OpenCV/project1</div></div><div><br></div><div>but running "make" gives</div>
<div><br></div><div><div>% make</div><div>make[2]: *** No rule to make target `/usr/local/lib/libopencv_calib3d.dylib', needed by `DetectRegions_Desktop'. Stop.</div><div>make[1]: *** [CMakeFiles/DetectRegions_Desktop.dir/all] Error 2</div>
<div>make: *** [all] Error 2</div></div><div><br></div><div>cmake cannot find libopencv_calib3d.dylib . Of course the problem is the library directory. which is NOT /usr/local/lib/ but IS /Users/soichi/OpenCV-2.4.3/release/lib</div>
<div><br></div><div>This should be a basic question but I need to ask.</div><div><br></div><div>Where do I need to specify the directory of external library?</div><div><br></div><div>More specifically, it should be something like</div>
<div><br></div><div>OpenCV_LIB_DIR =???</div><div><br></div></div>