[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Linking issues-Movie



Lenard,

Thank you very much! That worked.

-Tyler

On Thu, May 21, 2009 at 1:26 PM, Lenard Lindstrom <len-l@xxxxxxxxx> wrote:
When building ffmpeg you have to pass --enable-shared to ./configure. Do a ./configure --help to see all the options.

Lenard


Tyler Laing wrote:
Hello all,

Making fast progress here. I've got a question for later, but the more relevant one right now is this:

The extension compiles, and it fails when linking with libavformat.
The error message is this:
gcc -pthread -shared -Wl,-O1,-Bsymbolic-functions build/temp.linux-x86_64-2.5/src/ff_movie.o -lSDL -lavformat -lavdevice -lavcodec -lavutil -lswscale -o build/lib.linux-x86_64-2.5/pygame/gmovie.so
/usr/bin/ld: /usr/local/lib/avformat.a(allformats.o): relocation of R_X86_64_32 against 'aac_demuxer' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libavformat.a: could not read symbols: Bad value
collect2: ld returned with 1 exit status
error: command 'gcc' failed with exit status 1


In addition, to be able to get to the compilation stage one needs to do this:
-download ffmpeg-0.5.0
-run ./configure in ffmpeg-0.5.0 directory
-run make
-run make install (will need admin privileges?)
-cd libswscale
-run make
-run make install (will need admin privileges?)

This will put all the correct versions of the header files in /usr/local/include (depending on the distribution)

-Tyler

--
Visit my blog at http://oddco.ca/zeroth/zblog




--
Visit my blog at http://oddco.ca/zeroth/zblog