ffmpeg-on-apple-silicon icon indicating copy to clipboard operation
ffmpeg-on-apple-silicon copied to clipboard

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

Open lindig opened this issue 3 years ago • 2 comments

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 avatar Mar 27 '21 18:03 lindig

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.

lindig avatar Mar 27 '21 19:03 lindig

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

amnonbb avatar May 03 '21 05:05 amnonbb