Ffmpeg Install on Centos 64-Bit 'Install with -Fpic' Error

How to recompile with -fPIC

Briefly, the error means that you can't use a static library to be linked w/ a dynamic one.
The correct way is to have a libavcodec compiled into a .so instead of .a, so the other .so library you are trying to build will link well.

The shortest way to do so is to add --enable-shared at ./configure options. Or even you may try to disable shared (or static) libraries at all... you choose what is suitable for you!

Possible Architecture Error

So as it turns out, this was actually not an architecture error whatsoever. Nor was it even a config error for that matter. The problem was in the Makefile which was doing a dynamic link against statically defined archives(case 4).

So the way I solved it was to add the "-static" flags to the LDFLAGS in the makefile and FINALLY IT WORKED. w00t!w00t!

=))

I struggled with this for almost 2 weeks. Finally I can get some rest.

How to resolve ERROR: libx264 not found?

Make sure your $ADDI_CFLAGS variable (which you pass in --extra-cflags) includes -I /usr/local/include

ffmpeg user agent not working

I'm answering my own question because after another hour or more of digging, it appears the old version of ffmpeg I'm running, which I got from a well known repo, doesn't support -user_agent option/switch, nor the -headers switch either (thanks Steven Penny).

So, I downloaded a Linux static build of ffmpeg, from the official site. And after bouncing it over the the server via SSH, and remembering to change the permissions to 755, I manage to get the -user_agent option/switch to work.

I hope my own answer to my question, will help others in the future.

Lapack linking error, recompile with -fPIC

The solution was to recompile lapack itself with -fPIC. So in your make.inc change to the following:

FORTRAN  = gfortran -m64 -fPIC
OPTS = -O2 -m64 -fPIC
DRVOPTS = $(OPTS)
NOOPT = -O0 -m64 -fPIC
LOADER = gfortran -m64 -fPIC

And you may also use -O3 for better optimization, it works fine!

The option -m64 depends whether you wanna use a 64-bit system. Your choice!

Cheers!



Related Topics



Leave a reply



Submit