You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build with g++ -std=c++11 -O3 01-remuxing.cpp -lsrt -lpthread -lz -ldl -lswresample -lm -lva -l:libavformat.a -l:libavcodec.a -l:libx264.a -l:libswresample.a -l:libavutil.a -o remux-> get a waterfall of undefined references (https://gist.github.com/substring/d14f4d9907e1a2afd209d6c4117f9ec8)
build with g++ -std=c++11 -O3 01-remuxing.cpp -o remux -static $(pkgconf --static --cflags --libs libavformat libavcodec libswresample libavutil) -> multiple definitions of some rust code + warns about no static version about libva and libva_win32 (https://gist.github.com/substring/3a74a6200ae8315d57a87bef5a37b7d0)
g++ -std=c++11 -O3 01-remuxing.cpp -o remux -Wl,--allow-multiple-definition -static $(pkgconf --static --cflags --libs libavformat libavcodec libswresample libavutil) -> no static version of libllc3, libva and libva_win32 (https://gist.github.com/substring/2961c7b2033965dab6d0de5963a1a95b)
#18827 is of no help although there are some common undefined references.
Or am I building wrong ? In which case does MSYS miss some "helpers" ?
See #8824 - I'm not sure if that ever got finished.
In general it's tricky to keep these things working as we don't use static linking ourselves, so don't noticed when things are broken or regress. Any idea there welcome.
Description / Steps to reproduce the issue
Trying to build a basic ffmpeg example but statically linking ffmpeg fails.
Expected behavior
Have the resulting binary compile, linking no MSYS shared lib, just some genuine Windows DLL
Actual behavior
av_mallocz_array
toav_malloc_array
)g++ -std=c++11 -O3 01-remuxing.cpp -lsrt -lpthread -lz -ldl -lswresample -lm -lva -l:libavformat.a -l:libavcodec.a -l:libx264.a -l:libswresample.a -l:libavutil.a -o remux
-> get a waterfall of undefined references (https://gist.github.com/substring/d14f4d9907e1a2afd209d6c4117f9ec8)g++ -std=c++11 -O3 01-remuxing.cpp -o remux -static $(pkgconf --static --cflags --libs libavformat libavcodec libswresample libavutil)
-> multiple definitions of some rust code + warns about no static version about libva and libva_win32 (https://gist.github.com/substring/3a74a6200ae8315d57a87bef5a37b7d0)g++ -std=c++11 -O3 01-remuxing.cpp -o remux -Wl,--allow-multiple-definition -static $(pkgconf --static --cflags --libs libavformat libavcodec libswresample libavutil)
-> no static version of libllc3, libva and libva_win32 (https://gist.github.com/substring/2961c7b2033965dab6d0de5963a1a95b)#18827 is of no help although there are some common undefined references.
Or am I building wrong ? In which case does MSYS miss some "helpers" ?
Verification
Windows Version
MINGW64_NT-10.0-26100
MINGW environments affected
Are you willing to submit a PR?
No
The text was updated successfully, but these errors were encountered: