Comments (4)
there's not a straight forward way of doing it you'd have to comment out the fontconfig and libass lines from build.sh, and delete the --enable-libass argument from build/build-ffmpeg.sh
Having said that I'm not sure fontconfig is part of the libass build it builds after it so what's the issue with fontconfig, I've done a fast build of fontconfig and that worked (doing a full rebuild to see if that errors)
from ffmpeg-apple-arm64-build.
I'm getting this:
Undefined symbols for architecture arm64:
"_FT_Done_Face", referenced from:
_FcFreeTypeQuery in libfontconfig.a[11](fcfreetype.o)
_FcFreeTypeQueryAll in libfontconfig.a[11](fcfreetype.o)
_FcFreeTypeQueryAll in libfontconfig.a[11](fcfreetype.o)
"_FT_Done_FreeType", referenced from:
_FcFreeTypeQuery in libfontconfig.a[11](fcfreetype.o)
_FcFreeTypeQueryAll in libfontconfig.a[11](fcfreetype.o)
"_FT_Get_Advance", referenced from:
_FcFreeTypeSpacing in libfontconfig.a[11](fcfreetype.o)
"_FT_Get_Char_Index", referenced from:
_FcFreeTypeCharIndex in libfontconfig.a[11](fcfreetype.o)
_FcFreeTypeCharIndex in libfontconfig.a[11](fcfreetype.o)
_FcFreeTypeCharIndex in libfontconfig.a[11](fcfreetype.o)
_FcFreeTypeCharIndex in libfontconfig.a[11](fcfreetype.o)
"_FT_Get_First_Char", referenced from:
_FcFreeTypeCharSet in libfontconfig.a[11](fcfreetype.o)
_FcFreeTypeSpacing in libfontconfig.a[11](fcfreetype.o)
"_FT_Get_MM_Var", referenced from:
_FcFreeTypeQueryFaceInternal in libfontconfig.a[11](fcfreetype.o)
_FcFreeTypeQueryAll in libfontconfig.a[11](fcfreetype.o)
_FcFreeTypeQueryAll in libfontconfig.a[11](fcfreetype.o)
"_FT_Get_Next_Char", referenced from:
_FcFreeTypeCharSet in libfontconfig.a[11](fcfreetype.o)
_FcFreeTypeSpacing in libfontconfig.a[11](fcfreetype.o)
"_FT_Get_Postscript_Name", referenced from:
_FcFreeTypeQueryFaceInternal in libfontconfig.a[11](fcfreetype.o)
"_FT_Get_Sfnt_Name", referenced from:
_FcFreeTypeQueryFaceInternal in libfontconfig.a[11](fcfreetype.o)
_FcFreeTypeQueryFaceInternal in libfontconfig.a[11](fcfreetype.o)
_FcFreeTypeQueryFaceInternal in libfontconfig.a[11](fcfreetype.o)
"_FT_Get_Sfnt_Name_Count", referenced from:
_FcFreeTypeQueryFaceInternal in libfontconfig.a[11](fcfreetype.o)
"_FT_Get_Sfnt_Table", referenced from:
_FcFreeTypeQueryFaceInternal in libfontconfig.a[11](fcfreetype.o)
_FcFreeTypeQueryFaceInternal in libfontconfig.a[11](fcfreetype.o)
_FcFreeTypeSpacing in libfontconfig.a[11](fcfreetype.o)
"_FT_Init_FreeType", referenced from:
_FcFreeTypeQuery in libfontconfig.a[11](fcfreetype.o)
_FcFreeTypeQueryAll in libfontconfig.a[11](fcfreetype.o)
"_FT_Load_Glyph", referenced from:
_FcFreeTypeCharSet in libfontconfig.a[11](fcfreetype.o)
"_FT_Load_Sfnt_Table", referenced from:
_FcFontCapabilities in libfontconfig.a[11](fcfreetype.o)
"_FT_New_Face", referenced from:
_FcFreeTypeQuery in libfontconfig.a[11](fcfreetype.o)
_FcFreeTypeQueryAll in libfontconfig.a[11](fcfreetype.o)
_FcFreeTypeQueryAll in libfontconfig.a[11](fcfreetype.o)
"_FT_Select_Charmap", referenced from:
_FcFreeTypeCharIndex in libfontconfig.a[11](fcfreetype.o)
_FcFreeTypeCharIndex in libfontconfig.a[11](fcfreetype.o)
_FcFreeTypeCharSet in libfontconfig.a[11](fcfreetype.o)
_FcFreeTypeCharSet in libfontconfig.a[11](fcfreetype.o)
_FcFreeTypeSpacing in libfontconfig.a[11](fcfreetype.o)
_FcFreeTypeSpacing in libfontconfig.a[11](fcfreetype.o)
"_FT_Select_Size", referenced from:
_FcFreeTypeSpacing in libfontconfig.a[11](fcfreetype.o)
"_FT_Set_Var_Design_Coordinates", referenced from:
_FcFreeTypeQueryAll in libfontconfig.a[11](fcfreetype.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [fc-cache] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
check failed: build of fontconfig-2.15.0 failed
from ffmpeg-apple-arm64-build.
Looks like its picking up an Intel only version of libfreetype from somewhere
from your build directory what does
$ lipo -detailed_info tool/lib/libfreetype.a
give it should show
input file tool/lib/libfreetype.a is not a fat file
Non-fat file: tool/lib/libfreetype.a is architecture: arm64
You didn't set Terminal to run using Rosetta way back when Apple Silicon was new, it was a thing people would do before Brew supported Apple Silicon it can cause issues like this ?
from ffmpeg-apple-arm64-build.
I think you're right, I'm also seeing these warnings:
ld: warning: ignoring file '/usr/local/Cellar/fontconfig/2.15.0/lib/libfontconfig.1.dylib': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/usr/local/Cellar/freetype/2.13.2/lib/libfreetype.6.dylib': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/usr/local/Cellar/fontconfig/2.15.0/lib/libfontconfig.1.dylib': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/usr/local/Cellar/freetype/2.13.2/lib/libfreetype.6.dylib': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/usr/local/Cellar/freetype/2.13.2/lib/libfreetype.6.dylib': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/usr/local/Cellar/fontconfig/2.15.0/lib/libfontconfig.1.dylib': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/usr/local/Cellar/fontconfig/2.15.0/lib/libfontconfig.1.dylib': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/usr/local/Cellar/fontconfig/2.15.0/lib/libfontconfig.1.dylib': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/usr/local/Cellar/freetype/2.13.2/lib/libfreetype.6.dylib': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/usr/local/Cellar/fontconfig/2.15.0/lib/libfontconfig.1.dylib': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/usr/local/Cellar/freetype/2.13.2/lib/libfreetype.6.dylib': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/usr/local/Cellar/freetype/2.13.2/lib/libfreetype.6.dylib': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/usr/local/Cellar/fontconfig/2.15.0/lib/libfontconfig.1.dylib': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/usr/local/Cellar/freetype/2.13.2/lib/libfreetype.6.dylib': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/usr/local/Cellar/freetype/2.13.2/lib/libfreetype.6.dylib': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/usr/local/Cellar/fontconfig/2.15.0/lib/libfontconfig.1.dylib': found architecture 'x86_64', required architecture 'arm64'
I'll check my brew installation
from ffmpeg-apple-arm64-build.
Related Issues (20)
- Unable to compile on fresh install of M2 Ventura HOT 3
- MacBook Pro M1 Max - error compiling FFmpeg - libpng16.dylib arm64 but attempting to link with file built for macOS-x86_64 HOT 22
- check failed: build ffmpeg HOT 3
- Feature Request: bring avisynth branch up to date HOT 2
- Error applying option 'blend' to filter 'tvai_up': Option not found HOT 2
- aom av1: illegal instruction during test HOT 3
- check failed: installation of brotli failed HOT 17
- Can't Build AOM - i386 HOT 4
- What's the issue with just compiling the damn thing? HOT 3
- macOS Sonoma, new issues: brotli, libass, svt-av1 HOT 10
- check failed: build FriBidi HOT 1
- check failed: build pkg-config HOT 3
- fatal error: 'arm_neon_sve_bridge.h' file not found HOT 2
- check failed: build of ffmpeg failed HOT 24
- Github Actions HOT 1
- fontconfig fails on undefined brotli symbols HOT 6
- Typo in build.sh HOT 1
- Adding ffplay to the build HOT 2
- This is a great contribution HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ffmpeg-apple-arm64-build.