Compiling shared via MinGW without supplemental dll's

Questions that occur when trying to compile FFmpeg.
Post Reply
MusicMan3001
Posts: 10
Joined: Fri Sep 06, 2013 5:35 pm

Compiling shared via MinGW without supplemental dll's

Post by MusicMan3001 » Wed Jul 18, 2018 11:52 pm

In the official MinGW compilation guide (https://trac.ffmpeg.org/wiki/CompilationGuide/MinGW), there are some vague instructions about how to compile ffmpeg without dependencies on libwinpthread-1.dll, etc.:
Unfortunately the gcc.exe it provides seems to create binary's that require files like "libgcc_s_dw2-1.dll" and "libwinpthread-1.dll" (etc.?) to accompany your executable, so can cause some difficulty there. You can remove some files to remove dependencies on things like "libbzip2.dll" see ​viewtopic.php?f=5&t=3688 and possibly avoid the libgcc.dll requirement by using "-static" at linking time.
Can anyone provide any further clarification on this? The indicated topic doesn't provide much help. And exactly where would I specify "-static"? To the configure script? How? Or to the make command?

Thanks for any assistance.

rogerdpack
Posts: 1878
Joined: Fri Aug 05, 2011 9:56 pm

Re: Compiling shared via MinGW without supplemental dll's

Post by rogerdpack » Tue Aug 07, 2018 8:49 pm

cross compiling is how I avoid it. There may be some flag gcc needs/wants like "-static" or some odd...

Post Reply