BtbN / FFmpeg-Builds

MIT License
7.76k stars 1.07k forks source link

Hope it can support .a static library of mingw32 #356

Closed mojie126 closed 7 months ago

mojie126 commented 7 months ago

Hope it can support .a static library of mingw32 or mingw64 thinks

BtbN commented 7 months ago

I don't understand what you're asking. If you mean you want a static library to link into your stuff: That won't be happening. You wouldn't only need the ffmpeg library, but the static libraries of all other dependencies, all their flags, and the specific order to link them in. There just is no mechanism to export all of that, and it would also be huge and incredibly fragile.

mojie126 commented 7 months ago

I don't understand what you're asking. If you mean you want a static library to link into your stuff: That won't be happening. You wouldn't only need the ffmpeg library, but the static libraries of all other dependencies, all their flags, and the specific order to link them in. There just is no mechanism to export all of that, and it would also be huge and incredibly fragile.

After cloning the warehouse and ./makeimage.sh, can the various dependent .a static libraries in it be copied?

BtbN commented 7 months ago

You can copy them out, sure. But using them to build anything with them will be incredibly tedious and error prone. Best to use the image and its pkg-config itself if you really want to build something against those libs.

mojie126 commented 7 months ago

微信截图_20240409194511 Such an error occurred when ./makeimage.sh wsl, win64, 7.0, gpl

BtbN commented 7 months ago

If this is related to the other issue about the Ubuntu 24.04 package issues: You just found out (one of the reasons) why it's on 24.04 and not any older version.

mojie126 commented 7 months ago

You can copy them out, sure. But using them to build anything with them will be incredibly tedious and error prone. Best to use the image and its pkg-config itself if you really want to build something against those libs.

In which image are the other dependent static libraries located? What is the path? How to copy it? think you