cine-io/android-ffmpeg-with-rtmp

Hunk #1 FAILED at 2669.

Opened this issue · 1 comments

Hi, I cannot using your script to build.
It stuck at building ffmpeg

Building ffmpeg for android ...
Couldn't patch ffmpeg configure script!

I saw details log, it says

patching file configure
Hunk #1 FAILED at 2669.
1 out of 1 hunk FAILED -- saving rejects to file configure.rej

How can I do to solve this problem?

This project has been updated 3 years ago. configure file of ffmpeg has been changed since that time. I've solved this issue by replacing content of patches/ffmpeg-configure.patch file to code below

--- configure.orig	2014-06-22 18:55:31.000000000 -0700
+++ configure	2014-06-22 18:55:38.000000000 -0700
@@ -3333,10 +3333,10 @@
 SLIBSUF=".so"
 SLIBNAME='$(SLIBPREF)$(FULLNAME)$(SLIBSUF)'
 SLIBNAME_WITH_VERSION='$(SLIBNAME).$(LIBVERSION)'
-SLIBNAME_WITH_MAJOR='$(SLIBNAME).$(LIBMAJOR)'
+SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME)-$(LIBMAJOR)$(SLIBSUF)'
 LIB_INSTALL_EXTRA_CMD='$$(RANLIB) "$(LIBDIR)/$(LIBNAME)"'
-SLIB_INSTALL_NAME='$(SLIBNAME_WITH_VERSION)'
-SLIB_INSTALL_LINKS='$(SLIBNAME_WITH_MAJOR) $(SLIBNAME)'
+SLIB_INSTALL_NAME='$(SLIBNAME_WITH_MAJOR)'
+SLIB_INSTALL_LINKS='$(SLIBNAME)'
 VERSION_SCRIPT_POSTPROCESS_CMD="cat"

 asflags_filter=echo
 cflags_filter=echo