Compiling gst-ffmpeg-0.10.1 on FC6 I ran into this:
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -Wall -Wno-switch -o ffplay ffplay-cmdutils.o ffplay-ffplay.o -L/usr/lib -lSDL -lpthread libavutil/.libs/libavutil.a libavformat/.libs/libavformat.a -ldl libavcodec/.libs/libavcodec.a -lz -lm ffplay-ffplay.o: In function `main': /usr/src/redhat/BUILD/gst-ffmpeg-0.10.1/gst-libs/ext/ffmpeg/ffplay.c:2451: undefined reference to `XOpenDisplay' /usr/src/redhat/BUILD/gst-ffmpeg-0.10.1/gst-libs/ext/ffmpeg/ffplay.c:2455: undefined reference to `XCloseDisplay' collect2: ld returned 1 exit status make[7]: *** [ffplay] Error 1
I do have libX11-devel installed but somehow it's not picking it up. Might this package be screwed up? Don't know if this is an X bug or this particular package.
-Louis
Louis Garcia II wrote:
Compiling gst-ffmpeg-0.10.1 on FC6 I ran into this:
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -Wall -Wno-switch -o ffplay ffplay-cmdutils.o ffplay-ffplay.o -L/usr/lib -lSDL -lpthread libavutil/.libs/libavutil.a libavformat/.libs/libavformat.a -ldl libavcodec/.libs/libavcodec.a -lz -lm ffplay-ffplay.o: In function `main': /usr/src/redhat/BUILD/gst-ffmpeg-0.10.1/gst-libs/ext/ffmpeg/ffplay.c:2451: undefined reference to `XOpenDisplay' /usr/src/redhat/BUILD/gst-ffmpeg-0.10.1/gst-libs/ext/ffmpeg/ffplay.c:2455: undefined reference to `XCloseDisplay' collect2: ld returned 1 exit status make[7]: *** [ffplay] Error 1
I do have libX11-devel installed but somehow it's not picking it up. Might this package be screwed up? Don't know if this is an X bug or this particular package.
"-lX11" is notably missing from the above gcc invocation, so libX11 is not getting linked in.
On Sun, 2006-08-13 at 00:26 -0400, Mike A. Harris wrote:
On Sat, 2006-08-12 at 23:29 -0400, Louis Garcia II wrote:
Compiling gst-ffmpeg-0.10.1 on FC6 I ran into this:
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -Wall -Wno-switch -o ffplay ffplay-cmdutils.o ffplay-ffplay.o -L/usr/lib -lSDL -lpthread libavutil/.libs/libavutil.a libavformat/.libs/libavformat.a -ldl libavcodec/.libs/libavcodec.a -lz -lm ffplay-ffplay.o: In function `main': /usr/src/redhat/BUILD/gst-ffmpeg-0.10.1/gst-libs/ext/ffmpeg/ffplay.c:2451: undefined reference to `XOpenDisplay' /usr/src/redhat/BUILD/gst-ffmpeg-0.10.1/gst-libs/ext/ffmpeg/ffplay.c:2455: undefined reference to `XCloseDisplay' collect2: ld returned 1 exit status make[7]: *** [ffplay] Error 1
I do have libX11-devel installed but somehow it's not picking it up. Might this package be screwed up? Don't know if this is an X bug or this particular package.
-Louis
"-lX11" is notably missing from the above gcc invocation, so libX11 is not getting linked in.
So is this a gcc bug?
-Louis
Hi.
Louis Garcia II louisg00@bellsouth.net wrote:
"-lX11" is notably missing from the above gcc invocation, so libX11 is not getting linked in.
So is this a gcc bug?
No, gcc does exactly what it is told. The makefile is incomplete.