티스토리 뷰

우선 아래 글을 참고하여 진행하면 되는데, 나중을 위해 간략하게 요약해 둔다.


http://hyeok-shin.tistory.com/1

http://freeprog.tistory.com/91

http://yamecoder.tistory.com/308

http://ledgku.tistory.com/60

http://stackoverflow.com/questions/28036117/opencv-doesnt-work-with-vs2013


환경 변수 등록

OEPNCV_DIR: my_opencv_root\build

Path에 %OPENCV_DIR%\x86\vc12\bin 추가

원래 Visual Studio 2015는 vc14가 맞는데 그냥 vc12로 하면 된다. x86/x64는 적절히... 재부팅이 필요하다고 한다.


Project Properties의 각 항목을 추가

C/C++ -> General -> Additional Include Directories:

%OPENCV_DIR%\include


Linker -> General -> Additional Library Directories:

%OPENCV_DIR%\x86\vc12\lib

물론 여기도 x86/x64는 적절히...


Linker -> General -> Additional Dependencies:

opencv_ts300.lib

opencv_world300.lib

Release가 아닌 Debug일 경우는

opencv_ts300d.lib

opencv_world300d.lib


이 설정을 property manager로 저장해두고 쓰는 방법은 두번째 링크 참조



댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함