WebFaction
Community site: login faq

I'm attempting to install FFMPEG and am running into some issues. FFMPEG configures fine but during the install the following error message is returned: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC

This message appears to be originating from my install of libvpx.

Here's my ffmpeg configs for edification

TMPDIR=$HOME/tmp ./configure --prefix=$HOME/bin --libdir=$HOME/lib --incdir=$HOME/include --enable-libfaac --enable-libx264 --enable-libxvid --enable-nonfree --enable-gpl --enable-libmp3lame --enable-pthreads --enable-libvpx --enable-libvorbis --disable-mmx --arch=x86_64 --enable-shared --enable-libtheora --pkg-config=pkg-config --enable-version3 --enable-pic --extra-cflags="-I$HOME/include" --extra-ldflags="-L$HOME/lib" --enable-pic

Any ideas?

Thanks

asked 21 Feb '12, 20:57

mapache
335
accept rate: 0%


Yes, this problem is coming from libvpx as you state. Specifically, it's (somewhat) related to the fact that the compiler has to do relocate shared libraries since you're building this on a 64-bit platform but it's not a 64-bit-native library.

To solve this, you should recompile and reinstall libvpx using:

./configure --prefix=$HOME --enable-pic --enable-shared

While investigating this problem, I went ahead and put together this ffmpeg Installation Guide using your configure line as a basis for which packages should be installed. Hope that helps!

permanent link

answered 21 Feb '12, 23:57

ryans ♦♦
5.0k103760
accept rate: 43%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×19
×16
×5
×5
×1

question asked: 21 Feb '12, 20:57

question was seen: 6,175 times

last updated: 21 Feb '12, 23:57

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM