SlideShare a Scribd company logo
1 of 20
OpenCV installation
on macOS
목차
1. 운영체제 확인
2. Xcode 설치
3. CMake 설치
4. opencv 소스코드 다운로드
5. makefile 생성
6. 빌드
7. Xcode 에서 프로젝트 생성 / 설정하기
1. 운영체제 확인
코드블럭이 오픈소스라 장점도 있지만, 맥 버전의 코드블럭은 그렇게 잘 만들어지지 않았나 봅니다.
따라서, 애플에서 제공하는 기본 C/C++ IDE Xcode 에서 opencv 를 불러오는 것에 대해 설명드리겠습니다.
터미널에서,
$uname -a
과 같이 명령어를 입력하시면, 본인의 컴퓨터가 32bit , 64bit 운영체제인지 확인하실 수 있습니다.
14년도 이후의 모델이라면 기본적으로 64bit 운영체제를 갖추고 있으므로,
혹시 그 이전 모델의 경우는 제대로 설치되는 것에 대한 보장드릴 수 없습니다.
2. Xcode 설치
App store 에 가셔서, Xcode 를 설치해주시면 됩니다.
설치 후, License Agreement 를 위해서, 프로그램을 한번 실행시킨 후, 라이센스 동의 버튼을 눌러주셔
야 합니다.
3. CMake 설치
opencv 에서 제공하는 cpp 소스파일들을 컴파일해서 사용해야 하는데, 이를 쉽게 해주는 도구입니다.
https://cmake.org/
에 들어가셔서, 현재 최신 버전인 3.10.2인 cmake-3.10.2-Darwin-x86_64.dmg 파일을 받아서, 설치해
줍니다.
4. opencv 소스코드 다운로드
실습 슬라이드 기준에는 2.4.12 버전을 사용하였는데, 맥 OS 업데이트에 따라서, 현재로서는 2.x 버전은
최신 OS 에서 설치하기가 많이 까다로우실 겁니다.
따라서, 현재 가장 최신 버전인 3.4.1 의 소스코드를 다운로드받고, 압축해제를 해줍니다.
https://github.com/opencv/opencv/archive/3.4.1.zip
버전은 다르지만, 실습하는데에 큰 지장은 없습니다.
5. makefile 생성하기
cmake 를 여서서,
where is the source code 의 browse source 버튼을 누르시고 본인이 압축해제한 opencv 폴더를 여
시고,
그 밑에 where to build the binaries 에는,
현재 where is the source code 에 주어진 값 뒤에 /build/를 따로 적어줍니다. 그담에 configure 버튼!
5. makefile 생성하기
그냥 Yes
5. makefile 생성하기
그냥 Done
5. makefile 생성하기
하면 밑에 로그가 계속 나오다가, configuring done이 나타나면 성공적입니다..
customizing 하실 거 있으시면 위에 만지셔도 되는데, 잘 모르겠다 싶으면 그냥 Generate 버튼을 눌러줍
니다.
Generating done이 나오면 성공적입니다.
5. makefile 생성하기
Generating done 나오면 makefile이 잘 생성되었습니다. cmake를 끄셔도 됩니다.
6. 빌드
터미널에서, 기존에 where to build the binaries 에 입력하였던 경로로 이동해줍니다.
이동하신 후, make 명령어를 입력하여 컴파일해줍니다.
중간중간에 warning 문구가 나타날 수 있는데, 결과적으로 build 만 잘되면 됩니다.
13인치 노트북 사용자라면 -j2 옵션을, 15인치 노트북 사용자라면 -j4 옵션을 줘서 더 빠르게 빌드할 수
있습니다.
6. 빌드
마지막에 100%에서, 에러 메시지가 없다면 성공적입니다!
이제, 터미널에 sudo make install 라고 쳐줍니다. 에러 메시지가 따로 없다면 잘 설치되었습니다.
7. Xcode 에서 프로젝트 생성/설정하기
Create a new Xcode project 클릭
7. Xcode 에서 프로젝트 생성/설정하기
macOS > Command Line Tool 선택
7. Xcode 에서 프로젝트 생성/설정하기
Product Name 원하는 입력 입력해주시고, Language 에 C++ 로 설정되었는지 확인해줍니다. 하고 Next
7. Xcode 에서 프로젝트 생성/설정하기
컴퓨터 내 원하는 위치에 프로젝트 파일을 생성해줍니다.
7. Xcode 에서 프로젝트 생성/설정하기
search path 까지 검색하시고,
Header Search Paths, Library Search Paths 항목에 다음과 같이 입력해줍니다.
7. Xcode 에서 프로젝트 생성/설정하기
Other Linker Flags 에서,
opencv-3.4.1/build/lib 에 있는 모든 .dylib 파일을 드래그해서 옮겨줍니다.
7. Xcode 에서 프로젝트 생성/설정하기
코드를 입력하시고, command + R 을 눌러서 결과를 확인할 수 있습니다.

More Related Content

What's hot

Ten Applications for Drones in Construction
Ten Applications for Drones in ConstructionTen Applications for Drones in Construction
Ten Applications for Drones in ConstructionStuart Taylor
 
Principles of building construction, information and communication
Principles of building construction, information and communicationPrinciples of building construction, information and communication
Principles of building construction, information and communicationmichael mcewan
 
2010 uci douglas hospital team platinum award by bdc
2010 uci douglas hospital team platinum award by bdc2010 uci douglas hospital team platinum award by bdc
2010 uci douglas hospital team platinum award by bdcAvi Grigorescu
 
Market challenge & opportunities in construction sector in ksa
Market challenge & opportunities in construction sector in ksaMarket challenge & opportunities in construction sector in ksa
Market challenge & opportunities in construction sector in ksaSamer MOBAYED
 
Total Station Topographic Survey
Total Station Topographic Survey Total Station Topographic Survey
Total Station Topographic Survey haroldtaylor1113
 
Revised recovery programme preparation practical guide rev.00
Revised recovery programme preparation practical guide rev.00Revised recovery programme preparation practical guide rev.00
Revised recovery programme preparation practical guide rev.00AbdelrahmanHasan3
 
Advanced Road Design with InfraWorks
Advanced Road Design with InfraWorksAdvanced Road Design with InfraWorks
Advanced Road Design with InfraWorksQuentin Marquette
 
My BIM Profesional Portafolio English version
My BIM Profesional Portafolio English versionMy BIM Profesional Portafolio English version
My BIM Profesional Portafolio English versionDaniel Almenares
 
CD March 2015 - Bentley presentation about current BIM thinking
CD March 2015 - Bentley presentation about current BIM thinkingCD March 2015 - Bentley presentation about current BIM thinking
CD March 2015 - Bentley presentation about current BIM thinkingComit Projects Ltd
 
Compass surveying_Surveying, Civil Engineering
Compass surveying_Surveying, Civil EngineeringCompass surveying_Surveying, Civil Engineering
Compass surveying_Surveying, Civil EngineeringA Makwana
 
Building Information Modeling (BIM) & Industry Foundation Classes (IFC)
Building Information Modeling (BIM)  & Industry Foundation Classes (IFC)Building Information Modeling (BIM)  & Industry Foundation Classes (IFC)
Building Information Modeling (BIM) & Industry Foundation Classes (IFC)metalalp
 
Baseline Schedules 1
Baseline Schedules 1Baseline Schedules 1
Baseline Schedules 1Chris Carson
 
S2 7 edm & total stations
S2 7 edm & total stationsS2 7 edm & total stations
S2 7 edm & total stationsEst
 

What's hot (20)

Ten Applications for Drones in Construction
Ten Applications for Drones in ConstructionTen Applications for Drones in Construction
Ten Applications for Drones in Construction
 
Principles of building construction, information and communication
Principles of building construction, information and communicationPrinciples of building construction, information and communication
Principles of building construction, information and communication
 
2010 uci douglas hospital team platinum award by bdc
2010 uci douglas hospital team platinum award by bdc2010 uci douglas hospital team platinum award by bdc
2010 uci douglas hospital team platinum award by bdc
 
Collaboration - Open Opportunities & Bring Possibilities - Mr. Alex HO Senior...
Collaboration - Open Opportunities & Bring Possibilities - Mr. Alex HO Senior...Collaboration - Open Opportunities & Bring Possibilities - Mr. Alex HO Senior...
Collaboration - Open Opportunities & Bring Possibilities - Mr. Alex HO Senior...
 
Scope of work
Scope of workScope of work
Scope of work
 
CIC BIM Standards Draft v6.1-150214
CIC BIM Standards Draft v6.1-150214CIC BIM Standards Draft v6.1-150214
CIC BIM Standards Draft v6.1-150214
 
Market challenge & opportunities in construction sector in ksa
Market challenge & opportunities in construction sector in ksaMarket challenge & opportunities in construction sector in ksa
Market challenge & opportunities in construction sector in ksa
 
Total Station Topographic Survey
Total Station Topographic Survey Total Station Topographic Survey
Total Station Topographic Survey
 
Revised recovery programme preparation practical guide rev.00
Revised recovery programme preparation practical guide rev.00Revised recovery programme preparation practical guide rev.00
Revised recovery programme preparation practical guide rev.00
 
Advanced Road Design with InfraWorks
Advanced Road Design with InfraWorksAdvanced Road Design with InfraWorks
Advanced Road Design with InfraWorks
 
Total station
Total stationTotal station
Total station
 
My BIM Profesional Portafolio English version
My BIM Profesional Portafolio English versionMy BIM Profesional Portafolio English version
My BIM Profesional Portafolio English version
 
CD March 2015 - Bentley presentation about current BIM thinking
CD March 2015 - Bentley presentation about current BIM thinkingCD March 2015 - Bentley presentation about current BIM thinking
CD March 2015 - Bentley presentation about current BIM thinking
 
Compass surveying_Surveying, Civil Engineering
Compass surveying_Surveying, Civil EngineeringCompass surveying_Surveying, Civil Engineering
Compass surveying_Surveying, Civil Engineering
 
3D Clash Detection
3D Clash Detection3D Clash Detection
3D Clash Detection
 
Building Information Modeling (BIM) & Industry Foundation Classes (IFC)
Building Information Modeling (BIM)  & Industry Foundation Classes (IFC)Building Information Modeling (BIM)  & Industry Foundation Classes (IFC)
Building Information Modeling (BIM) & Industry Foundation Classes (IFC)
 
BIM
BIM BIM
BIM
 
Baseline Schedules 1
Baseline Schedules 1Baseline Schedules 1
Baseline Schedules 1
 
NEC3 programme
NEC3 programmeNEC3 programme
NEC3 programme
 
S2 7 edm & total stations
S2 7 edm & total stationsS2 7 edm & total stations
S2 7 edm & total stations
 

Similar to macOS 에 opencv3 설치 후 Xcode 로 프로젝트 불러오기

오픈소스가이드 win,c++
오픈소스가이드 win,c++오픈소스가이드 win,c++
오픈소스가이드 win,c++jdo
 
게임프로그래밍입문 2주차
게임프로그래밍입문 2주차게임프로그래밍입문 2주차
게임프로그래밍입문 2주차Yeonah Ki
 
[스마일팟화분키트]엠블록 설치가이드
[스마일팟화분키트]엠블록 설치가이드[스마일팟화분키트]엠블록 설치가이드
[스마일팟화분키트]엠블록 설치가이드kocoafab
 
[자동 손세정제 키트]스케치 설치가이드
[자동 손세정제 키트]스케치 설치가이드[자동 손세정제 키트]스케치 설치가이드
[자동 손세정제 키트]스케치 설치가이드kocoafab
 
IntelliJ로 Salesforce 개발환경 구축
IntelliJ로 Salesforce 개발환경 구축IntelliJ로 Salesforce 개발환경 구축
IntelliJ로 Salesforce 개발환경 구축Jaewon Lee
 
빌드관리 및 디버깅 (2010년 자료)
빌드관리 및 디버깅 (2010년 자료)빌드관리 및 디버깅 (2010년 자료)
빌드관리 및 디버깅 (2010년 자료)YEONG-CHEON YOU
 
Kinect 사용을 위한 OpenCV, PCL 라이브러리 설치
Kinect 사용을 위한 OpenCV, PCL 라이브러리 설치Kinect 사용을 위한 OpenCV, PCL 라이브러리 설치
Kinect 사용을 위한 OpenCV, PCL 라이브러리 설치Inyoung Oh
 
구글앱엔진+스프링+스프링datajpa+메이븐
구글앱엔진+스프링+스프링datajpa+메이븐구글앱엔진+스프링+스프링datajpa+메이븐
구글앱엔진+스프링+스프링datajpa+메이븐라한사 아
 
당신의 디버깅에 니코니코니
당신의 디버깅에 니코니코니당신의 디버깅에 니코니코니
당신의 디버깅에 니코니코니Lusain Kim
 
Chapter 2. 업무 자동화를 위한 컴퓨터 세팅 | 6개월 치 업무를 하루 만에 끝내는 업무자동화 |...
Chapter 2. 업무 자동화를 위한 컴퓨터 세팅 | 6개월 치 업무를 하루 만에 끝내는 업무자동화 |...Chapter 2. 업무 자동화를 위한 컴퓨터 세팅 | 6개월 치 업무를 하루 만에 끝내는 업무자동화 |...
Chapter 2. 업무 자동화를 위한 컴퓨터 세팅 | 6개월 치 업무를 하루 만에 끝내는 업무자동화 |...Byunghyun Ban
 
CI in the Mobile World (한글번역)
CI in the Mobile World (한글번역)CI in the Mobile World (한글번역)
CI in the Mobile World (한글번역)DONGSU KIM
 
랩탑으로 tensorflow 도전하기 - tensorflow 설치
랩탑으로 tensorflow 도전하기 - tensorflow 설치랩탑으로 tensorflow 도전하기 - tensorflow 설치
랩탑으로 tensorflow 도전하기 - tensorflow 설치Lee Seungeun
 
Install meteor on windows
Install meteor on windowsInstall meteor on windows
Install meteor on windowsseung-hyun Park
 
[GitSpace 1회 세미나] fastlane.pdf
[GitSpace 1회 세미나] fastlane.pdf[GitSpace 1회 세미나] fastlane.pdf
[GitSpace 1회 세미나] fastlane.pdfLee Dahae
 
OpenCV 3.4.0 개발환경 구축하기
OpenCV 3.4.0 개발환경 구축하기OpenCV 3.4.0 개발환경 구축하기
OpenCV 3.4.0 개발환경 구축하기jdo
 
MSBuild + Git + Jenkins
MSBuild + Git + JenkinsMSBuild + Git + Jenkins
MSBuild + Git + Jenkins선협 이
 
[NHN_NEXT] 게임 휴먼 프로젝트 CI + GitHub 세팅 방법
[NHN_NEXT] 게임 휴먼 프로젝트 CI + GitHub 세팅 방법[NHN_NEXT] 게임 휴먼 프로젝트 CI + GitHub 세팅 방법
[NHN_NEXT] 게임 휴먼 프로젝트 CI + GitHub 세팅 방법MinGeun Park
 
Web assembly 맛보기
Web assembly 맛보기Web assembly 맛보기
Web assembly 맛보기GyeongSeok Seo
 
NDC2017 언리얼엔진4 디버깅 101 - 게임 기획자, 프로그래머가 버그와 만났을 때 사용할 수 있는 지침들
NDC2017 언리얼엔진4 디버깅 101 - 게임 기획자, 프로그래머가 버그와 만났을 때 사용할 수 있는 지침들NDC2017 언리얼엔진4 디버깅 101 - 게임 기획자, 프로그래머가 버그와 만났을 때 사용할 수 있는 지침들
NDC2017 언리얼엔진4 디버깅 101 - 게임 기획자, 프로그래머가 버그와 만났을 때 사용할 수 있는 지침들영욱 오
 

Similar to macOS 에 opencv3 설치 후 Xcode 로 프로젝트 불러오기 (20)

오픈소스가이드 win,c++
오픈소스가이드 win,c++오픈소스가이드 win,c++
오픈소스가이드 win,c++
 
게임프로그래밍입문 2주차
게임프로그래밍입문 2주차게임프로그래밍입문 2주차
게임프로그래밍입문 2주차
 
[스마일팟화분키트]엠블록 설치가이드
[스마일팟화분키트]엠블록 설치가이드[스마일팟화분키트]엠블록 설치가이드
[스마일팟화분키트]엠블록 설치가이드
 
[자동 손세정제 키트]스케치 설치가이드
[자동 손세정제 키트]스케치 설치가이드[자동 손세정제 키트]스케치 설치가이드
[자동 손세정제 키트]스케치 설치가이드
 
IntelliJ로 Salesforce 개발환경 구축
IntelliJ로 Salesforce 개발환경 구축IntelliJ로 Salesforce 개발환경 구축
IntelliJ로 Salesforce 개발환경 구축
 
빌드관리 및 디버깅 (2010년 자료)
빌드관리 및 디버깅 (2010년 자료)빌드관리 및 디버깅 (2010년 자료)
빌드관리 및 디버깅 (2010년 자료)
 
Kinect 사용을 위한 OpenCV, PCL 라이브러리 설치
Kinect 사용을 위한 OpenCV, PCL 라이브러리 설치Kinect 사용을 위한 OpenCV, PCL 라이브러리 설치
Kinect 사용을 위한 OpenCV, PCL 라이브러리 설치
 
구글앱엔진+스프링+스프링datajpa+메이븐
구글앱엔진+스프링+스프링datajpa+메이븐구글앱엔진+스프링+스프링datajpa+메이븐
구글앱엔진+스프링+스프링datajpa+메이븐
 
당신의 디버깅에 니코니코니
당신의 디버깅에 니코니코니당신의 디버깅에 니코니코니
당신의 디버깅에 니코니코니
 
Shellcode
ShellcodeShellcode
Shellcode
 
Chapter 2. 업무 자동화를 위한 컴퓨터 세팅 | 6개월 치 업무를 하루 만에 끝내는 업무자동화 |...
Chapter 2. 업무 자동화를 위한 컴퓨터 세팅 | 6개월 치 업무를 하루 만에 끝내는 업무자동화 |...Chapter 2. 업무 자동화를 위한 컴퓨터 세팅 | 6개월 치 업무를 하루 만에 끝내는 업무자동화 |...
Chapter 2. 업무 자동화를 위한 컴퓨터 세팅 | 6개월 치 업무를 하루 만에 끝내는 업무자동화 |...
 
CI in the Mobile World (한글번역)
CI in the Mobile World (한글번역)CI in the Mobile World (한글번역)
CI in the Mobile World (한글번역)
 
랩탑으로 tensorflow 도전하기 - tensorflow 설치
랩탑으로 tensorflow 도전하기 - tensorflow 설치랩탑으로 tensorflow 도전하기 - tensorflow 설치
랩탑으로 tensorflow 도전하기 - tensorflow 설치
 
Install meteor on windows
Install meteor on windowsInstall meteor on windows
Install meteor on windows
 
[GitSpace 1회 세미나] fastlane.pdf
[GitSpace 1회 세미나] fastlane.pdf[GitSpace 1회 세미나] fastlane.pdf
[GitSpace 1회 세미나] fastlane.pdf
 
OpenCV 3.4.0 개발환경 구축하기
OpenCV 3.4.0 개발환경 구축하기OpenCV 3.4.0 개발환경 구축하기
OpenCV 3.4.0 개발환경 구축하기
 
MSBuild + Git + Jenkins
MSBuild + Git + JenkinsMSBuild + Git + Jenkins
MSBuild + Git + Jenkins
 
[NHN_NEXT] 게임 휴먼 프로젝트 CI + GitHub 세팅 방법
[NHN_NEXT] 게임 휴먼 프로젝트 CI + GitHub 세팅 방법[NHN_NEXT] 게임 휴먼 프로젝트 CI + GitHub 세팅 방법
[NHN_NEXT] 게임 휴먼 프로젝트 CI + GitHub 세팅 방법
 
Web assembly 맛보기
Web assembly 맛보기Web assembly 맛보기
Web assembly 맛보기
 
NDC2017 언리얼엔진4 디버깅 101 - 게임 기획자, 프로그래머가 버그와 만났을 때 사용할 수 있는 지침들
NDC2017 언리얼엔진4 디버깅 101 - 게임 기획자, 프로그래머가 버그와 만났을 때 사용할 수 있는 지침들NDC2017 언리얼엔진4 디버깅 101 - 게임 기획자, 프로그래머가 버그와 만났을 때 사용할 수 있는 지침들
NDC2017 언리얼엔진4 디버깅 101 - 게임 기획자, 프로그래머가 버그와 만났을 때 사용할 수 있는 지침들
 

macOS 에 opencv3 설치 후 Xcode 로 프로젝트 불러오기

  • 2. 목차 1. 운영체제 확인 2. Xcode 설치 3. CMake 설치 4. opencv 소스코드 다운로드 5. makefile 생성 6. 빌드 7. Xcode 에서 프로젝트 생성 / 설정하기
  • 3. 1. 운영체제 확인 코드블럭이 오픈소스라 장점도 있지만, 맥 버전의 코드블럭은 그렇게 잘 만들어지지 않았나 봅니다. 따라서, 애플에서 제공하는 기본 C/C++ IDE Xcode 에서 opencv 를 불러오는 것에 대해 설명드리겠습니다. 터미널에서, $uname -a 과 같이 명령어를 입력하시면, 본인의 컴퓨터가 32bit , 64bit 운영체제인지 확인하실 수 있습니다. 14년도 이후의 모델이라면 기본적으로 64bit 운영체제를 갖추고 있으므로, 혹시 그 이전 모델의 경우는 제대로 설치되는 것에 대한 보장드릴 수 없습니다.
  • 4. 2. Xcode 설치 App store 에 가셔서, Xcode 를 설치해주시면 됩니다. 설치 후, License Agreement 를 위해서, 프로그램을 한번 실행시킨 후, 라이센스 동의 버튼을 눌러주셔 야 합니다.
  • 5. 3. CMake 설치 opencv 에서 제공하는 cpp 소스파일들을 컴파일해서 사용해야 하는데, 이를 쉽게 해주는 도구입니다. https://cmake.org/ 에 들어가셔서, 현재 최신 버전인 3.10.2인 cmake-3.10.2-Darwin-x86_64.dmg 파일을 받아서, 설치해 줍니다.
  • 6. 4. opencv 소스코드 다운로드 실습 슬라이드 기준에는 2.4.12 버전을 사용하였는데, 맥 OS 업데이트에 따라서, 현재로서는 2.x 버전은 최신 OS 에서 설치하기가 많이 까다로우실 겁니다. 따라서, 현재 가장 최신 버전인 3.4.1 의 소스코드를 다운로드받고, 압축해제를 해줍니다. https://github.com/opencv/opencv/archive/3.4.1.zip 버전은 다르지만, 실습하는데에 큰 지장은 없습니다.
  • 7. 5. makefile 생성하기 cmake 를 여서서, where is the source code 의 browse source 버튼을 누르시고 본인이 압축해제한 opencv 폴더를 여 시고, 그 밑에 where to build the binaries 에는, 현재 where is the source code 에 주어진 값 뒤에 /build/를 따로 적어줍니다. 그담에 configure 버튼!
  • 10. 5. makefile 생성하기 하면 밑에 로그가 계속 나오다가, configuring done이 나타나면 성공적입니다.. customizing 하실 거 있으시면 위에 만지셔도 되는데, 잘 모르겠다 싶으면 그냥 Generate 버튼을 눌러줍 니다. Generating done이 나오면 성공적입니다.
  • 11. 5. makefile 생성하기 Generating done 나오면 makefile이 잘 생성되었습니다. cmake를 끄셔도 됩니다.
  • 12. 6. 빌드 터미널에서, 기존에 where to build the binaries 에 입력하였던 경로로 이동해줍니다. 이동하신 후, make 명령어를 입력하여 컴파일해줍니다. 중간중간에 warning 문구가 나타날 수 있는데, 결과적으로 build 만 잘되면 됩니다. 13인치 노트북 사용자라면 -j2 옵션을, 15인치 노트북 사용자라면 -j4 옵션을 줘서 더 빠르게 빌드할 수 있습니다.
  • 13. 6. 빌드 마지막에 100%에서, 에러 메시지가 없다면 성공적입니다! 이제, 터미널에 sudo make install 라고 쳐줍니다. 에러 메시지가 따로 없다면 잘 설치되었습니다.
  • 14. 7. Xcode 에서 프로젝트 생성/설정하기 Create a new Xcode project 클릭
  • 15. 7. Xcode 에서 프로젝트 생성/설정하기 macOS > Command Line Tool 선택
  • 16. 7. Xcode 에서 프로젝트 생성/설정하기 Product Name 원하는 입력 입력해주시고, Language 에 C++ 로 설정되었는지 확인해줍니다. 하고 Next
  • 17. 7. Xcode 에서 프로젝트 생성/설정하기 컴퓨터 내 원하는 위치에 프로젝트 파일을 생성해줍니다.
  • 18. 7. Xcode 에서 프로젝트 생성/설정하기 search path 까지 검색하시고, Header Search Paths, Library Search Paths 항목에 다음과 같이 입력해줍니다.
  • 19. 7. Xcode 에서 프로젝트 생성/설정하기 Other Linker Flags 에서, opencv-3.4.1/build/lib 에 있는 모든 .dylib 파일을 드래그해서 옮겨줍니다.
  • 20. 7. Xcode 에서 프로젝트 생성/설정하기 코드를 입력하시고, command + R 을 눌러서 결과를 확인할 수 있습니다.