jetson-ffmpeg icon indicating copy to clipboard operation
jetson-ffmpeg copied to clipboard

Static build

Open johnpdowling opened this issue 4 years ago • 5 comments

Is there any way to get this to build/install a static library version as well? Or any pointers for how-to? Trying to create a static build of ffmpeg and running into lots of pkg-config --static errors. Thanks!

johnpdowling avatar Nov 05 '19 18:11 johnpdowling

you should copy nvmpi.pc to /usr/local/lib/pkgconfig, then run below command: export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" I think you can get static lib.

st7109 avatar Nov 07 '19 04:11 st7109

In the CMakeLists.txt file, change the following line:

add_library(nvmpi SHARED to add_library(nvmpi STATIC

and comment out the install lines at the bottom. That did the trick for me.

martinhering avatar Nov 13 '19 14:11 martinhering

Still nothing for me. I changed the lines in CMakeLists.txt, moved the resultant headers and libs to where they're referred to in the .pc file, and moved and put in the proper PATH flags. Still nothing, still "ERROR: nvmpi not found using pkg-config" even though pkg-config --list-all and --list-all --static shows it. Now there are errors in ffbuild/config.log whining about uclibc? I've also done a apt build-dep ffmpeg to see if there were other environmental factors, no change.

johnpdowling avatar Feb 19 '20 10:02 johnpdowling

in my case it was missing a apt install pkg-config

eusoubrasileiro avatar May 09 '22 14:05 eusoubrasileiro

Still nothing for me. I changed the lines in CMakeLists.txt, moved the resultant headers and libs to where they're referred to in the .pc file, and moved and put in the proper PATH flags. Still nothing, still "ERROR: nvmpi not found using pkg-config" even though pkg-config --list-all and --list-all --static shows it. Now there are errors in ffbuild/config.log whining about uclibc? I've also done a apt build-dep ffmpeg to see if there were other environmental factors, no change.

Hi, I'm trying to build statically, could you give some more insight in what I need to change to create a static build.

gjrtimmer avatar Feb 16 '24 03:02 gjrtimmer