View Full Version : Trouble Compiling x264
Nite Phire
30th June 2006, 23:12
Okay, I'm running a SUSE 10.1 x86_64 system and I'm having a bit of trouble. I'm trying to get MPlayer running, but to do this I need x264:
linux-4wp3:~/Setup Files # rpm -Uvh MPlayer-1.0pre8-2.x86_64.rpm
warning: MPlayer-1.0pre8-2.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 5f6842a4
error: Failed dependencies:
libx264.so.46()(64bit) is needed by MPlayer-1.0pre8-2.x86_64
So I went and got the daily tarball source for x264. I tried compiling and the following happened. [Note: I am new to Linux so I'm probably doing something wrong...]
linux-4wp3:~/Setup Files/x264-snapshot-20060629-2245 # ./configure --enable-shared
Platform: X86_64
System: LINUX
avis input: no
mp4 output: no
pthread: yes
vfw: no
debug: no
gprof: no
PIC: yes
shared: yes
visualize: no
You can run 'make' or 'make fprofiled' now.
linux-4wp3:~/Setup Files/x264-snapshot-20060629-2245 # make
rm -f .depend
( echo -n "`dirname common/mc.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer common/mc.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname common/predict.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer common/predict.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname common/pixel.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer common/pixel.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname common/macroblock.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer common/macroblock.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname common/frame.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer common/frame.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname common/dct.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer common/dct.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname common/cpu.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer common/cpu.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname common/cabac.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer common/cabac.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname common/common.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer common/common.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname common/mdate.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer common/mdate.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname common/csp.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer common/csp.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname common/set.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer common/set.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname common/quant.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer common/quant.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname encoder/analyse.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer encoder/analyse.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname encoder/me.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer encoder/me.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname encoder/ratecontrol.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer encoder/ratecontrol.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname encoder/set.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer encoder/set.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname encoder/macroblock.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer encoder/macroblock.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname encoder/cabac.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer encoder/cabac.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname encoder/cavlc.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer encoder/cavlc.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname encoder/encoder.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer encoder/encoder.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname encoder/eval.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer encoder/eval.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname common/i386/mc-c.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer common/i386/mc-c.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname common/i386/dct-c.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer common/i386/dct-c.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname common/i386/predict-c.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer common/i386/predict-c.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname x264.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer x264.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname matroska.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer matroska.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname muxers.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer muxers.c -MM -g0 ) 1>> .depend;
gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer -c -o encoder/set.o encoder/set.c
yasm -f elf -m amd64 -D__PIC__ -Icommon/amd64 -o common/amd64/dct-a.o common/amd64/dct-a.asm
make: yasm: Command not found
make: *** [common/amd64/dct-a.o] Error 127
Inventive Software
30th June 2006, 23:53
make: yasm: Command not found
That's the problem there. 64 bit compiles need 64 bit code. Currently, ASM code compilable in 64 bit is YASM. Download it at http://www.tortall.net/projects/yasm/.
You'd do well to install NASM alongside it as well, in case YASM doesn't work. Download NASM at http://nasm.sourceforge.net.
Hopefully this should solve your uncompilable issues. ;)
EDIT: Forget NASM for the moment, the website's down.
Nite Phire
1st July 2006, 00:41
YASM installed successfully. x264 on the other hand...
linux-4wp3:~/Setup Files/x264-snapshot-20060629-2245 # ./configure --enable-shar ed
Platform: X86_64
System: LINUX
avis input: no
mp4 output: no
pthread: yes
vfw: no
debug: no
gprof: no
PIC: yes
shared: yes
visualize: no
You can run 'make' or 'make fprofiled' now.
linux-4wp3:~/Setup Files/x264-snapshot-20060629-2245 # make
rm -f .depend
( echo -n "`dirname common/mc.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ - DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREA D -fPIC -s -fomit-frame-pointer common/mc.c -MM -g0 ) 1>> .depend; ( echo -n "` dirname common/predict.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_M ALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer common/predict.c -MM -g0 ) 1>> .depend; ( echo -n "`di rname common/pixel.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLO C_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer common/pixel.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname common/macroblock.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC _H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s - fomit-frame-pointer common/macroblock.c -MM -g0 ) 1>> .depend; ( echo -n "`dirn ame common/frame.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_ H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -f omit-frame-pointer common/frame.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname co mmon/dct.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE _MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-fra me-pointer common/dct.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname common/cpu.c `/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -D HAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer common/cpu.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname common/cabac.c`/" && g cc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE 2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer common/ cabac.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname common/common.c`/" && gcc -W all -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DA RCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer common/commo n.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname common/mdate.c`/" && gcc -Wall - I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X 86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer common/mdate.c -M M -g0 ) 1>> .depend; ( echo -n "`dirname common/csp.c`/" && gcc -Wall -I. -O4 - ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -D SYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer common/csp.c -MM -g0 ) 1> > .depend; ( echo -n "`dirname common/set.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer common/set.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname common/quant.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X26 4__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_P THREAD -fPIC -s -fomit-frame-pointer common/quant.c -MM -g0 ) 1>> .depend; ( ec ho -n "`dirname encoder/analyse.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHR EAD -fPIC -s -fomit-frame-pointer encoder/analyse.c -MM -g0 ) 1>> .depend; ( ec ho -n "`dirname encoder/me.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHA VE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD - fPIC -s -fomit-frame-pointer encoder/me.c -MM -g0 ) 1>> .depend; ( echo -n "`di rname encoder/ratecontrol.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAV E_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -f PIC -s -fomit-frame-pointer encoder/ratecontrol.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname encoder/set.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAV E_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -f PIC -s -fomit-frame-pointer encoder/set.c -MM -g0 ) 1>> .depend; ( echo -n "`di rname encoder/macroblock.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE _MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fP IC -s -fomit-frame-pointer encoder/macroblock.c -MM -g0 ) 1>> .depend; ( echo - n "`dirname encoder/cabac.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAV E_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -f PIC -s -fomit-frame-pointer encoder/cabac.c -MM -g0 ) 1>> .depend; ( echo -n "` dirname encoder/cavlc.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MA LLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer encoder/cavlc.c -MM -g0 ) 1>> .depend; ( echo -n "`dirn ame encoder/encoder.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALL OC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer encoder/encoder.c -MM -g0 ) 1>> .depend; ( echo -n "`dirn ame encoder/eval.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_ H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -f omit-frame-pointer encoder/eval.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname co mmon/i386/mc-c.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fom it-frame-pointer common/i386/mc-c.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname common/i386/dct-c.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC _H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s - fomit-frame-pointer common/i386/dct-c.c -MM -g0 ) 1>> .depend; ( echo -n "`dirn ame common/i386/predict-c.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAV E_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -f PIC -s -fomit-frame-pointer common/i386/predict-c.c -MM -g0 ) 1>> .depend; ( ec ho -n "`dirname x264.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MAL LOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC - s -fomit-frame-pointer x264.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname matros ka.c`/" && gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEX T -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-poi nter matroska.c -MM -g0 ) 1>> .depend; ( echo -n "`dirname muxers.c`/" && gcc - Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -D ARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer muxers.c -M M -g0 ) 1>> .depend;
gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SS E2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer -c - o encoder/set.o encoder/set.c
gcc -shared -o libx264.so.47 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/comm on.o common/mdate.o common/csp.o common/set.o common/quant.o encoder/analyse.o e ncoder/me.o encoder/ratecontrol.o encoder/set.o encoder/macroblock.o encoder/cab ac.o encoder/cavlc.o encoder/encoder.o encoder/eval.o common/i386/mc-c.o common/ i386/dct-c.o common/i386/predict-c.o common/amd64/dct-a.o common/amd64/cpu-a.o c ommon/amd64/pixel-a.o common/amd64/mc-a.o common/amd64/mc-a2.o common/amd64/pred ict-a.o common/amd64/pixel-sse2.o common/amd64/quant-a.o common/amd64/deblock-a. o -Wl,-soname,libx264.so.47 -lm -lpthread -s
gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SS E2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer -c - o x264.o x264.c
gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H -DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer -c -o muxers.o muxers.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/mdate.o common/csp.o common/set.o common/quant.o encoder/analyse.o encoder/me.o encoder/ratecontrol.o encoder/set.o encoder/macroblock.o encoder/cabac.o encoder/cavlc.o encoder/encoder.o encoder/eval.o common/i386/mc-c.o common/i386/dct-c.o common/i386/predict-c.o common/amd64/dct-a.o common/amd64/cpu-a.o common/amd64/pixel-a.o common/amd64/mc-a.o common/amd64/mc-a2.o common/amd64/predict-a.o common/amd64/pixel-sse2.o common/amd64/quant-a.o common/amd64/deblock-a.oranlib libx264.a
gcc -o x264 x264.o matroska.o muxers.o libx264.a -lm -lpthread -s
libx264.a(encoder.o): In function `x264_slice_write':
encoder.c:(.text+0x2684): undefined reference to `x264_visualize_mb'
libx264.a(encoder.o): In function `x264_encoder_encode':
encoder.c:(.text+0x523d): undefined reference to `x264_visualize_show'
encoder.c:(.text+0x5245): undefined reference to `x264_visualize_close'
encoder.c:(.text+0x5252): undefined reference to `x264_visualize_init'
collect2: ld returned 1 exit status
make: *** [x264] Error 1
Sharktooth
1st July 2006, 03:05
it has little or no sense to me. x264_visualize should not be there since you didnt add --enable-visualize in your ./configure line
dlzinc
1st July 2006, 06:06
try doing
make clean
before doing make again
I just built the version you tried to build without any problems... (I suppose I could send you my binaries if you want, I build them on CentOS 4.3 x64, but they should still work)
Okay, I'm running a SUSE 10.1 x86_64 system and I'm having a bit of trouble. I'm trying to get MPlayer running, but to do this I need x264:
Actually you will not be able to get the MPlayer RPM installed by building x264 yourself that easily. You need an RPM package of x264 to satisfy the dependencies. If you only need to run MPlayer and don't care about the x264 version, why don't you get the x264 package from the same place you got the MPlayer package from? See the bottom of the page here: http://packman.links2linux.org/?action=128
Or even better, add the PackMan repository to YaST (http://en.opensuse.org/Installation_Sources) and let the package management take care of dependencies for you! That's the way to go nowadays. I don't know how well SuSE handles these things, but on Debian-based distributions the dependency management and package updating works very nicely. With these systems there's never a need to update to a newer version from a CD or DVD; just tell the package management to upgrade the distribution :)
Nite Phire
4th July 2006, 20:51
First of all, I did install the x264 package from Packman, then the MPlayer one didn't work. I don't know what happened. Perhaps it would be easier to compile MPlayer myself as well, since the RPM won't be compatible? So "make clean" should hopefully fix the problem I'm having with x264 now? I'll go try it as soon as I can. I'm doing some encoding on Windows right now so I'll have to reboot to SUSE later...
First of all, I did install the x264 package from Packman, then the MPlayer one didn't work. I don't know what happened. Perhaps it would be easier to compile MPlayer myself as well, since the RPM won't be compatible?
Perhaps, or let the package management system work the dependencies out for you, as I suggested.
Nite Phire
5th July 2006, 21:41
Only problem with that is the computer I have SUSE running on isn't connected to the Internet. -_-" I finally got x264 installed correctly, but still no go on the MPlayer RPM. I got the MPlayer source, but to compile it with the GUI [I'm not much for command line, obviously] it needs libpng and libpng-dev. I got that source, but am having trouble installing it. I took care of the zlib dependency it has already, but got this error:
linux-4wp3:~/Setup Files/libpng-1.2.12 # make install
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-png.lo -MD -MP -MF ".deps/libpng12_la-png.Tpo" -c -o libpng12_la-png.lo `test -f 'png.c' || echo './'`png.c; \
then mv -f ".deps/libpng12_la-png.Tpo" ".deps/libpng12_la-png.Plo"; else rm -f ".deps/libpng12_la-png.Tpo"; exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-png.lo -MD -MP -MF .deps/libpng12_la-png.Tpo -c png.c -fPIC -DPIC -o .libs/libpng12_la-png.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-png.lo -MD -MP -MF .deps/libpng12_la-png.Tpo -c png.c -o libpng12_la-png.o >/dev/null 2>&1
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngset.lo -MD -MP -MF ".deps/libpng12_la-pngset.Tpo" -c -o libpng12_la-pngset.lo `test -f 'pngset.c' || echo './'`pngset.c; \
then mv -f ".deps/libpng12_la-pngset.Tpo" ".deps/libpng12_la-pngset.Plo"; else rm -f ".deps/libpng12_la-pngset.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngset.lo -MD -MP -MF .deps/libpng12_la-pngset.Tpo -c pngset.c -fPIC -DPIC -o .libs/libpng12_la-pngset.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngset.lo -MD -MP -MF .deps/libpng12_la-pngset.Tpo -c pngset.c -o libpng12_la-pngset.o >/dev/null 2>&1
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngget.lo -MD -MP -MF ".deps/libpng12_la-pngget.Tpo" -c -o libpng12_la-pngget.lo `test -f 'pngget.c' || echo './'`pngget.c; \
then mv -f ".deps/libpng12_la-pngget.Tpo" ".deps/libpng12_la-pngget.Plo"; else rm -f ".deps/libpng12_la-pngget.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngget.lo -MD -MP -MF .deps/libpng12_la-pngget.Tpo -c pngget.c -fPIC -DPIC -o .libs/libpng12_la-pngget.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngget.lo -MD -MP -MF .deps/libpng12_la-pngget.Tpo -c pngget.c -o libpng12_la-pngget.o >/dev/null 2>&1
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngrutil.lo -MD -MP -MF ".deps/libpng12_la-pngrutil.Tpo" -c -o libpng12_la-pngrutil.lo `test -f 'pngrutil.c' || echo './'`pngrutil.c; \
then mv -f ".deps/libpng12_la-pngrutil.Tpo" ".deps/libpng12_la-pngrutil.Plo"; else rm -f ".deps/libpng12_la-pngrutil.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngrutil.lo -MD -MP -MF .deps/libpng12_la-pngrutil.Tpo -c pngrutil.c -fPIC -DPIC -o .libs/libpng12_la-pngrutil.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngrutil.lo -MD -MP -MF .deps/libpng12_la-pngrutil.Tpo -c pngrutil.c -o libpng12_la-pngrutil.o >/dev/null 2>&1
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngtrans.lo -MD -MP -MF ".deps/libpng12_la-pngtrans.Tpo" -c -o libpng12_la-pngtrans.lo `test -f 'pngtrans.c' || echo './'`pngtrans.c; \
then mv -f ".deps/libpng12_la-pngtrans.Tpo" ".deps/libpng12_la-pngtrans.Plo"; else rm -f ".deps/libpng12_la-pngtrans.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngtrans.lo -MD -MP -MF .deps/libpng12_la-pngtrans.Tpo -c pngtrans.c -fPIC -DPIC -o .libs/libpng12_la-pngtrans.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngtrans.lo -MD -MP -MF .deps/libpng12_la-pngtrans.Tpo -c pngtrans.c -o libpng12_la-pngtrans.o >/dev/null 2>&1
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngwutil.lo -MD -MP -MF ".deps/libpng12_la-pngwutil.Tpo" -c -o libpng12_la-pngwutil.lo `test -f 'pngwutil.c' || echo './'`pngwutil.c; \
then mv -f ".deps/libpng12_la-pngwutil.Tpo" ".deps/libpng12_la-pngwutil.Plo"; else rm -f ".deps/libpng12_la-pngwutil.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngwutil.lo -MD -MP -MF .deps/libpng12_la-pngwutil.Tpo -c pngwutil.c -fPIC -DPIC -o .libs/libpng12_la-pngwutil.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngwutil.lo -MD -MP -MF .deps/libpng12_la-pngwutil.Tpo -c pngwutil.c -o libpng12_la-pngwutil.o >/dev/null 2>&1
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngread.lo -MD -MP -MF ".deps/libpng12_la-pngread.Tpo" -c -o libpng12_la-pngread.lo `test -f 'pngread.c' || echo './'`pngread.c; \
then mv -f ".deps/libpng12_la-pngread.Tpo" ".deps/libpng12_la-pngread.Plo"; else rm -f ".deps/libpng12_la-pngread.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngread.lo -MD -MP -MF .deps/libpng12_la-pngread.Tpo -c pngread.c -fPIC -DPIC -o .libs/libpng12_la-pngread.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngread.lo -MD -MP -MF .deps/libpng12_la-pngread.Tpo -c pngread.c -o libpng12_la-pngread.o >/dev/null 2>&1
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngrio.lo -MD -MP -MF ".deps/libpng12_la-pngrio.Tpo" -c -o libpng12_la-pngrio.lo `test -f 'pngrio.c' || echo './'`pngrio.c; \
then mv -f ".deps/libpng12_la-pngrio.Tpo" ".deps/libpng12_la-pngrio.Plo"; else rm -f ".deps/libpng12_la-pngrio.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngrio.lo -MD -MP -MF .deps/libpng12_la-pngrio.Tpo -c pngrio.c -fPIC -DPIC -o .libs/libpng12_la-pngrio.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngrio.lo -MD -MP -MF .deps/libpng12_la-pngrio.Tpo -c pngrio.c -o libpng12_la-pngrio.o >/dev/null 2>&1
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngwio.lo -MD -MP -MF ".deps/libpng12_la-pngwio.Tpo" -c -o libpng12_la-pngwio.lo `test -f 'pngwio.c' || echo './'`pngwio.c; \
then mv -f ".deps/libpng12_la-pngwio.Tpo" ".deps/libpng12_la-pngwio.Plo"; else rm -f ".deps/libpng12_la-pngwio.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngwio.lo -MD -MP -MF .deps/libpng12_la-pngwio.Tpo -c pngwio.c -fPIC -DPIC -o .libs/libpng12_la-pngwio.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngwio.lo -MD -MP -MF .deps/libpng12_la-pngwio.Tpo -c pngwio.c -o libpng12_la-pngwio.o >/dev/null 2>&1
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngwrite.lo -MD -MP -MF ".deps/libpng12_la-pngwrite.Tpo" -c -o libpng12_la-pngwrite.lo `test -f 'pngwrite.c' || echo './'`pngwrite.c; \
then mv -f ".deps/libpng12_la-pngwrite.Tpo" ".deps/libpng12_la-pngwrite.Plo"; else rm -f ".deps/libpng12_la-pngwrite.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngwrite.lo -MD -MP -MF .deps/libpng12_la-pngwrite.Tpo -c pngwrite.c -fPIC -DPIC -o .libs/libpng12_la-pngwrite.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngwrite.lo -MD -MP -MF .deps/libpng12_la-pngwrite.Tpo -c pngwrite.c -o libpng12_la-pngwrite.o >/dev/null 2>&1
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngrtran.lo -MD -MP -MF ".deps/libpng12_la-pngrtran.Tpo" -c -o libpng12_la-pngrtran.lo `test -f 'pngrtran.c' || echo './'`pngrtran.c; \
then mv -f ".deps/libpng12_la-pngrtran.Tpo" ".deps/libpng12_la-pngrtran.Plo"; else rm -f ".deps/libpng12_la-pngrtran.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngrtran.lo -MD -MP -MF .deps/libpng12_la-pngrtran.Tpo -c pngrtran.c -fPIC -DPIC -o .libs/libpng12_la-pngrtran.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngrtran.lo -MD -MP -MF .deps/libpng12_la-pngrtran.Tpo -c pngrtran.c -o libpng12_la-pngrtran.o >/dev/null 2>&1
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngwtran.lo -MD -MP -MF ".deps/libpng12_la-pngwtran.Tpo" -c -o libpng12_la-pngwtran.lo `test -f 'pngwtran.c' || echo './'`pngwtran.c; \
then mv -f ".deps/libpng12_la-pngwtran.Tpo" ".deps/libpng12_la-pngwtran.Plo"; else rm -f ".deps/libpng12_la-pngwtran.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngwtran.lo -MD -MP -MF .deps/libpng12_la-pngwtran.Tpo -c pngwtran.c -fPIC -DPIC -o .libs/libpng12_la-pngwtran.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngwtran.lo -MD -MP -MF .deps/libpng12_la-pngwtran.Tpo -c pngwtran.c -o libpng12_la-pngwtran.o >/dev/null 2>&1
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngmem.lo -MD -MP -MF ".deps/libpng12_la-pngmem.Tpo" -c -o libpng12_la-pngmem.lo `test -f 'pngmem.c' || echo './'`pngmem.c; \
then mv -f ".deps/libpng12_la-pngmem.Tpo" ".deps/libpng12_la-pngmem.Plo"; else rm -f ".deps/libpng12_la-pngmem.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngmem.lo -MD -MP -MF .deps/libpng12_la-pngmem.Tpo -c pngmem.c -fPIC -DPIC -o .libs/libpng12_la-pngmem.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngmem.lo -MD -MP -MF .deps/libpng12_la-pngmem.Tpo -c pngmem.c -o libpng12_la-pngmem.o >/dev/null 2>&1
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngerror.lo -MD -MP -MF ".deps/libpng12_la-pngerror.Tpo" -c -o libpng12_la-pngerror.lo `test -f 'pngerror.c' || echo './'`pngerror.c; \
then mv -f ".deps/libpng12_la-pngerror.Tpo" ".deps/libpng12_la-pngerror.Plo"; else rm -f ".deps/libpng12_la-pngerror.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngerror.lo -MD -MP -MF .deps/libpng12_la-pngerror.Tpo -c pngerror.c -fPIC -DPIC -o .libs/libpng12_la-pngerror.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngerror.lo -MD -MP -MF .deps/libpng12_la-pngerror.Tpo -c pngerror.c -o libpng12_la-pngerror.o >/dev/null 2>&1
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngpread.lo -MD -MP -MF ".deps/libpng12_la-pngpread.Tpo" -c -o libpng12_la-pngpread.lo `test -f 'pngpread.c' || echo './'`pngpread.c; \
then mv -f ".deps/libpng12_la-pngpread.Tpo" ".deps/libpng12_la-pngpread.Plo"; else rm -f ".deps/libpng12_la-pngpread.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngpread.lo -MD -MP -MF .deps/libpng12_la-pngpread.Tpo -c pngpread.c -fPIC -DPIC -o .libs/libpng12_la-pngpread.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pngpread.lo -MD -MP -MF .deps/libpng12_la-pngpread.Tpo -c pngpread.c -o libpng12_la-pngpread.o >/dev/null 2>&1
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pnggccrd.lo -MD -MP -MF ".deps/libpng12_la-pnggccrd.Tpo" -c -o libpng12_la-pnggccrd.lo `test -f 'pnggccrd.c' || echo './'`pnggccrd.c; \
then mv -f ".deps/libpng12_la-pnggccrd.Tpo" ".deps/libpng12_la-pnggccrd.Plo"; else rm -f ".deps/libpng12_la-pnggccrd.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pnggccrd.lo -MD -MP -MF .deps/libpng12_la-pnggccrd.Tpo -c pnggccrd.c -fPIC -DPIC -o .libs/libpng12_la-pnggccrd.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -g -O2 -MT libpng12_la-pnggccrd.lo -MD -MP -MF .deps/libpng12_la-pnggccrd.Tpo -c pnggccrd.c -o libpng12_la-pnggccrd.o >/dev/null 2>&1
rm -f libpng.sym libpng.sym.new
gcc -E -DPNG_CONFIGURE_LIBPNG -DPNG_NO_ASSEMBLER_CODE -DPNG_BUILDSYMS ./png.h | \
/usr/bin/sed -n -e 's|^.*PNG_FUNCTION_EXPORT[ ]*\([a-zA-Z0-9_]*\).*$|\1|p' \
-e 's|^.*PNG_DATA_EXPORT[ ]*\([a-zA-Z0-9_]*\).*$|\1|p' \
>libpng.sym.new
mv libpng.sym.new libpng.sym
rm -f libpng.vers libpng.vers.new
echo PNG12_0 '{global:' > libpng.vers.new
/usr/bin/sed s/$/\;/ libpng.sym >> libpng.vers.new
echo 'local: *; };' >> libpng.vers.new
mv libpng.vers.new libpng.vers
/bin/sh ./libtool --tag=CC --mode=link gcc -g -O2 -o libpng12.la -rpath /usr/local/lib -no-undefined -export-dynamic -version-number 0:12:0 -Wl,--version-script=libpng.vers libpng12_la-png.lo libpng12_la-pngset.lo libpng12_la-pngget.lo libpng12_la-pngrutil.lo libpng12_la-pngtrans.lo libpng12_la-pngwutil.lo libpng12_la-pngread.lo libpng12_la-pngrio.lo libpng12_la-pngwio.lo libpng12_la-pngwrite.lo libpng12_la-pngrtran.lo libpng12_la-pngwtran.lo libpng12_la-pngmem.lo libpng12_la-pngerror.lo libpng12_la-pngpread.lo libpng12_la-pnggccrd.lo -lz -lm
gcc -shared .libs/libpng12_la-png.o .libs/libpng12_la-pngset.o .libs/libpng12_la-pngget.o .libs/libpng12_la-pngrutil.o .libs/libpng12_la-pngtrans.o .libs/libpng12_la-pngwutil.o .libs/libpng12_la-pngread.o .libs/libpng12_la-pngrio.o .libs/libpng12_la-pngwio.o .libs/libpng12_la-pngwrite.o .libs/libpng12_la-pngrtran.o .libs/libpng12_la-pngwtran.o .libs/libpng12_la-pngmem.o .libs/libpng12_la-pngerror.o .libs/libpng12_la-pngpread.o .libs/libpng12_la-pnggccrd.o -lz -lm -Wl,--version-script=libpng.vers -Wl,-soname -Wl,libpng12.so.0 -o .libs/libpng12.so.0.12.0
/usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld: /usr/local/lib/libz.a(crc32.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libz.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libpng12.la] Error 1
Apparently you would need to compile zlib with -fPIC and perhaps build it as a shared library too.
However, instead of building every dependency yourself just to install MPlayer, I'd suggest simply installing the necessary development RPM packages such as libpng-devel and zlib-devel.
Blue_MiSfit
6th July 2006, 01:24
It's headaches like this that makes me unwilling to switch over to Linux...
It's cool that you're getting through it though! Good luck!
~MiSfit
Nite Phire
6th July 2006, 02:25
Well, it's headaches like this that make me want to abandon SUSE. I can't even play MP3's with it yet. I have a friend who's taught me basically how to use Arch so I'm going to go wipe my SUSE partition and stick Arch on it instead. That way I have a first-hand reference right off the bat. Less gunk in my system too. Thanks for all the help guys. I'll be needing it when I switch over, but for now, I wouldn't mind one bit if a mod deleted this thread! ^_^
It's headaches like this that makes me unwilling to switch over to Linux...
Installing software on Linux is a bit different, but usually not more difficult than on Windows. Updating already installed stuff is a lot easier on Linux, as long as you use package management correctly (which isn't that hard on good distros). The original problem here is that for some reason the MPlayer and x264 packages on the PackMan repository are out of sync, linked incorrectly, or there was some problem in Nite Phire's system. Solving this by compiling MPlayer yourself should work, but it also should not be necessary these days. You could contact the person responsible for the packages and ask for assistance politely. See the package pages at PackMan for contact information.
Then there's the problem with proprietary and patented formats such as MP3 and DVD. The licenses are either incompatible with GPL or make free distribution otherwise impossible. Basically they can't be supported without per-installation royalties and that requires strict control of the distribution -- for the whole system or at least the player. Currently the problem is solved by third-party packages (SuSE) or packages that are not installed by default and not distributed on the installation media (Ubuntu). In case of DVD playback, that leaves potential legal problems to the user. There are also distros that offer legal DVD playback for a price.
In case of SuSE, support for most multimedia formats except for DVD playback is available straight out of the box, but only the commercial box that costs over 50 €. In the downloadable OpenSuSE, multimedia capabilities are somewhat crippled and the user needs to figure out how to install third-party software from PackMan or other repositories.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.