nyanmisaka / ffmpeg-rockchip

FFmpeg with async and zero-copy Rockchip MPP & RGA support
Other
325 stars 47 forks source link

Compile into static form #52

Closed geiliwanghaichao closed 3 months ago

geiliwanghaichao commented 3 months ago

Hi, I want to compile FFmpeg into a static form. However, when compiling the MPP library, I specified -DBUILD_STATIC_LIBS=ON, and for rga, I used --default-library=static. When compiling FFmpeg, I set --disable-shared --enable-static. Despite these settings, the resulting MPP library is a dynamic library, as is the rga library, and FFmpeg still has dynamic dependencies. How can I resolve this issue? Thank you.

nyanmisaka commented 3 months ago

MPP library doesn’t support static build at the moment. Check this upstream issue for more info. https://github.com/rockchip-linux/mpp/issues/525

HeyMeco commented 1 day ago

Opening this again since things got merged @ mpp. I was looking into using ffmpeg-rockchip with tvheadend's docker image. The build commands from the wiki gave me a ffmpeg but when I mount it into the docker image its missing the libraries and can't run. Not sure if I need to build it differently. Any help is appreciated!

nyanmisaka commented 22 hours ago

@HeyMeco Use this instead. Building static portable ffmpeg on linux is non-trivial.

https://github.com/MarcA711/Rockchip-FFmpeg-Builds

HeyMeco commented 17 hours ago

@nyanmisaka the issue persists with the static portable build. I'll wait and try again when the libvpx fixes get merged