Hello,

I'm trying to get a fully static build with utvideo enabled but I can't 
seem to force FFmpeg to statically link libstdc++-6.dll.

I believe that I compiled utvideo statically so I believe the problem is 
within FFmpeg.

When I try to run ffmpeg.exe I get:
"The program can't start because libstc++-6.dll is missing from your 
computer. Try reinstalling the program to fix this problem."

Here is the command that FFmpeg uses to compiled ffmpeg_g.exe:
i686-w64-mingw32-gcc -Llibavcodec -Llibavdevice -Llibavfilter 
-Llibavformat -Llibavutil -Llibpostproc -Llibswscale -Llibswresample 
-L/home/kyle/software/ffmpeg/packages/utvideo/utvideo-10.2.4-win32/lib 
-Wl,--as-needed -Wl,--warn-common 
-Wl,-rpath-link=libpostproc:libswresample:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil
 
-o ffmpeg_g.exe ffmpeg.o cmdutils.o -lavdevice -lavfilter -lavformat 
-lavcodec -lpostproc -lswresample -lswscale -lavutil -lavicap32 -lpsapi 
-lole32 -lstrmiids -luuid -lws2_32 -lutvideo -lstdc++ -lm -lpthread -lpsapi

I have tried adding -static and -static-libstdc++ to both the LDFLAGS 
and CFLAGS for FFmpeg. I have tried adding them to utvideo as well.

I'm not sure how to force FFmpeg to compile statically, but if anyone 
has any input I would greatly appreciate it!

If I compile FFmpeg without any external libraries that use stdc++, I 
don't run into any errors.

Thanks in advance.

Best regards,
   Kyle Schwarz

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to