[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Linking issues-Movie
- To: pygame-users@xxxxxxxx
- Subject: [pygame] Linking issues-Movie
- From: Tyler Laing <trinioler@xxxxxxxxx>
- Date: Thu, 21 May 2009 11:36:25 -0700
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Thu, 21 May 2009 14:36:28 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=7KseylAvwC9G0+XGOIBshmVa1PmkihG1Cag3kK+s6GU=; b=UBLztQFslSnj4gFmH3lonpO1F9ezzuzwYhba/gcDI94mGXsObzTKfssjDqZH0qTwto hV6maPHgFV2zXmXd2EErV34Own9vNIyi+g/SBI6SdGanaf/8GHpihbFg9sSfkXf8CjfR 0vCdElYunf/rd6wX6CW9a57IsvDxYLNQlX9p4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=FPPWlqNIHYHdL4IEScUdcg5h3Xl5rpxJeJzOh7Zmdfxy2SIyV8yaDSIBscunhyedQw 865f2/A8pHatIN+uYedqsgF79EH1WFU+bfCwq0DZh4koGV2ovXnOlWszj6gFyoooBhtR 93xW4RBURIK9iIzFkHfAOv5KqmxK9EGKQqiPA=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
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