c++ - OpenCV 3.0.0 with cmake - where are the includes/libraries -


i compiled opencv 3.0.0 tbb using cmake , unsure include , library directories (for vs 2012). followed these instructions, library not in folder mentioned in "set environment path" blurb (which copied earlier version).

  1. am right in assuming relevant folder "opencv/build" , "opencv/source" no longer plays role new projects?

  2. are needed includes , libraries in "opencv/build/install/include" , "opencv/build/install/x86/lib/vc11/lib" respectively? added those, corresponding additional dependancies - program

#include "opencv2/opencv.hpp"

int main( int argc, char** argv ) { cv::mat src = cv::imread( "c:\\pics\\test.tif",0); cv::imshow("end",src);     return 0; } 

compiles, crashes saying:

the program can't start because opencv_core300.dll missing computer. try reinstalling program fix problem.

what reason?

then need specify libraries in linker should into. go linker ‣ input , under “additional dependencies” entry add name of modules want use:

enter image description here

add debug library names here.like this. names of libraries follow:

opencv_(the name of module)(the version number of library use)d.lib full list, latest version contain:

opencv_calib3d300d.lib  opencv_contrib300d.lib  opencv_core300d.lib  opencv_features2d300d.lib  opencv_flann300d.lib  opencv_gpu300d.lib  opencv_highgui300d.lib  opencv_imgproc300d.lib  opencv_legacy300d.lib  opencv_ml300d.lib  opencv_nonfree300d.lib  opencv_objdetect300d.lib  opencv_ocl300d.lib  opencv_photo300d.lib  opencv_stitching300d.lib  opencv_superres300d.lib  opencv_ts300d.lib  opencv_video300d.lib  opencv_videostab300d.lib 

the letter d @ end indicates these libraries required debug. click ok save , same new property inside release rule section. make sure omit d letters library names , save property sheets save icon above them.

and release ones. can find property sheets inside projects directory. @ point wise decision them special directory, have them @ hand in future, whenever create opencv project. note visual studio 2010 file extension props, while 2008 vsprops.

and release ones. next time when make new opencv project use “add existing property sheet...” menu entry inside property manager add opencv build rules.

check official instruction


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -