2011/07/28

OpenCV 2.3 32/64비트 분리 컴파일

OpenCV 2.3 버전을 컴파일 하는 방법은 앞서 작성한 글에서 기록한 방법과 차이가 없다.


2010/10/17 - [Dev Story] - OpenCV 2.1 + TBB 를 Visual Studio 2010 에서 컴파일하기


이번 글에서는 32비트와 64비트가 구분되도록 라이브러리를 만드는 것이다.

Visual Studio 2005 버전에서는 CMake 에서 만들어진 프로젝트 파일 중에서 *.vcproj 파일들(ALL_BUILD, INSTALL, PACKAGE 제외)에서 아래 파일들을 변경하고 컴파일 한다.



opencv_calib3d230.dll

opencv_calib3d230.lib

opencv_contrib230.dll

opencv_contrib230.lib

opencv_core230.dll

opencv_core230.lib

opencv_createsamples.exe

opencv_createsamples.lib

opencv_features2d230.dll

opencv_features2d230.lib

opencv_flann230.dll

opencv_flann230.lib

opencv_gpu230.dll

opencv_gpu230.lib

opencv_haartraining.exe

opencv_haartraining.lib

opencv_haartraining_engine.lib

opencv_highgui230.dll

opencv_highgui230.lib

opencv_imgproc230.dll

opencv_imgproc230.lib

opencv_legacy230.dll

opencv_legacy230.lib

opencv_ml230.dll

opencv_ml230.lib

opencv_objdetect230.dll

opencv_objdetect230.lib

opencv_ts230.dll

opencv_ts230.lib

opencv_video230.dll

opencv_video230.lib


본인의 경우 64비트 프로젝트는 각각의 파일명에  _x64를 붙였다.


Visual Studio 2010 버전의 경우 *.vcxproj 파일들 중에서 아래 사항을 변경한다. 



opencv_calib3d230</TargetName>

opencv_calib3d230.lib

opencv_contrib230</TargetName>

opencv_contrib230.lib

opencv_core230</TargetName>

opencv_core230.lib

opencv_createsamples</TargetName>

opencv_createsamples.lib

opencv_features2d230</TargetName>

opencv_features2d230.lib

opencv_flann230</TargetName>

opencv_flann230.lib

opencv_gpu230</TargetName>

opencv_gpu230.lib

opencv_haartraining</TargetName>

opencv_haartraining.lib

opencv_haartraining_engine</TargetName>

opencv_haartraining_engine.lib

opencv_highgui230</TargetName>

opencv_highgui230.lib

opencv_imgproc230</TargetName>

opencv_imgproc230.lib

opencv_legacy230</TargetName>

opencv_legacy230.lib

opencv_ml230</TargetName>

opencv_ml230.lib

opencv_objdetect230</TargetName>

opencv_objdetect230.lib

opencv_ts230</TargetName>

opencv_ts230.lib

opencv_video230</TargetName>

opencv_video230.lib


아래 파일목록은 생성된 파일들 이다.

opencv_calib3d230_x64.dll

opencv_contrib230_x64.dll

opencv_core230_x64.dll

opencv_features2d230_x64.dll

opencv_ffmpeg_64.dll

opencv_flann230_x64.dll

opencv_gpu230_x64.dll

opencv_highgui230_x64.dll

opencv_imgproc230_x64.dll

opencv_legacy230_x64.dll

opencv_ml230_x64.dll

opencv_objdetect230_x64.dll

opencv_ts230_x64.dll

opencv_video230_x64.dll



opencv_calib3d230_x64.lib

opencv_contrib230_x64.lib

opencv_core230_x64.lib

opencv_features2d230_x64.lib

opencv_flann230_x64.lib

opencv_gpu230_x64.lib

opencv_haartraining_engine_x64.lib

opencv_highgui230_x64.lib

opencv_imgproc230_x64.lib

opencv_legacy230_x64.lib

opencv_ml230_x64.lib

opencv_objdetect230_x64.lib

opencv_ts230_x64.lib

opencv_video230_x64.lib 

<

Original Post : http://neodreamer-dev.tistory.com/554

No comments :

Post a Comment