Giter Site home page Giter Site logo

Skipping parts about ffmpeg-apple-arm64-build HOT 4 OPEN

vargol avatar vargol commented on July 28, 2024
Skipping parts

from ffmpeg-apple-arm64-build.

Comments (4)

Vargol avatar Vargol commented on July 28, 2024

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.

Christilut avatar Christilut commented on July 28, 2024

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.

Vargol avatar Vargol commented on July 28, 2024

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.

Christilut avatar Christilut commented on July 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.