opencv 라이브러리 xCode 에 설정하기
Build OpenCV-2.0.0 for iPhone OS 3.1 (simulator and device) according to this good tutorial.
Under Target > Build > Linking > Other Linker Flags (These flags are passed with all linker invocations. [OTHER_LDFLAGS]) add Build Setting Conditions for Any iPhone Device/Any Architecture and Any iPhone OS Simulator/Any Architecture. Add the flags-lstdc++, -lz, $(SRCROOT)/OpenCV/opencv_{device,simulator}/lib/libcv.a andlibcxcore.a
Under Target > Build > Search Paths > Header Search Paths (This is a list of paths to folders to be searched by the compiler for included or imported header files when compiling C, Objective-C, C++, or Objective-C++. Paths are delimited by whitespace, so any paths with spaces in them need to be properly quoted. [HEADER_SEARCH_PATHS, -I]) add Build Setting Conditions for Any iPhone Device/Any Architecture and Any Iphone OS Simulator/Any Architecture. Add the path$(SRCROOT)/OpenCV/opencv_{device,simulator}/include without recursive flag.
#import <opencv/cv.h>
<주의사항> 경로에 빈칸이 있는경우 적절히 쿼트를 해줘야함. 이것때문에 한시간이나 삽질했음. :^)
'Deveopment' 카테고리의 다른 글
| Xcode 프로젝트명 변경하기. (0) | 2011/02/16 |
|---|---|
| 아이폰 사운드 관련 정보 (0) | 2011/01/21 |
| 입김 불기 Detection Code (0) | 2011/01/12 |
| Reset XBee (0) | 2010/09/18 |
| opencv 라이브러리 xCode 에 설정하기 (0) | 2010/08/21 |
| OpenCV on iPhone (0) | 2010/03/10 |

