jocover / jetson-ffmpeg

ffmpeg support on jetson nano
Other
620 stars 199 forks source link

Static build #12

Open johnpdowling opened 4 years ago

johnpdowling commented 4 years ago

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!

st7109 commented 4 years ago

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.

martinhering commented 4 years ago

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.

johnpdowling commented 4 years ago

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.

eusoubrasileiro commented 2 years ago

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

gjrtimmer commented 8 months ago

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.