ssut / ffmpeg-on-apple-silicon

Build ffmpeg for ARM-based Apple Silicon Macs
222 stars 47 forks source link

ffmpeg dependency on workdir/sw/lib/libass.9.dylib #7

Open lindig opened 3 years ago

lindig commented 3 years ago

The resulting ffmpeg binary depends on workdir/sw/lib/libass.9.dylib and thus can't be move around easily. This could be a consequence of this typo:

$ otool -L workdir/sw/bin/ffmpeg | grep tmp
    /tmp/ffmpeg-on-apple-silicon/workdir/sw/lib/libass.9.dylib (compatibility version 11.0.0, current version 11.1.0)
diff --git a/build.bash b/build.bash
index 9ce8509..19cff03 100755
--- a/build.bash
+++ b/build.bash
@@ -353,7 +353,7 @@ function build_ass () {
     cd ${CMPLD}
     cd libass-0.15.0
     autoreconf -i
-    ./configure --prefix=${SRC} --disable-dependency-tracking --disable-shread --enable-static
+    ./configure --prefix=${SRC} --disable-dependency-tracking --disable-shared --enable-static
     make -j ${NUM_PARALLEL_BUILDS}
     make install
   fi
lindig commented 3 years ago

I believe it is not enough to fix the typo above. The dynamic linking is introduced somewhere else. It also affects ffprobe at least. My current workaround was to disable libass in the ffmpeg confiuration.

amnonbb commented 3 years ago

rm -rf ${SRC}/lib/*.dylib