Skip to content

Commit

Permalink
fix ffmpeg build
Browse files Browse the repository at this point in the history
  • Loading branch information
1Conan committed Nov 11, 2023
1 parent f6904f3 commit d5c6125
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/apple/ffmpeg-kit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ set_toolchain_paths "${LIB_NAME}"
HOST=$(get_host)
export CFLAGS="$(get_cflags ${LIB_NAME}) -I${LIB_INSTALL_BASE}/ffmpeg/include"
export CXXFLAGS=$(get_cxxflags ${LIB_NAME})
export LDFLAGS="$(get_ldflags ${LIB_NAME}) -F${LIB_INSTALL_BASE}/ffmpeg/framework -framework Foundation -framework CoreVideo -framework libavdevice"
export LDFLAGS="$(get_ldflags ${LIB_NAME}) -Wl,-ld_classic -F${LIB_INSTALL_BASE}/ffmpeg/framework -framework Foundation -framework CoreVideo -framework libavdevice"
export PKG_CONFIG_LIBDIR="${INSTALL_PKG_CONFIG_DIR}"

cd "${BASEDIR}"/apple 1>>"${BASEDIR}"/build.log 2>&1 || return 1
Expand Down
5 changes: 4 additions & 1 deletion scripts/apple/ffmpeg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ COMMON_LDFLAGS=$(get_common_ldflags)
# UPDATE BUILD FLAGS
export CFLAGS="${ARCH_CFLAGS} ${APP_CFLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_CFLAGS} ${MIN_VERSION_CFLAGS}${FFMPEG_CFLAGS} ${COMMON_INCLUDES}"
export CXXFLAGS=$(get_cxxflags "${LIB_NAME}")
export LDFLAGS="${ARCH_LDFLAGS}${HIGH_PRIORITY_LDFLAGS}${FFMPEG_LDFLAGS} ${LINKED_LIBRARIES} ${COMMON_LDFLAGS} ${BITCODE_FLAGS} ${OPTIMIZATION_FLAGS}"
export LDFLAGS="${ARCH_LDFLAGS}${HIGH_PRIORITY_LDFLAGS}${FFMPEG_LDFLAGS} ${LINKED_LIBRARIES} ${COMMON_LDFLAGS} -Wl,-ld_classic ${BITCODE_FLAGS} ${OPTIMIZATION_FLAGS}"

echo -n -e "\n${LIB_NAME}: "

Expand Down Expand Up @@ -542,6 +542,9 @@ ${SED_INLINE} 's/static int av_log_level/__thread int av_log_level/g' "${BASEDIR
--disable-nvenc \
--disable-vaapi \
--disable-vdpau \
--enable-avfoundation \
--enable-audiotoolbox \
--enable-videotoolbox \
--enable-decoder=libvpx_vp9,opus \
--enable-demuxer=matroska,ogg \
--enable-encoder=hevc_videotoolbox,aac_at \
Expand Down

0 comments on commit d5c6125

Please sign in to comment.