-
Notifications
You must be signed in to change notification settings - Fork 422
Description
USing Ubuntu 18.10 64bit to build 32bit ffmpeg
The current script uses flite 2.1.0
build_libflite() {
download_and_unpack_file http://www.festvox.org/flite/packed/flite-2.1/flite-2.1-release.tar.bz2
cd flite-2.1-release
apply_patch file://$patch_dir/flite-2.1.0_mingw-w64-fixes.patch
if [[ ! -f main/Makefile.bak ]]; then
sed -i.bak "s/cp -pd/cp -p/" main/Makefile # friendlier cp for OS X
fi
generic_configure
do_make_and_make_install
cd ..
}
This fails when doing a clean build with this error:
Installing
mkdir -p /home/c/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/bin
mkdir -p /home/c/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/lib
mkdir -p /home/c/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include/flite
/usr/bin/install -c -m 644 include/*.h /home/c/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include/flite
/usr/bin/install: cannot stat '../bin/flite_cmu_us_kal.exe': No such file or directory
/usr/bin/install: cannot stat '../bin/flite_cmu_time_awb.exe': No such file or directory
/usr/bin/install: cannot stat '../bin/flite_cmu_us_kal16.exe': No such file or directory
/usr/bin/install: cannot stat '../bin/flite_cmu_us_awb.exe': No such file or directory
/usr/bin/install: cannot stat '../bin/flite_cmu_us_rms.exe': No such file or directory
/usr/bin/install: cannot stat '../bin/flite_cmu_us_slt.exe': No such file or directory
Makefile:136: recipe for target 'install' failed
make[1]: *** [install] Error 1
Makefile:108: recipe for target 'install' failed
make: *** [install] Error 2
However when using an older scripts flite 2.0
build_libflite() {
download_and_unpack_file http://www.festvox.org/flite/packed/flite-2.0/flite-2.0.0-release.tar.bz2
cd flite-2.0.0-release
if [[ ! -f configure.bak ]]; then
sed -i.bak "s|i386-mingw32-|$cross_prefix|" configure
#sed -i.bak "/define const/i\#include <windows.h>" tools/find_sts_main.c # Needed for x86_64? Untested.
sed -i.bak "128,134d" main/Makefile # Library only.
sed -i.bak "s/cp -pd/cp -p/" main/Makefile # friendlier cp for OS X
fi
generic_configure
#cpu_count=1 # can't handle it :|
do_make_and_make_install
#cpu_count=$original_cpu_count
cd ..
}
This builds without any issues