ffmpeg-build-script icon indicating copy to clipboard operation
ffmpeg-build-script copied to clipboard

libtiff 4.3.0 won't build on macOS 11.4 + Xcode 12.5.1 (Intel CPU)

Open Gabriele-LS opened this issue 2 years ago • 7 comments

Hello, I just found out that libtiff 4.3.0 won't compile on macOS 11.4 + Xcode 12.5.1 (Intel CPU). The error I'm getting is the following one.

fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[3]: *** [tif_stream.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... mv -f .deps/tif_fax3.Tpo .deps/tif_fax3.Plo mv -f .deps/tif_getimage.Tpo .deps/tif_getimage.Plo mv -f .deps/tif_dirread.Tpo .deps/tif_dirread.Plo make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2

Failed to Execute make -j 16

Please note that, instead, libtiff 4.2.0 works well.

Gabriele-LS avatar Jul 26 '21 09:07 Gabriele-LS

Can you checkout the latest version of the script and try again? I have no problems with building ffmpeg on my Intel Mac with macOS 11.5, also our continuous integration builds the binary without any issues: https://github.com/markus-perl/ffmpeg-build-script/actions/runs/1067351834

markus-perl avatar Jul 27 '21 06:07 markus-perl

Same error as before. I guess the problem is in the latest libtiff version. Please find attached what I read in the Terminal window when I try to build it.

building libtiff error.txt

Gabriele-LS avatar Jul 27 '21 07:07 Gabriele-LS

Are you running the build script on a case-insensitive filesystem? https://trac.macports.org/ticket/62758

markus-perl avatar Jul 27 '21 07:07 markus-perl

Apparently, my filesystem is APFS. I don't know it if is case-insensitive or not.

Gabriele-LS avatar Jul 27 '21 07:07 Gabriele-LS

Same issue here.. script fails at "libtiff stage".

MacOS 11.5.2, Xcode 12.5.1, both M1 and Intel Macs. Is there a way I can make the script download an earlier version of libtiff? Or maybe someone can share and ARM architecture (M1 chip) compatible static build for ffprobe? If any Terminal testing is needed, I'll gladly help and share all the necessary error logs.

Appreciate your time creating this script!

someziggyman avatar Aug 16 '21 12:08 someziggyman

You can download Markus script and edit it.

image

Open the file called "build-ffmpeg" with a text editor

Edit line 616, replacing "4.3.0" with "4.2.0"

Save the file

Open the Terminal

Change directory to the directory containing the script ("ffmpeg-build-script-master")

Execute the command "./build-ffmpeg --build"

Gabriele-LS avatar Aug 16 '21 13:08 Gabriele-LS

You can download Markus script and edit it.

image

Open the file called "build-ffmpeg" with a text editor

Edit line 616, replacing "4.3.0" with "4.2.0"

Save the file

Open the Terminal

Change directory to the directory containing the script ("ffmpeg-build-script-master")

Execute the command "./build-ffmpeg --build"

Thank you so much! did not know that executable was "editable/ humanly readable" if opened in TextEditor. following your advice helped me proceed further! Really appreciate it. Built successfully! Hope it's a fully static build.

someziggyman avatar Aug 16 '21 14:08 someziggyman