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
Polling a Loop Device Through a Kernel Module
What Is a Good Interface for a Linux Device Driver for a Co-Processing Peripheral
What Is The Downside of Updating Arm Ttbr(Translate Table Base Register)
Command Line Video Editing Tools
Sendmail/Procmail - Get Mail Sender and Mail Subject, Utf8 Encoding Issues
Nvcc Cuda Cross Compiling Cannot Find "-Lcudart"
Compiling and Linking a 32 Bit Application on Debian 64 Bit
How to Execute a Command in a Bash Script and Then Focus The Appearing Window
Sending Snmp2 Trap Message from Linux Command Lne
How to Create a File in Assembly with a Dynamically Specified File Path
Shared Libraries (Dlopen) and Thread-Safety of Library Static Pointers
Why Isn't Git Bash Transforming The Path to *Nix Notation for My Python Installation
Finding and Listing Duplicate Words in a Plain Text File
How to Install and Run Tacotron2 on Ubuntu Wsl
How to Play an Audio File from Haskell Code, Cross-Platform
Inotify Fd - Why Is The Limit Per User Id and Not Per Process