Test 환경
- Windows 8 Pro K 64bit
- CYGWIN_NT-6.3 HWANGJIN-PC 1.7.32(0.274/5/3) 2014-08-13 23:06 x86_64 Cygwin
(cygwin에서 "uname -a"로 확인)
- ffmpeg 2.5.1
1. FFmpeg 사이트의 Download 탭으로 이동(https://www.ffmpeg.org/download.html)
A. Windows 탭의 링크 사이트로 이동(http://ffmpeg.zeranoe.com/builds/)
B. 미리 빌드되어 있는 압축 파일 다운(Shared, Dev)
방법 1. Lastest Build Version 다운
방법 2. "http://ffmpeg.zeranoe.com/builds/win64" 에서 원하는 Version 다운
C. dev 압축파일의 include 폴더에 있는 파일 복사 -> "$FFMPEG\include"
D. shared 압축파일의 bin 폴더에 있는 dll 파일 복사 -> "$FFMPEG\dll"
2. 프로젝트 설정
Project - Properties - C/C++ Build - Settings - Tool Settings
Cygwin C++ Compiler - Dialect - Language standard - ISO c++ 11(-std=c++0x)
방법 1. Project - Properties - C/C++ Build - Settings - Tool Settings
A. Cygwin C++ Compiler - Include paths (-I) - "$FFMPEG\include"
B. Cygwin C++ Linker - Libraries - Libraries(-l) - "avcodec-56", "avdevice-56", ...
C. Cygwin C++ Linker - Libraries - Library search path (-L) - "$FFMPEG\dll"
방법 2. Project - Properties - C/C++ General - Paths and Symbols
A. Includes - GNU C++ - include directories - "$FFMPEG\include"
B. Libraries - "avcodec-56", "avdevice-56", ...
C. Library Paths - "$FFMPEG\dll"
3. Run 실행을 위한 DLL 파일 복사
방법 1. "$FFMPEG\dll" 폴더의 dll 파일들을 Debug폴더로 복사 이후 실행
방법 2. 시스템 환경변수에 "$FFMPEG\dll" Path 추가 이후 실행
'Android > ffmpeg' 카테고리의 다른 글
NDK & FFmpeg Build(Windows & Cygwin) (0) | 2014.06.23 |
---|