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

Can not build framework for ffmpeg for MacOS on Mac M2 #944

Closed
MarkYuan opened this issue Mar 15, 2024 · 1 comment
Closed

Can not build framework for ffmpeg for MacOS on Mac M2 #944

MarkYuan opened this issue Mar 15, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@MarkYuan
Copy link

Description
run './macos.sh', get error when build ffmpeg on my Mac with Apple M2.
But every thing is OK when I build on my Mac with Intel Core i5. Xcode V14.3.1

Logs
GEN libswresample/libswresample.ver
ld: warning: -single_module is obsolete
LD libswscale/libswscale.7.dylib
LD libswresample/libswresample.4.dylib
ld: warning: -single_module is obsolete
ld: warning: -single_module is obsolete
ld: warning: ignoring duplicate libraries: '-lavutil', '-lm'
ld: warning: ignoring duplicate libraries: '-lm'
LD libavcodec/libavcodec.60.dylib
ld: warning: -single_module is obsolete
ld: warning: ignoring duplicate libraries: '-lm'
LD libavformat/libavformat.60.dylib
ld: warning: -single_module is obsolete
ld: warning: ignoring duplicate libraries: '-lm'
LD libavfilter/libavfilter.9.dylib
ld: warning: -single_module is obsolete
ld: warning: ignoring duplicate libraries: '-lm'
LD libavdevice/libavdevice.60.dylib
ld: warning: -single_module is obsolete
ld: warning: ignoring duplicate libraries: '-lm'
ld: building exports trie: duplicate symbol '_av_ac3_parse_header'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libavdevice/libavdevice.60.dylib] Error 1

Environment

  • Platform: macOS
  • Architecture: x86_64,arm64
  • Version: v5.1
  • Source branch: main, development
  • Xcode version: 15.0
@tanersener tanersener added the duplicate This issue or pull request already exists label Apr 17, 2024
@tanersener
Copy link
Collaborator

This was already reported in #900. Upgrading Xcode to 15.1 or later fixes the issue. I added a workaround in the development branch anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants