Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ffmpeg link error on macOS #273

Closed
wang-bin opened this issue Apr 10, 2022 · 2 comments
Closed

ffmpeg link error on macOS #273

wang-bin opened this issue Apr 10, 2022 · 2 comments

Comments

@wang-bin
Copy link

I use the latest release 20220323 to cross build ffmpeg. only avutil dll is generated.

LD	libswresample/swresample-4.dll
lld: error: unable to find library -lavutil

libavutil.dll.a exists, but the linker can't find it. if i create a symbolic link libavutil.a, the error disappears.

@mstorsjo
Copy link
Owner

You didn’t say how you configured the ffmpeg build. It builds just fine for me, configured with ../ffmpeg/configure --target-os=mingw32 --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --enable-shared.

@wang-bin
Copy link
Author

the reason is -Wl,-Bstatic in my extra ldflags. can't remember why i added the flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants