상세 컨텐츠

본문 제목

MinGW에서 x264 설치하기

오픈소스 연구/MinGW

by ryujt 2011. 8. 5. 05:28

본문

# git clone git://git.videolan.org/x264.git


# ./configure --prefix=/mingw --enable-shared --enable-static
# make
# make install 

atecontrol.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o encoder/set.o encoder/set.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o encoder/macroblock.o encoder/ma

croblock.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o encoder/cabac.o encoder/cabac.c


gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o encoder/cavlc.o encoder/cavlc.c


gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o encoder/encoder.o encoder/encod

er.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o encoder/lookahead.o encoder/loo

kahead.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o common/threadpool.o common/thre

adpool.c

ar rc libx264.a common/mc.o common/predict.o common/pixel.o common/macroblock.o

common/frame.o common/dct.o common/cpu.o common/cabac.o common/common.o common/o

sdep.o common/rectangle.o common/set.o common/quant.o common/deblock.o common/vl

c.o common/mvpred.o common/bitstream.o encoder/analyse.o encoder/me.o encoder/ra

tecontrol.o encoder/set.o encoder/macroblock.o encoder/cabac.o encoder/cavlc.o e

ncoder/encoder.o encoder/lookahead.o common/threadpool.o

ranlib libx264.a

gcc -o x264.exe x264.o input/input.o input/timecode.o input/raw.o input/y4m.o ou

tput/raw.o output/matroska.o output/matroska_ebml.o output/flv.o output/flv_byte

stream.o filters/filters.o filters/video/video.o filters/video/source.o filters/

video/internal.o filters/video/resize.o filters/video/cache.o filters/video/fix_

vfr_pts.o filters/video/select_every.o filters/video/crop.o filters/video/depth.

o input/avs.o input/thread.o libx264.a  -Wl,--large-address-aware -lpthread


Do@Do-PC /home/lib/x264

$ make install

install -d /usr/local/bin

install x264.exe /usr/local/bin


Do@Do-PC /home/lib/x264

$ cd ..


Do@Do-PC /home/lib

$ cd ffmpeg/


Do@Do-PC /home/lib/ffmpeg

$ ./configure --enable-libx264 --enable-gpl --enable-memalign-hack --disable-de

bug --disable-yasm

ERROR: libx264 not found


If you think configure made a mistake, make sure you are using the latest

version from Git.  If the latest version fails, report the problem to the

ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.

Include the log file "config.log" produced by configure as this will help

solving the problem.


Do@Do-PC /home/lib/ffmpeg

$ ./configure --enable-libx264 --enable-gpl --enable-memalign-hack --disable-de

bug --disable-yasm

ERROR: libx264 not found


If you think configure made a mistake, make sure you are using the latest

version from Git.  If the latest version fails, report the problem to the

ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.

Include the log file "config.log" produced by configure as this will help

solving the problem.


Do@Do-PC /home/lib/ffmpeg

$ ./configure --enable-libx264 --enable-gpl --enable-memalign-hack --disable-de

bug --disable-yasm

ERROR: libx264 not found


If you think configure made a mistake, make sure you are using the latest

version from Git.  If the latest version fails, report the problem to the

ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.

Include the log file "config.log" produced by configure as this will help

solving the problem.


Do@Do-PC /home/lib/ffmpeg

$ ls

COPYING.GPLv2     LICENSE                 common.mak   ffprobe.c    libswscale

COPYING.GPLv3     MAINTAINERS             config.fate  ffserver.c   mt-work

COPYING.LGPLv2.1  Makefile                config.log   libavcodec   subdir.mak

COPYING.LGPLv3    README                  configure    libavdevice  tests

CREDITS           RELEASE                 doc          libavfilter  tools

Changelog         cmdutils.c              ffmpeg.c     libavformat  version.sh

Doxyfile          cmdutils.h              ffplay.c     libavutil

INSTALL           cmdutils_common_opts.h  ffpresets    libpostproc


Do@Do-PC /home/lib/ffmpeg

$ cd ..


Do@Do-PC /home/lib

$ cd x264/


Do@Do-PC /home/lib/x264

$ ./configure --prefix=/mingw --enable-shared --enable-static

Found no assembler

Minimum version is yasm-0.7.0

If you really want to compile without asm, configure with --disable-asm.


Do@Do-PC /home/lib/x264

$ ./configure --prefix=/mingw --enable-shared --enable-static --disable-asm

./version.sh: line 2: git: command not found

Platform:   X86

System:     WINDOWS

cli:        yes

libx264:    internal

shared:     yes

static:     yes

asm:        no

interlaced: yes

avs:        yes

lavf:       no

ffms:       no

gpac:       no

gpl:        yes

thread:     posix

filters:    crop select_every

debug:      no

gprof:      no

strip:      no

PIC:        no

visualize:  no

bit depth:  8


You can run 'make' or 'make fprofiled' now.


Do@Do-PC /home/lib/x264

$ make

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o x264.o x264.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o input/input.o input/input.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o input/timecode.o input/timecode

.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o input/raw.o input/raw.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o input/y4m.o input/y4m.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o output/raw.o output/raw.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o output/matroska.o output/matros

ka.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o output/matroska_ebml.o output/m

atroska_ebml.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o output/flv.o output/flv.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o output/flv_bytestream.o output/

flv_bytestream.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o filters/filters.o filters/filte

rs.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o filters/video/video.o filters/v

ideo/video.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o filters/video/source.o filters/

video/source.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o filters/video/internal.o filter

s/video/internal.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o filters/video/resize.o filters/

video/resize.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o filters/video/cache.o filters/v

ideo/cache.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o filters/video/fix_vfr_pts.o fil

ters/video/fix_vfr_pts.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o filters/video/select_every.o fi

lters/video/select_every.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o filters/video/crop.o filters/vi

deo/crop.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o filters/video/depth.o filters/v

ideo/depth.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o input/avs.o input/avs.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o input/thread.o input/thread.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o common/mc.o common/mc.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o common/predict.o common/predict

.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o common/pixel.o common/pixel.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o common/macroblock.o common/macr

oblock.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o common/frame.o common/frame.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o common/dct.o common/dct.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o common/cpu.o common/cpu.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o common/cabac.o common/cabac.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o common/common.o common/common.c


gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o common/osdep.o common/osdep.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o common/rectangle.o common/recta

ngle.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o common/set.o common/set.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o common/quant.o common/quant.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o common/deblock.o common/deblock

.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o common/vlc.o common/vlc.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o common/mvpred.o common/mvpred.c


gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o common/bitstream.o common/bitst

ream.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o encoder/analyse.o encoder/analy

se.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o encoder/me.o encoder/me.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o encoder/ratecontrol.o encoder/r

atecontrol.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o encoder/set.o encoder/set.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o encoder/macroblock.o encoder/ma

croblock.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o encoder/cabac.o encoder/cabac.c


gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o encoder/cavlc.o encoder/cavlc.c


gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o encoder/encoder.o encoder/encod

er.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o encoder/lookahead.o encoder/loo

kahead.c

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o common/threadpool.o common/thre

adpool.c

ar rc libx264.a common/mc.o common/predict.o common/pixel.o common/macroblock.o

common/frame.o common/dct.o common/cpu.o common/cabac.o common/common.o common/o

sdep.o common/rectangle.o common/set.o common/quant.o common/deblock.o common/vl

c.o common/mvpred.o common/bitstream.o encoder/analyse.o encoder/me.o encoder/ra

tecontrol.o encoder/set.o encoder/macroblock.o encoder/cabac.o encoder/cavlc.o e

ncoder/encoder.o encoder/lookahead.o common/threadpool.o

ranlib libx264.a

gcc -o x264.exe x264.o input/input.o input/timecode.o input/raw.o input/y4m.o ou

tput/raw.o output/matroska.o output/matroska_ebml.o output/flv.o output/flv_byte

stream.o filters/filters.o filters/video/video.o filters/video/source.o filters/

video/internal.o filters/video/resize.o filters/video/cache.o filters/video/fix_

vfr_pts.o filters/video/select_every.o filters/video/crop.o filters/video/depth.

o input/avs.o input/thread.o libx264.a  -Wl,--large-address-aware -lpthread

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fomit-frame-pointer -fno-tre

e-vectorize -fno-zero-initialized-in-bss   -c -o x264dll.o x264dll.c

gcc -o libx264-116.dll common/mc.o common/predict.o common/pixel.o common/macrob

lock.o common/frame.o common/dct.o common/cpu.o common/cabac.o common/common.o c

ommon/osdep.o common/rectangle.o common/set.o common/quant.o common/deblock.o co

mmon/vlc.o common/mvpred.o common/bitstream.o encoder/analyse.o encoder/me.o enc

oder/ratecontrol.o encoder/set.o encoder/macroblock.o encoder/cabac.o encoder/ca

vlc.o encoder/encoder.o encoder/lookahead.o common/threadpool.o  x264dll.o -shar

ed -Wl,--out-implib,libx264.dll.a -Wl,--enable-auto-image-base -Wl,--large-addre

ss-aware -lpthread

Creating library file: libx264.dll.a


Do@Do-PC /home/lib/x264

$ make install

install -d /mingw/bin

install x264.exe /mingw/bin

install -d /mingw/include

install -d /mingw/lib

install -d /mingw/lib/pkgconfig

install -m 644 x264.h /mingw/include

install -m 644 x264_config.h /mingw/include

install -m 644 x264.pc /mingw/lib/pkgconfig

install -m 755 libx264-116.dll /mingw/bin

install -m 644 libx264.dll.a /mingw/lib

install -m 644 libx264.a /mingw/lib

ranlib /mingw/lib/libx264.a


Do@Do-PC /home/lib/x264

$

 

'오픈소스 연구 > MinGW' 카테고리의 다른 글

MinGW에서 liba52 build  (0) 2012.01.14
MinGW에서 libfaac 설치  (0) 2012.01.13
Install libogg, libvorbis and libtheora with MinGW  (0) 2011.11.04
MinGW 설치하기  (0) 2011.08.05
MinGW에 pkg-config 설치하기  (0) 2011.08.05

관련글 더보기