[MPlayer-dev-eng] libswscale with -fPIC
Jason Tackaberry
tack at sault.org
Wed Nov 30 00:37:24 CET 2005
I am attempting to build libswscale as a shared library, and have made a
number of changes so that it compiles with -fPIC. Presently I have it
compiling on both x86 and x86_64 (with the exception of MMX2 fast
bilinear upscaling, for now), but I'm having troubles building the
shared library on x84_64:
cc -c -I../libvo -I../../libvo -I/usr/X11R6/include -O4 -march=k8
-mtune=k8 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I. -I.. -I.. -fPIC -dPIC
-o swscale.o swscale.c
cc -c -I../libvo -I../../libvo -I/usr/X11R6/include -O4 -march=k8
-mtune=k8 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I. -I.. -I.. -fPIC -dPIC
-o rgb2rgb.o rgb2rgb.c
cc -c -I../libvo -I../../libvo -I/usr/X11R6/include -O4 -march=k8
-mtune=k8 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I. -I.. -I.. -fPIC -dPIC
-o yuv2rgb.o yuv2rgb.c
cc -fPIC -dPIC -shared swscale.o rgb2rgb.o yuv2rgb.o -o libswscale.so
/usr/bin/ld: swscale.o: relocation R_X86_64_32S against `a local symbol'
can not be used when making a shared object; recompile with -fPIC
swscale.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libswscale.so] Error 1
"a local symbol" doesn't much help with troubleshooting. Would anyone
here have any suggestions as to what the problem might be?
Thanks,
Jason.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 229 bytes
Desc: This is a digitally signed message part
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20051129/e364bd49/attachment.pgp>
More information about the MPlayer-dev-eng
mailing list