Skip to content

Custom libyuv build

Étienne Léger edited this page Jul 13, 2026 · 2 revisions

An arm64 build of libyuv is provided with MARIN in the lib folder. If a custom build is required, here is a typical build procedure:

# uncomment if depot tools is not installed on your system
#git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
##replace path below to the location where depot tools is installed on your system
#export PATH=<PATH_TO_DEPOT_TOOLS>:$PATH

gclient config --name src https://chromium.googlesource.com/libyuv/libyuv
gclient sync
vim .gclient # or text editor of choice

Add “; target_os=[’ios’];” to the end of .gclient as follows:

fig5

Then, install Python on your system, run ../Applications/Python X.X/Install Certificates.command and execute the following:

gclient sync
cd src
gn gen out/Debug "--args=is_debug=true target_os=\"ios\" ios_enable_code_signing=false target_cpu=\"arm64\""
ninja -C out/Debug libyuv

This will create the following libraries:

  • <PATH_TO_LIBYUV_SRC>/out/Debug/obj/libyuv_internal.a
  • <PATH_TO_LIBYUV_SRC>/out/Debug/obj/libyuv_neon.a

Clone this wiki locally