http://trac.ffmpeg.org/wiki/How%20to%20quickly%20compile%20libx264
下载源代码:
wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
配置:
./configure
samsung@samsung-PC ~/yasm-1.2.0
$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for gcc option to accept ISO C99... -std=gnu99
checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu 99
checking whether ln -s works... yes
checking for ar... ar
checking for ranlib... ranlib
checking for xmlto... no
configure: WARNING: xmlto not found, manpages will not be rebuilt.
checking if malloc debugging is wanted... no
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for strings.h... (cached) yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking for unistd.h... (cached) yes
checking direct.h usability... no
checking direct.h presence... no
checking for direct.h... no
checking for sys/stat.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for function prototypes... yes
checking for size_t... yes
checking for stdint types... stdint.h (shortcircuit)
make use of stdint.h in libyasm-stdint.h (assuming C99 compatible system)
checking for abort... yes
checking for toascii... yes
checking for vsnprintf... yes
checking for strsep... yes
checking for mergesort... no
checking for getcwd... yes
checking for popen... yes
checking for ftruncate... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for stricmp... no
checking for _stricmp... no
checking for strcmpi... no
checking whether NLS is requested... yes
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking for ld used by GCC... /usr/i686-pc-cygwin/bin/ld.exe
checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... no
checking for iconv... yes
checking for working iconv... yes
checking how to link with libiconv... -liconv
checking for GNU gettext in libintl... yes
checking whether to use NLS... yes
checking where the gettext function comes from... external libintl
checking how to link with libintl... -lintl
checking for GNU C Library... no
configure: Checking for Python
checking for a Python interpreter with version >= 2.4... python
checking for python... /usr/bin/python
checking for python version... 2.7
checking for python platform... cygwin
checking for python script directory... ${prefix}/lib/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/s ite-packages
configure: creating ./config.status
config.status: creating Makefile
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libyasm-stdint.h commands
config.status: creating libyasm-stdint.h : _YASM_LIBYASM_STDINT_H
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
samsung@samsung-PC ~/yasm-1.2.0
编译:
make
samsung@samsung-PC ~/yasm-1.2.0
$ make
gcc -std=gnu99 -I. \
-c -o genperf.o `test -f tools/genperf/genperf.c || echo './'`tools/genperf/ge nperf.c
gcc -std=gnu99 -I. \
-c -o gp-perfect.o `test -f tools/genperf/perfect.c || echo './'`tools/genperf /perfect.c
gcc -std=gnu99 -I. \
-c -o gp-phash.o `test -f libyasm/phash.c || echo './'`libyasm/phash.c
gcc -std=gnu99 -I. \
-c -o gp-xmalloc.o `test -f libyasm/xmalloc.c || echo './'`libyasm/xmalloc.c
gcc -std=gnu99 -I. \
-c -o gp-xstrdup.o `test -f libyasm/xstrdup.c || echo './'`libyasm/xstrdup.c
gcc -std=gnu99 -o genperf.exe genperf.o gp-perfect.o gp-phash.o gp-xmalloc.o g p-xstrdup.o
./genperf.exe x86insn_nasm.gperf x86insn_nasm.c
found distinct (A,B) on attempt 19
built perfect hash table of size 512
./genperf.exe x86insn_gas.gperf x86insn_gas.c
found distinct (A,B) on attempt 1640
built perfect hash table of size 512
gcc -std=gnu99 -I. \
-c -o re2c-main.o `test -f tools/re2c/main.c || echo './'`tools/re2c/main.c
gcc -std=gnu99 -I. \
-c -o re2c-code.o `test -f tools/re2c/code.c || echo './'`tools/re2c/code.c
gcc -std=gnu99 -I. \
-c -o re2c-dfa.o `test -f tools/re2c/dfa.c || echo './'`tools/re2c/dfa.c
gcc -std=gnu99 -I. \
-c -o re2c-parser.o `test -f tools/re2c/parser.c || echo './'`tools/re2c/parse r.c
gcc -std=gnu99 -I. \
-c -o re2c-actions.o `test -f tools/re2c/actions.c || echo './'`tools/re2c/act ions.c
gcc -std=gnu99 -I. \
-c -o re2c-scanner.o `test -f tools/re2c/scanner.c || echo './'`tools/re2c/sca nner.c
gcc -std=gnu99 -I. \
-c -o re2c-mbo_getopt.o `test -f tools/re2c/mbo_getopt.c || echo './'`tools/re 2c/mbo_getopt.c
gcc -std=gnu99 -I. \
-c -o re2c-substr.o `test -f tools/re2c/substr.c || echo './'`tools/re2c/subst r.c
gcc -std=gnu99 -I. \
-c -o re2c-translate.o `test -f tools/re2c/translate.c || echo './'`tools/re2c /translate.c
gcc -std=gnu99 -o re2c.exe re2c-main.o re2c-code.o re2c-dfa.o re2c-parser.o r e2c-actions.o re2c-scanner.o re2c-mbo_getopt.o re2c-substr.o re2c-translate.o
./re2c.exe -b -o gas-token.c ./modules/parsers/gas/gas-token.re
./re2c.exe -b -o nasm-token.c ./modules/parsers/nasm/nasm-token.re
gcc -std=gnu99 -I. \
-c -o genmacro.o `test -f tools/genmacro/genmacro.c || echo './'`tools/genmacr o/genmacro.c
gcc -std=gnu99 -o genmacro.exe genmacro.o
./genmacro.exe nasm-macros.c nasm_standard_mac ./modules/parsers/nasm/nasm-std.m ac
gcc -std=gnu99 -I. -c -o genversion.o `test -f modules/preprocs/nasm/genversion .c || echo './'`modules/preprocs/nasm/genversion.c
gcc -std=gnu99 -o genversion.exe genversion.o
./genversion.exe version.mac
./genmacro.exe nasm-version.c nasm_version_mac version.mac
./genmacro.exe win64-nasm.c win64_nasm_stdmac ./modules/objfmts/coff/win64-nasm. mac
./genmacro.exe win64-gas.c win64_gas_stdmac ./modules/objfmts/coff/win64-gas.mac
gcc -std=gnu99 -I. -c -o genstring.o `test -f genstring.c || echo './'`genstrin g.c
gcc -std=gnu99 -o genstring.exe genstring.o
./genstring.exe license_msg license.c ./COPYING
make all-recursive
make[1]: Entering directory `/home/samsung/yasm-1.2.0'
Making all in po
make[2]: Entering directory `/home/samsung/yasm-1.2.0/po'
make[2]: Leaving directory `/home/samsung/yasm-1.2.0/po'
Making all in .
make[2]: Entering directory `/home/samsung/yasm-1.2.0'
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT x86arch.o -MD -MP -MF .deps/x8 6arch.Tpo -c -o x86arch.o `test -f 'modules/arch/x86/x86arch.c' || echo './'`mod ules/arch/x86/x86arch.c
mv -f .deps/x86arch.Tpo .deps/x86arch.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT x86bc.o -MD -MP -MF .deps/x86b c.Tpo -c -o x86bc.o `test -f 'modules/arch/x86/x86bc.c' || echo './'`modules/arc h/x86/x86bc.c
mv -f .deps/x86bc.Tpo .deps/x86bc.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT x86expr.o -MD -MP -MF .deps/x8 6expr.Tpo -c -o x86expr.o `test -f 'modules/arch/x86/x86expr.c' || echo './'`mod ules/arch/x86/x86expr.c
mv -f .deps/x86expr.Tpo .deps/x86expr.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT x86id.o -MD -MP -MF .deps/x86i d.Tpo -c -o x86id.o `test -f 'modules/arch/x86/x86id.c' || echo './'`modules/arc h/x86/x86id.c
mv -f .deps/x86id.Tpo .deps/x86id.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT lc3barch.o -MD -MP -MF .deps/l c3barch.Tpo -c -o lc3barch.o `test -f 'modules/arch/lc3b/lc3barch.c' || echo './ '`modules/arch/lc3b/lc3barch.c
mv -f .deps/lc3barch.Tpo .deps/lc3barch.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT lc3bbc.o -MD -MP -MF .deps/lc3 bbc.Tpo -c -o lc3bbc.o `test -f 'modules/arch/lc3b/lc3bbc.c' || echo './'`module s/arch/lc3b/lc3bbc.c
mv -f .deps/lc3bbc.Tpo .deps/lc3bbc.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT nasm-listfmt.o -MD -MP -MF .de ps/nasm-listfmt.Tpo -c -o nasm-listfmt.o `test -f 'modules/listfmts/nasm/nasm-li stfmt.c' || echo './'`modules/listfmts/nasm/nasm-listfmt.c
mv -f .deps/nasm-listfmt.Tpo .deps/nasm-listfmt.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT gas-parser.o -MD -MP -MF .deps /gas-parser.Tpo -c -o gas-parser.o `test -f 'modules/parsers/gas/gas-parser.c' | | echo './'`modules/parsers/gas/gas-parser.c
mv -f .deps/gas-parser.Tpo .deps/gas-parser.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT gas-parse.o -MD -MP -MF .deps/ gas-parse.Tpo -c -o gas-parse.o `test -f 'modules/parsers/gas/gas-parse.c' || ec ho './'`modules/parsers/gas/gas-parse.c
mv -f .deps/gas-parse.Tpo .deps/gas-parse.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT gas-parse-intel.o -MD -MP -MF .deps/gas-parse-intel.Tpo -c -o gas-parse-intel.o `test -f 'modules/parsers/gas/ gas-parse-intel.c' || echo './'`modules/parsers/gas/gas-parse-intel.c
mv -f .deps/gas-parse-intel.Tpo .deps/gas-parse-intel.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT nasm-parser.o -MD -MP -MF .dep s/nasm-parser.Tpo -c -o nasm-parser.o `test -f 'modules/parsers/nasm/nasm-parser .c' || echo './'`modules/parsers/nasm/nasm-parser.c
mv -f .deps/nasm-parser.Tpo .deps/nasm-parser.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT nasm-parse.o -MD -MP -MF .deps /nasm-parse.Tpo -c -o nasm-parse.o `test -f 'modules/parsers/nasm/nasm-parse.c' || echo './'`modules/parsers/nasm/nasm-parse.c
mv -f .deps/nasm-parse.Tpo .deps/nasm-parse.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT nasm-preproc.o -MD -MP -MF .de ps/nasm-preproc.Tpo -c -o nasm-preproc.o `test -f 'modules/preprocs/nasm/nasm-pr eproc.c' || echo './'`modules/preprocs/nasm/nasm-preproc.c
mv -f .deps/nasm-preproc.Tpo .deps/nasm-preproc.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT nasm-pp.o -MD -MP -MF .deps/na sm-pp.Tpo -c -o nasm-pp.o `test -f 'modules/preprocs/nasm/nasm-pp.c' || echo './ '`modules/preprocs/nasm/nasm-pp.c
mv -f .deps/nasm-pp.Tpo .deps/nasm-pp.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT nasmlib.o -MD -MP -MF .deps/na smlib.Tpo -c -o nasmlib.o `test -f 'modules/preprocs/nasm/nasmlib.c' || echo './ '`modules/preprocs/nasm/nasmlib.c
mv -f .deps/nasmlib.Tpo .deps/nasmlib.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT nasm-eval.o -MD -MP -MF .deps/ nasm-eval.Tpo -c -o nasm-eval.o `test -f 'modules/preprocs/nasm/nasm-eval.c' || echo './'`modules/preprocs/nasm/nasm-eval.c
mv -f .deps/nasm-eval.Tpo .deps/nasm-eval.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT raw-preproc.o -MD -MP -MF .dep s/raw-preproc.Tpo -c -o raw-preproc.o `test -f 'modules/preprocs/raw/raw-preproc .c' || echo './'`modules/preprocs/raw/raw-preproc.c
mv -f .deps/raw-preproc.Tpo .deps/raw-preproc.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT cpp-preproc.o -MD -MP -MF .dep s/cpp-preproc.Tpo -c -o cpp-preproc.o `test -f 'modules/preprocs/cpp/cpp-preproc .c' || echo './'`modules/preprocs/cpp/cpp-preproc.c
mv -f .deps/cpp-preproc.Tpo .deps/cpp-preproc.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT gas-preproc.o -MD -MP -MF .dep s/gas-preproc.Tpo -c -o gas-preproc.o `test -f 'modules/preprocs/gas/gas-preproc .c' || echo './'`modules/preprocs/gas/gas-preproc.c
mv -f .deps/gas-preproc.Tpo .deps/gas-preproc.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT gas-eval.o -MD -MP -MF .deps/g as-eval.Tpo -c -o gas-eval.o `test -f 'modules/preprocs/gas/gas-eval.c' || echo './'`modules/preprocs/gas/gas-eval.c
mv -f .deps/gas-eval.Tpo .deps/gas-eval.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT cv-dbgfmt.o -MD -MP -MF .deps/ cv-dbgfmt.Tpo -c -o cv-dbgfmt.o `test -f 'modules/dbgfmts/codeview/cv-dbgfmt.c' || echo './'`modules/dbgfmts/codeview/cv-dbgfmt.c
mv -f .deps/cv-dbgfmt.Tpo .deps/cv-dbgfmt.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT cv-symline.o -MD -MP -MF .deps /cv-symline.Tpo -c -o cv-symline.o `test -f 'modules/dbgfmts/codeview/cv-symline .c' || echo './'`modules/dbgfmts/codeview/cv-symline.c
mv -f .deps/cv-symline.Tpo .deps/cv-symline.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT cv-type.o -MD -MP -MF .deps/cv -type.Tpo -c -o cv-type.o `test -f 'modules/dbgfmts/codeview/cv-type.c' || echo './'`modules/dbgfmts/codeview/cv-type.c
mv -f .deps/cv-type.Tpo .deps/cv-type.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT dwarf2-dbgfmt.o -MD -MP -MF .d eps/dwarf2-dbgfmt.Tpo -c -o dwarf2-dbgfmt.o `test -f 'modules/dbgfmts/dwarf2/dwa rf2-dbgfmt.c' || echo './'`modules/dbgfmts/dwarf2/dwarf2-dbgfmt.c
mv -f .deps/dwarf2-dbgfmt.Tpo .deps/dwarf2-dbgfmt.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT dwarf2-line.o -MD -MP -MF .dep s/dwarf2-line.Tpo -c -o dwarf2-line.o `test -f 'modules/dbgfmts/dwarf2/dwarf2-li ne.c' || echo './'`modules/dbgfmts/dwarf2/dwarf2-line.c
mv -f .deps/dwarf2-line.Tpo .deps/dwarf2-line.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT dwarf2-aranges.o -MD -MP -MF . deps/dwarf2-aranges.Tpo -c -o dwarf2-aranges.o `test -f 'modules/dbgfmts/dwarf2/ dwarf2-aranges.c' || echo './'`modules/dbgfmts/dwarf2/dwarf2-aranges.c
mv -f .deps/dwarf2-aranges.Tpo .deps/dwarf2-aranges.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT dwarf2-info.o -MD -MP -MF .dep s/dwarf2-info.Tpo -c -o dwarf2-info.o `test -f 'modules/dbgfmts/dwarf2/dwarf2-in fo.c' || echo './'`modules/dbgfmts/dwarf2/dwarf2-info.c
mv -f .deps/dwarf2-info.Tpo .deps/dwarf2-info.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT null-dbgfmt.o -MD -MP -MF .dep s/null-dbgfmt.Tpo -c -o null-dbgfmt.o `test -f 'modules/dbgfmts/null/null-dbgfmt .c' || echo './'`modules/dbgfmts/null/null-dbgfmt.c
mv -f .deps/null-dbgfmt.Tpo .deps/null-dbgfmt.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT stabs-dbgfmt.o -MD -MP -MF .de ps/stabs-dbgfmt.Tpo -c -o stabs-dbgfmt.o `test -f 'modules/dbgfmts/stabs/stabs-d bgfmt.c' || echo './'`modules/dbgfmts/stabs/stabs-dbgfmt.c
mv -f .deps/stabs-dbgfmt.Tpo .deps/stabs-dbgfmt.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT dbg-objfmt.o -MD -MP -MF .deps /dbg-objfmt.Tpo -c -o dbg-objfmt.o `test -f 'modules/objfmts/dbg/dbg-objfmt.c' | | echo './'`modules/objfmts/dbg/dbg-objfmt.c
mv -f .deps/dbg-objfmt.Tpo .deps/dbg-objfmt.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT bin-objfmt.o -MD -MP -MF .deps /bin-objfmt.Tpo -c -o bin-objfmt.o `test -f 'modules/objfmts/bin/bin-objfmt.c' | | echo './'`modules/objfmts/bin/bin-objfmt.c
mv -f .deps/bin-objfmt.Tpo .deps/bin-objfmt.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT elf.o -MD -MP -MF .deps/elf.Tp o -c -o elf.o `test -f 'modules/objfmts/elf/elf.c' || echo './'`modules/objfmts/ elf/elf.c
mv -f .deps/elf.Tpo .deps/elf.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT elf-objfmt.o -MD -MP -MF .deps /elf-objfmt.Tpo -c -o elf-objfmt.o `test -f 'modules/objfmts/elf/elf-objfmt.c' | | echo './'`modules/objfmts/elf/elf-objfmt.c
mv -f .deps/elf-objfmt.Tpo .deps/elf-objfmt.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT elf-x86-x86.o -MD -MP -MF .dep s/elf-x86-x86.Tpo -c -o elf-x86-x86.o `test -f 'modules/objfmts/elf/elf-x86-x86. c' || echo './'`modules/objfmts/elf/elf-x86-x86.c
mv -f .deps/elf-x86-x86.Tpo .deps/elf-x86-x86.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT elf-x86-amd64.o -MD -MP -MF .d eps/elf-x86-amd64.Tpo -c -o elf-x86-amd64.o `test -f 'modules/objfmts/elf/elf-x8 6-amd64.c' || echo './'`modules/objfmts/elf/elf-x86-amd64.c
mv -f .deps/elf-x86-amd64.Tpo .deps/elf-x86-amd64.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT coff-objfmt.o -MD -MP -MF .dep s/coff-objfmt.Tpo -c -o coff-objfmt.o `test -f 'modules/objfmts/coff/coff-objfmt .c' || echo './'`modules/objfmts/coff/coff-objfmt.c
mv -f .deps/coff-objfmt.Tpo .deps/coff-objfmt.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT win64-except.o -MD -MP -MF .de ps/win64-except.Tpo -c -o win64-except.o `test -f 'modules/objfmts/coff/win64-ex cept.c' || echo './'`modules/objfmts/coff/win64-except.c
mv -f .deps/win64-except.Tpo .deps/win64-except.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT macho-objfmt.o -MD -MP -MF .de ps/macho-objfmt.Tpo -c -o macho-objfmt.o `test -f 'modules/objfmts/macho/macho-o bjfmt.c' || echo './'`modules/objfmts/macho/macho-objfmt.c
mv -f .deps/macho-objfmt.Tpo .deps/macho-objfmt.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT rdf-objfmt.o -MD -MP -MF .deps /rdf-objfmt.Tpo -c -o rdf-objfmt.o `test -f 'modules/objfmts/rdf/rdf-objfmt.c' | | echo './'`modules/objfmts/rdf/rdf-objfmt.c
mv -f .deps/rdf-objfmt.Tpo .deps/rdf-objfmt.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT xdf-objfmt.o -MD -MP -MF .deps /xdf-objfmt.Tpo -c -o xdf-objfmt.o `test -f 'modules/objfmts/xdf/xdf-objfmt.c' | | echo './'`modules/objfmts/xdf/xdf-objfmt.c
mv -f .deps/xdf-objfmt.Tpo .deps/xdf-objfmt.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT assocdat.o -MD -MP -MF .deps/a ssocdat.Tpo -c -o assocdat.o `test -f 'libyasm/assocdat.c' || echo './'`libyasm/ assocdat.c
mv -f .deps/assocdat.Tpo .deps/assocdat.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT bitvect.o -MD -MP -MF .deps/bi tvect.Tpo -c -o bitvect.o `test -f 'libyasm/bitvect.c' || echo './'`libyasm/bitv ect.c
mv -f .deps/bitvect.Tpo .deps/bitvect.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT bc-align.o -MD -MP -MF .deps/b c-align.Tpo -c -o bc-align.o `test -f 'libyasm/bc-align.c' || echo './'`libyasm/ bc-align.c
mv -f .deps/bc-align.Tpo .deps/bc-align.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT bc-data.o -MD -MP -MF .deps/bc -data.Tpo -c -o bc-data.o `test -f 'libyasm/bc-data.c' || echo './'`libyasm/bc-d ata.c
mv -f .deps/bc-data.Tpo .deps/bc-data.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT bc-incbin.o -MD -MP -MF .deps/ bc-incbin.Tpo -c -o bc-incbin.o `test -f 'libyasm/bc-incbin.c' || echo './'`liby asm/bc-incbin.c
mv -f .deps/bc-incbin.Tpo .deps/bc-incbin.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT bc-org.o -MD -MP -MF .deps/bc- org.Tpo -c -o bc-org.o `test -f 'libyasm/bc-org.c' || echo './'`libyasm/bc-org.c
mv -f .deps/bc-org.Tpo .deps/bc-org.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT bc-reserve.o -MD -MP -MF .deps /bc-reserve.Tpo -c -o bc-reserve.o `test -f 'libyasm/bc-reserve.c' || echo './'` libyasm/bc-reserve.c
mv -f .deps/bc-reserve.Tpo .deps/bc-reserve.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT bytecode.o -MD -MP -MF .deps/b ytecode.Tpo -c -o bytecode.o `test -f 'libyasm/bytecode.c' || echo './'`libyasm/ bytecode.c
mv -f .deps/bytecode.Tpo .deps/bytecode.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT errwarn.o -MD -MP -MF .deps/er rwarn.Tpo -c -o errwarn.o `test -f 'libyasm/errwarn.c' || echo './'`libyasm/errw arn.c
mv -f .deps/errwarn.Tpo .deps/errwarn.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT expr.o -MD -MP -MF .deps/expr. Tpo -c -o expr.o `test -f 'libyasm/expr.c' || echo './'`libyasm/expr.c
mv -f .deps/expr.Tpo .deps/expr.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT file.o -MD -MP -MF .deps/file. Tpo -c -o file.o `test -f 'libyasm/file.c' || echo './'`libyasm/file.c
mv -f .deps/file.Tpo .deps/file.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT floatnum.o -MD -MP -MF .deps/f loatnum.Tpo -c -o floatnum.o `test -f 'libyasm/floatnum.c' || echo './'`libyasm/ floatnum.c
mv -f .deps/floatnum.Tpo .deps/floatnum.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT hamt.o -MD -MP -MF .deps/hamt. Tpo -c -o hamt.o `test -f 'libyasm/hamt.c' || echo './'`libyasm/hamt.c
mv -f .deps/hamt.Tpo .deps/hamt.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT insn.o -MD -MP -MF .deps/insn. Tpo -c -o insn.o `test -f 'libyasm/insn.c' || echo './'`libyasm/insn.c
mv -f .deps/insn.Tpo .deps/insn.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT intnum.o -MD -MP -MF .deps/int num.Tpo -c -o intnum.o `test -f 'libyasm/intnum.c' || echo './'`libyasm/intnum.c
mv -f .deps/intnum.Tpo .deps/intnum.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT inttree.o -MD -MP -MF .deps/in ttree.Tpo -c -o inttree.o `test -f 'libyasm/inttree.c' || echo './'`libyasm/intt ree.c
mv -f .deps/inttree.Tpo .deps/inttree.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT linemap.o -MD -MP -MF .deps/li nemap.Tpo -c -o linemap.o `test -f 'libyasm/linemap.c' || echo './'`libyasm/line map.c
mv -f .deps/linemap.Tpo .deps/linemap.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT md5.o -MD -MP -MF .deps/md5.Tp o -c -o md5.o `test -f 'libyasm/md5.c' || echo './'`libyasm/md5.c
mv -f .deps/md5.Tpo .deps/md5.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT mergesort.o -MD -MP -MF .deps/ mergesort.Tpo -c -o mergesort.o `test -f 'libyasm/mergesort.c' || echo './'`liby asm/mergesort.c
mv -f .deps/mergesort.Tpo .deps/mergesort.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT phash.o -MD -MP -MF .deps/phas h.Tpo -c -o phash.o `test -f 'libyasm/phash.c' || echo './'`libyasm/phash.c
mv -f .deps/phash.Tpo .deps/phash.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT section.o -MD -MP -MF .deps/se ction.Tpo -c -o section.o `test -f 'libyasm/section.c' || echo './'`libyasm/sect ion.c
mv -f .deps/section.Tpo .deps/section.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT strcasecmp.o -MD -MP -MF .deps /strcasecmp.Tpo -c -o strcasecmp.o `test -f 'libyasm/strcasecmp.c' || echo './'` libyasm/strcasecmp.c
mv -f .deps/strcasecmp.Tpo .deps/strcasecmp.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT strsep.o -MD -MP -MF .deps/str sep.Tpo -c -o strsep.o `test -f 'libyasm/strsep.c' || echo './'`libyasm/strsep.c
mv -f .deps/strsep.Tpo .deps/strsep.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT symrec.o -MD -MP -MF .deps/sym rec.Tpo -c -o symrec.o `test -f 'libyasm/symrec.c' || echo './'`libyasm/symrec.c
mv -f .deps/symrec.Tpo .deps/symrec.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT valparam.o -MD -MP -MF .deps/v alparam.Tpo -c -o valparam.o `test -f 'libyasm/valparam.c' || echo './'`libyasm/ valparam.c
mv -f .deps/valparam.Tpo .deps/valparam.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT value.o -MD -MP -MF .deps/valu e.Tpo -c -o value.o `test -f 'libyasm/value.c' || echo './'`libyasm/value.c
mv -f .deps/value.Tpo .deps/value.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT xmalloc.o -MD -MP -MF .deps/xm alloc.Tpo -c -o xmalloc.o `test -f 'libyasm/xmalloc.c' || echo './'`libyasm/xmal loc.c
mv -f .deps/xmalloc.Tpo .deps/xmalloc.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT xstrdup.o -MD -MP -MF .deps/xs trdup.Tpo -c -o xstrdup.o `test -f 'libyasm/xstrdup.c' || echo './'`libyasm/xstr dup.c
mv -f .deps/xstrdup.Tpo .deps/xstrdup.Po
./genperf.exe ./modules/arch/x86/x86cpu.gperf x86cpu.c
found distinct (A,B) on attempt 3
built perfect hash table of size 128
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT x86cpu.o -MD -MP -MF .deps/x8 6cpu.Tpo -c -o x86cpu.o x86cpu.c
mv -f .deps/x86cpu.Tpo .deps/x86cpu.Po
./genperf.exe ./modules/arch/x86/x86regtmod.gperf x86regtmod.c
found distinct (A,B) on attempt 1
built perfect hash table of size 128
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT x86regtmod.o -MD -MP -MF .dep s/x86regtmod.Tpo -c -o x86regtmod.o x86regtmod.c
mv -f .deps/x86regtmod.Tpo .deps/x86regtmod.Po
./re2c.exe -s -o lc3bid.c ./modules/arch/lc3b/lc3bid.re
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT lc3bid.o -MD -MP -MF .deps/lc 3bid.Tpo -c -o lc3bid.o lc3bid.c
mv -f .deps/lc3bid.Tpo .deps/lc3bid.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT gas-token.o -MD -MP -MF .deps /gas-token.Tpo -c -o gas-token.o gas-token.c
mv -f .deps/gas-token.Tpo .deps/gas-token.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT nasm-token.o -MD -MP -MF .dep s/nasm-token.Tpo -c -o nasm-token.o nasm-token.c
mv -f .deps/nasm-token.Tpo .deps/nasm-token.Po
gcc -std=gnu99 -I. -c -o genmodule.o `test -f libyasm/genmodule.c || echo './'` libyasm/genmodule.c
gcc -std=gnu99 -o genmodule.exe genmodule.o
./genmodule.exe ./libyasm/module.in Makefile
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT module.o -MD -MP -MF .deps/mo dule.Tpo -c -o module.o module.c
mv -f .deps/module.Tpo .deps/module.Po
rm -f libyasm.a
ar cru libyasm.a x86arch.o x86bc.o x86expr.o x86id.o lc3barch.o lc3bbc.o nasm- listfmt.o gas-parser.o gas-parse.o gas-parse-intel.o nasm-parser.o nasm-parse. o nasm-preproc.o nasm-pp.o nasmlib.o nasm-eval.o raw-preproc.o cpp-preproc.o gas-preproc.o gas-eval.o cv-dbgfmt.o cv-symline.o cv-type.o dwarf2-dbgfmt.o dw arf2-line.o dwarf2-aranges.o dwarf2-info.o null-dbgfmt.o stabs-dbgfmt.o dbg-o bjfmt.o bin-objfmt.o elf.o elf-objfmt.o elf-x86-x86.o elf-x86-amd64.o coff-obj fmt.o win64-except.o macho-objfmt.o rdf-objfmt.o xdf-objfmt.o assocdat.o bitv ect.o bc-align.o bc-data.o bc-incbin.o bc-org.o bc-reserve.o bytecode.o errwar n.o expr.o file.o floatnum.o hamt.o insn.o intnum.o inttree.o linemap.o md5.o mergesort.o phash.o section.o strcasecmp.o strsep.o symrec.o valparam.o valu e.o xmalloc.o xstrdup.o x86cpu.o x86regtmod.o lc3bid.o gas-token.o nasm-token. o module.o
ranlib libyasm.a
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT yasm.o -MD -MP -MF .deps/yasm. Tpo -c -o yasm.o `test -f 'frontends/yasm/yasm.c' || echo './'`frontends/yasm/ya sm.c
mv -f .deps/yasm.Tpo .deps/yasm.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT yasm-options.o -MD -MP -MF .de ps/yasm-options.Tpo -c -o yasm-options.o `test -f 'frontends/yasm/yasm-options.c ' || echo './'`frontends/yasm/yasm-options.c
mv -f .deps/yasm-options.Tpo .deps/yasm-options.Po
gcc -std=gnu99 -g -O2 -o yasm.exe yasm.o yasm-options.o libyasm.a -lintl
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT tasm.o -MD -MP -MF .deps/tasm. Tpo -c -o tasm.o `test -f 'frontends/tasm/tasm.c' || echo './'`frontends/tasm/ta sm.c
mv -f .deps/tasm.Tpo .deps/tasm.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT tasm-options.o -MD -MP -MF .de ps/tasm-options.Tpo -c -o tasm-options.o `test -f 'frontends/tasm/tasm-options.c ' || echo './'`frontends/tasm/tasm-options.c
mv -f .deps/tasm-options.Tpo .deps/tasm-options.Po
gcc -std=gnu99 -g -O2 -o ytasm.exe tasm.o tasm-options.o libyasm.a -lintl
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -g -O2 -MT vsyasm.o -MD -MP -MF .deps/vsy asm.Tpo -c -o vsyasm.o `test -f 'frontends/vsyasm/vsyasm.c' || echo './'`fronten ds/vsyasm/vsyasm.c
mv -f .deps/vsyasm.Tpo .deps/vsyasm.Po
gcc -std=gnu99 -g -O2 -o vsyasm.exe vsyasm.o yasm-options.o libyasm.a -lintl
make[2]: Leaving directory `/home/samsung/yasm-1.2.0'
make[1]: Leaving directory `/home/samsung/yasm-1.2.0'
安装:
make install
samsung@samsung-PC ~/yasm-1.2.0
$ make install
make install-recursive
make[1]: Entering directory `/home/samsung/yasm-1.2.0'
Making install in po
make[2]: Entering directory `/home/samsung/yasm-1.2.0/po'
/usr/bin/mkdir -p /usr/local/share
if test "yasm" = "gettext-tools"; then \
/usr/bin/mkdir -p /usr/local/share/gettext/po; \
for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot Makevars.template; do \
/usr/bin/install -c -m 644 ./$file \
/usr/local/share/gettext/po/$file; \
done; \
for file in Makevars; do \
rm -f /usr/local/share/gettext/po/$file; \
done; \
else \
: ; \
fi
make[2]: Leaving directory `/home/samsung/yasm-1.2.0/po'
Making install in .
make[2]: Entering directory `/home/samsung/yasm-1.2.0'
make[3]: Entering directory `/home/samsung/yasm-1.2.0'
test -z "/usr/local/bin" || /usr/bin/mkdir -p "/usr/local/bin"
/usr/bin/install -c yasm.exe ytasm.exe vsyasm.exe '/usr/local/bin'
test -z "/usr/local/lib" || /usr/bin/mkdir -p "/usr/local/lib"
/usr/bin/install -c -m 644 libyasm.a '/usr/local/lib'
( cd '/usr/local/lib' && ranlib libyasm.a )
make install-exec-hook
make[4]: Entering directory `/home/samsung/yasm-1.2.0'
make[4]: Nothing to be done for `install-exec-hook'.
make[4]: Leaving directory `/home/samsung/yasm-1.2.0'
test -z "/usr/local/include" || /usr/bin/mkdir -p "/usr/local/include"
/usr/bin/install -c -m 644 libyasm.h '/usr/local/include'
test -z "/usr/local/share/man/man1" || /usr/bin/mkdir -p "/usr/local/share/man/man1"
/usr/bin/install -c -m 644 yasm.1 '/usr/local/share/man/man1'
test -z "/usr/local/share/man/man7" || /usr/bin/mkdir -p "/usr/local/share/man/man7"
/usr/bin/install -c -m 644 yasm_arch.7 yasm_parsers.7 yasm_dbgfmts.7 yasm_objfmts.7 '/usr/local/share/man/man7'
test -z "/usr/local/include/libyasm" || /usr/bin/mkdir -p "/usr/local/include/libyasm"
/usr/bin/install -c -m 644 libyasm/arch.h libyasm/assocdat.h libyasm/bitvect.h libyasm/bytecode.h libyasm/compat-queue.h libyasm/coretype.h libyasm/dbgfmt.h libyasm/errwarn.h libyasm/expr.h libyasm/file.h libyasm/floatnum.h libyasm/hamt.h libyasm/insn.h libyasm/intnum.h libyasm/inttree.h libyasm/linemap.h libyasm/listfmt.h libyasm/md5.h libyasm/module.h libyasm/objfmt.h libyasm/parser.h libyasm/phash.h libyasm/preproc.h libyasm/section.h libyasm/symrec.h libyasm/valparam.h libyasm/value.h '/usr/local/include/libyasm'
test -z "/usr/local/include" || /usr/bin/mkdir -p "/usr/local/include"
/usr/bin/install -c -m 644 libyasm-stdint.h '/usr/local/include'
make[3]: Leaving directory `/home/samsung/yasm-1.2.0'
make[2]: Leaving directory `/home/samsung/yasm-1.2.0'
make[1]: Leaving directory `/home/samsung/yasm-1.2.0'
配置:
samsung@samsung-PC ~/x264/x264-snapshot-20130813-2245
$ ./configure
fatal: Not a git repository (or any of the parent directories): .git
platform: X86
system: CYGWIN
cli: yes
libx264: internal
shared: no
static: no
asm: yes
interlaced: yes
avs: avisynth
lavf: no
ffms: no
gpac: no
gpl: yes
thread: posix
opencl: yes
filters: crop select_every
debug: no
gprof: no
strip: no
PIC: no
visualize: no
bit depth: 8
chroma format: all
You can run 'make' or 'make fprofiled' now.
编译:
make
samsung@samsung-PC ~/x264/x264-snapshot-20130813-2245
$ ls -all
total 3524
drwxr-xr-x+ 1 samsung None 0 Aug 14 13:31 .
drwxr-xr-x+ 1 samsung None 0 Aug 14 13:06 ..
-rw-r--r-- 1 samsung None 22701 Aug 14 13:29 .depend
-rw-r--r-- 1 samsung None 352 Aug 14 04:45 .gitignore
-rw-r--r-- 1 samsung None 2104 Aug 14 04:45 AUTHORS
-rw-r--r-- 1 samsung None 17992 Aug 14 04:45 COPYING
-rw-r--r-- 1 samsung None 8499 Aug 14 04:45 Makefile
drwxr-xr-x+ 1 samsung None 0 Aug 14 13:30 common
-rwxr-xr-x 1 samsung None 44935 Aug 14 04:45 config.guess
-rw-r--r-- 1 samsung None 687 Aug 14 13:28 config.h
-rw-r--r-- 1 samsung None 9253 Aug 14 13:28 config.log
-rw-r--r-- 1 samsung None 879 Aug 14 13:28 config.mak
-rwxr-xr-x 1 samsung None 35758 Aug 14 04:45 config.sub
-rwxr-xr-x 1 samsung None 39474 Aug 14 04:45 configure
drwxr-xr-x+ 1 samsung None 0 Aug 14 04:45 doc
drwxr-xr-x+ 1 samsung None 0 Aug 14 13:30 encoder
drwxr-xr-x+ 1 samsung None 0 Aug 14 04:45 extras
drwxr-xr-x+ 1 samsung None 0 Aug 14 13:29 filters
drwxr-xr-x+ 1 samsung None 0 Aug 14 13:29 input
-rw-r--r-- 1 samsung None 1577308 Aug 14 13:31 libx264.a
drwxr-xr-x+ 1 samsung None 0 Aug 14 13:29 output
drwxr-xr-x+ 1 samsung None 0 Aug 14 04:45 tools
-rwxr-xr-x 1 samsung None 807 Aug 14 04:45 version.sh
-rw-r--r-- 1 samsung None 84328 Aug 14 04:45 x264.c
-rwxr-xr-x 1 samsung None 1562065 Aug 14 13:31 x264.exe
-rw-r--r-- 1 samsung None 45823 Aug 14 04:45 x264.h
-rw-r--r-- 1 samsung None 69541 Aug 14 13:29 x264.o
-rw-r--r-- 1 samsung None 259 Aug 14 13:28 x264.pc
-rw-r--r-- 1 samsung None 172 Aug 14 13:28 x264_config.h
-rw-r--r-- 1 samsung None 2333 Aug 14 04:45 x264cli.h
-rw-r--r-- 1 samsung None 1909 Aug 14 04:45 x264dll.c
-rw-r--r-- 1 samsung None 2578 Aug 14 04:45 x264res.rc
安装:
make install