Avidemux Forum

Avidemux => MacOSX => Topic started by: moshe on August 18, 2025, 10:18:21 AM

Title: Build script for macOS Sequoia on Apple Silicon, and probably Intel as well
Post by: moshe on August 18, 2025, 10:18:21 AM
The build environment requires a case sensitive volume.
I don't have one on my computer.
The next best thing would be to have a temp volume for that.
What better option than to use a RAM drive, formatted as a case sensitive volume?
Here's the script.
It installs the required homebrew packages, mounts the volume, runs the package build script, copies the DMG file and then ejects the RAM drive.
Works for me one macOS Sequoia 15.6, Apple Silicon.
Hope you find it useful.

https://gist.github.com/moshegottlieb/b21fa414c2f3d5c992c1a1bc9ed5d1e6
Title: Re: Build script for macOS Sequoia on Apple Silicon, and probably Intel as well
Post by: eumagga0x2a on August 18, 2025, 11:02:35 AM
Thank you, a nice idea to reduce SSD wear. BTW, I am surprised that 3 GiB suffice.

Just one detail: the source tree doesn't have to reside on a case-sensitive filesystem. Only the build root must be case-sensitive. Additionally, the build root doesn't need to be inside the top source directory, this is neither required nor recommended. Therefore repeated cloning on each build can be avoided.
Title: Re: Build script for macOS Sequoia on Apple Silicon, and probably Intel as well
Post by: moshe on August 18, 2025, 11:37:07 AM
I started out with a 6gb volume for testing, and found that 3gb is enough for the time being.
I know the source directory doesn't have to be case sensitive, it's just a script for me to build the latest, everyone should adjust to their own need, including replacing the ARM specific build as appropriate.
Title: Re: Build script for macOS Sequoia on Apple Silicon, and probably Intel as well
Post by: Gryphon on May 13, 2026, 12:33:17 AM
This stopped working sometime in the last few months. I don't remember if it broke with Tahoe 26.3 or 26.4 (my last successful build was in mid-February) but it's still broken with 26.5:

In file included from /Users/jon/bin/ramdrive/avidemux2/buildQt6/ADM_userInterfacesQT6/ADM_shell/moc_Q_shell.cpp:9:
In file included from /Users/jon/bin/ramdrive/avidemux2/buildQt6/ADM_userInterfacesQT6/ADM_shell/../../../avidemux/qt4/ADM_userInterfaces/ADM_shell/Q_shell.h:7:
In file included from /Users/jon/bin/ramdrive/avidemux2/buildQt6/ADM_userInterfacesQT6/ADM_shell/ui_shell.h:12:
In file included from /opt/homebrew/lib/QtCore.framework/Headers/QVariant:1:
In file included from /opt/homebrew/lib/QtCore.framework/Headers/qvariant.h:8:
In file included from /opt/homebrew/lib/QtCore.framework/Headers/qatomic.h:9:
In file included from /opt/homebrew/lib/QtCore.framework/Headers/qbasicatomic.h:9:
In file included from /opt/homebrew/lib/QtCore.framework/Headers/qatomic_cxx11.h:10:
/opt/homebrew/lib/QtCore.framework/Headers/qyieldcpu.h:37:5: error: implicitly declaring library function '__yield' with type 'void ()' [-Werror,-Wimplicit-function-declaration]
   37 |     __yield();              // Generic
      |     ^
/opt/homebrew/lib/QtCore.framework/Headers/qyieldcpu.h:37:5: note: include the header <arm_acle.h> or explicitly provide a declaration for '__yield'
1 error generated.
make[2]: *** [ADM_userInterfacesQT6/ADM_shell/CMakeFiles/ADM_shellQT6.dir/moc_Q_shell.cpp.o] Error 1
make[1]: *** [ADM_userInterfacesQT6/ADM_shell/CMakeFiles/ADM_shellQT6.dir/all] Error 2
make: *** [all] Error 2
** Failed at make **
Title: Re: Build script for macOS Sequoia on Apple Silicon, and probably Intel as well
Post by: eumagga0x2a on May 18, 2026, 01:09:21 PM
In-tree build in a RAM disk using the script by Moshe Gottlieb (with build dependencies already installed and thus commented out in the script) works for me on my Mac mini M1, macOS 26.5.

pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
package-id: com.apple.pkg.CLTools_Executables
version: 26.5.0.0.1777544298
Title: Re: Build script for macOS Sequoia on Apple Silicon, and probably Intel as well
Post by: Gryphon on May 21, 2026, 10:39:29 PM
And now it's working for me again. A lot of packages seem to have gotten updates since the 13th, and sometime in the last week I ran Xcode and that installed some new libraries for macOS. I'm not sure which one of those did the trick.
Title: Re: Build script for macOS Sequoia on Apple Silicon, and probably Intel as well
Post by: Olivier on May 23, 2026, 05:35:51 AM
Worked for me on my MacBook Air M5 16GB, Tahoe 26.5
Very simple and straightforward.
Thank you very much!!