Skip to content

Instantly share code, notes, and snippets.

@Selur
Created September 18, 2012 20:30
Show Gist options
  • Save Selur/3745659 to your computer and use it in GitHub Desktop.
Save Selur/3745659 to your computer and use it in GitHub Desktop.
ffmpeg windows build helper problems,..
##################### Welcome ######################
Welcome to the ffmpeg cross-compile builder-helper script.
Downloads and builds will be installed to directories within /home/selur/ffmpeg/sandbox
If this is not ok, then exit now, and cd to the directory where you'd
like them installed, then run this script again. NB that once you build
your compilers, you can no longer rename the directory.
Is ./sandbox ok [y/n]? y
Would you like to include non-free (non GPL compatible) libraries, like many aac encoders
The resultant binary will not be distributable, but might be useful for in-house use. Include non-free [y/n]? n
MinGW-w64 compiler of some type already installed, not re-installing it...
Building 32-bit ffmpeg...
already configured zlib-1.2.7
already did make zlib-1.2.7
already configured gmp-5.0.5
already did make gmp-5.0.5
already configured nettle-2.5
already did make nettle-2.5
already configured gnutls-3.0.22
already did make gnutls-3.0.22
/home/selur/ffmpeg/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-gcc -o ./bin/toast ./src/toast.o ./src/toast_lin.o ./src/toast_ulaw.o ./src/toast_alaw.o ./src/toast_audio.o ./lib/libgsm.a
./src/toast.o:toast.c:(.text+0xb6f): undefined reference to `fchmod'
./src/toast.o:toast.c:(.text+0xbdf): undefined reference to `fchown'
collect2: error: ld returned 1 exit status
make: *** [bin/toast] Error 1
already configured SDL-1.2.15
already did make SDL-1.2.15
already configured opus-1.0.1
already did make opus-1.0.1
already configured libogg-1.3.0
already did make libogg-1.3.0
already configured speex-1.2rc1
already did make speex-1.2rc1
already configured libvorbis-1.2.3
already did make libvorbis-1.2.3
already configured libtheora-1.1.1
already did make libtheora-1.1.1
already configured generic
already did make generic
Updating to latest x264 version...
WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-srvnfc/pkcs11: No such file or directory
Already up-to-date.
already configured x264
already did make x264
already configured lame-3.99.5
already did make lame-3.99.5
already configured libvpx-v1.1.0
already did make libvpx-v1.1.0
already configured vo-aacenc-0.1.2
already did make vo-aacenc-0.1.2
--2012-09-18 22:13:27-- https://github.com/downloads/rdp/FFmpeg/utvideo-11.1.0-src.zip
Resolving github.com (github.com)... 207.97.227.239
Connecting to github.com (github.com)|207.97.227.239|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://cloud.github.com/downloads/rdp/FFmpeg/utvideo-11.1.0-src.zip [following]
--2012-09-18 22:13:28-- http://cloud.github.com/downloads/rdp/FFmpeg/utvideo-11.1.0-src.zip
Resolving cloud.github.com (cloud.github.com)... 54.240.162.162, 54.240.162.170, 54.240.162.221, ...
Connecting to cloud.github.com (cloud.github.com)|54.240.162.162|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 158792 (155K) [application/zip]
Saving to: `utvideo-11.1.0-src.zip'
0K .......... .......... .......... .......... .......... 32% 719K 0s
50K .......... .......... .......... .......... .......... 64% 1.13M 0s
100K .......... .......... .......... .......... .......... 96% 1.04M 0s
150K ..... 100% 1.24M=0.2s
2012-09-18 22:13:28 (947 KB/s) - `utvideo-11.1.0-src.zip' saved [158792/158792]
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
Archive: utvideo-11.1.0-src.zip
inflating: utvideo-11.1.0/GNUmakefile
inflating: utvideo-11.1.0/gplv2.ja.sjis.txt
inflating: utvideo-11.1.0/gplv2.rtf
inflating: utvideo-11.1.0/gplv2.txt
inflating: utvideo-11.1.0/readme.en.html
inflating: utvideo-11.1.0/readme.ja.html
creating: utvideo-11.1.0/replace/
inflating: utvideo-11.1.0/replace/stdint.h
creating: utvideo-11.1.0/setup_win/
inflating: utvideo-11.1.0/setup_win/before.en.rtf
inflating: utvideo-11.1.0/setup_win/before.ja.rtf
inflating: utvideo-11.1.0/setup_win/info.en.rtf
inflating: utvideo-11.1.0/setup_win/info.ja.rtf
inflating: utvideo-11.1.0/setup_win/setup_win.iss
inflating: utvideo-11.1.0/setup_win/utvideo-x64.reg
inflating: utvideo-11.1.0/setup_win/utvideo-x86.reg
creating: utvideo-11.1.0/utv_cfg/
inflating: utvideo-11.1.0/utv_cfg/resource.h
inflating: utvideo-11.1.0/utv_cfg/stdafx.cpp
inflating: utvideo-11.1.0/utv_cfg/stdafx.h
inflating: utvideo-11.1.0/utv_cfg/utv_cfg.cpp
inflating: utvideo-11.1.0/utv_cfg/utv_cfg.h
inflating: utvideo-11.1.0/utv_cfg/utv_cfg.rc
inflating: utvideo-11.1.0/utv_cfg/utv_cfg.vcproj
creating: utvideo-11.1.0/utv_core/
inflating: utvideo-11.1.0/utv_core/Codec.cpp
inflating: utvideo-11.1.0/utv_core/Codec.h
inflating: utvideo-11.1.0/utv_core/Common_asm_x64.mac
inflating: utvideo-11.1.0/utv_core/Common_asm_x86.mac
inflating: utvideo-11.1.0/utv_core/Convert.cpp
inflating: utvideo-11.1.0/utv_core/Convert.h
inflating: utvideo-11.1.0/utv_core/Convert_asm_x64.asm
inflating: utvideo-11.1.0/utv_core/Convert_asm_x86.asm
inflating: utvideo-11.1.0/utv_core/DummyCodec.cpp
inflating: utvideo-11.1.0/utv_core/DummyCodec.h
inflating: utvideo-11.1.0/utv_core/Format.cpp
inflating: utvideo-11.1.0/utv_core/Format.h
inflating: utvideo-11.1.0/utv_core/FrameBuffer.cpp
inflating: utvideo-11.1.0/utv_core/FrameBuffer.h
inflating: utvideo-11.1.0/utv_core/GlobalConfig.cpp
inflating: utvideo-11.1.0/utv_core/GlobalConfig.h
inflating: utvideo-11.1.0/utv_core/HuffmanCode.cpp
inflating: utvideo-11.1.0/utv_core/HuffmanCode.h
inflating: utvideo-11.1.0/utv_core/HuffmanCode_asm_x64.asm
inflating: utvideo-11.1.0/utv_core/HuffmanCode_asm_x86.asm
inflating: utvideo-11.1.0/utv_core/Predict.cpp
inflating: utvideo-11.1.0/utv_core/Predict.h
inflating: utvideo-11.1.0/utv_core/Predict_asm_x64.asm
inflating: utvideo-11.1.0/utv_core/Predict_asm_x86.asm
inflating: utvideo-11.1.0/utv_core/PredictUnitTest.cpp
inflating: utvideo-11.1.0/utv_core/resource.h
inflating: utvideo-11.1.0/utv_core/stdafx.cpp
inflating: utvideo-11.1.0/utv_core/stdafx.h
inflating: utvideo-11.1.0/utv_core/Thread.cpp
inflating: utvideo-11.1.0/utv_core/Thread.h
inflating: utvideo-11.1.0/utv_core/TunedFunc.cpp
inflating: utvideo-11.1.0/utv_core/TunedFunc.h
inflating: utvideo-11.1.0/utv_core/TunedFunc_x64.cpp
inflating: utvideo-11.1.0/utv_core/TunedFunc_x86.cpp
inflating: utvideo-11.1.0/utv_core/UL00Codec.cpp
inflating: utvideo-11.1.0/utv_core/UL00Codec.h
inflating: utvideo-11.1.0/utv_core/ULRACodec.cpp
inflating: utvideo-11.1.0/utv_core/ULRACodec.h
inflating: utvideo-11.1.0/utv_core/ULRGCodec.cpp
inflating: utvideo-11.1.0/utv_core/ULRGCodec.h
inflating: utvideo-11.1.0/utv_core/ULY0Codec.cpp
inflating: utvideo-11.1.0/utv_core/ULY0Codec.h
inflating: utvideo-11.1.0/utv_core/ULY2Codec.cpp
inflating: utvideo-11.1.0/utv_core/ULY2Codec.h
inflating: utvideo-11.1.0/utv_core/utv_core.cpp
inflating: utvideo-11.1.0/utv_core/utv_core.h
inflating: utvideo-11.1.0/utv_core/utv_core.rc
inflating: utvideo-11.1.0/utv_core/utv_core.vcproj
inflating: utvideo-11.1.0/utv_core/utvideo.h
creating: utvideo-11.1.0/utv_dmo/
inflating: utvideo-11.1.0/utv_dmo/ClsID.cpp
inflating: utvideo-11.1.0/utv_dmo/ClsID.h
inflating: utvideo-11.1.0/utv_dmo/DMOCodec.h
inflating: utvideo-11.1.0/utv_dmo/DMODecoder.cpp
inflating: utvideo-11.1.0/utv_dmo/DMODecoder.h
inflating: utvideo-11.1.0/utv_dmo/DMODecoder.rgs
inflating: utvideo-11.1.0/utv_dmo/DMOEncoder.cpp
inflating: utvideo-11.1.0/utv_dmo/DMOEncoder.h
inflating: utvideo-11.1.0/utv_dmo/DMOEncoder.rgs
inflating: utvideo-11.1.0/utv_dmo/resource.h
inflating: utvideo-11.1.0/utv_dmo/stdafx.cpp
inflating: utvideo-11.1.0/utv_dmo/stdafx.h
inflating: utvideo-11.1.0/utv_dmo/utv_dmo.cpp
inflating: utvideo-11.1.0/utv_dmo/utv_dmo.def
inflating: utvideo-11.1.0/utv_dmo/utv_dmo.idl
inflating: utvideo-11.1.0/utv_dmo/utv_dmo.rc
inflating: utvideo-11.1.0/utv_dmo/utv_dmo.rgs
inflating: utvideo-11.1.0/utv_dmo/utv_dmo.vcproj
creating: utvideo-11.1.0/utv_qt/
inflating: utvideo-11.1.0/utv_qt/Mutex.h
inflating: utvideo-11.1.0/utv_qt/QTCodec.cpp
inflating: utvideo-11.1.0/utv_qt/QTCodec.h
inflating: utvideo-11.1.0/utv_qt/QTDecoder.cpp
inflating: utvideo-11.1.0/utv_qt/QTDecoder.h
inflating: utvideo-11.1.0/utv_qt/QTDecoderDispatch.h
inflating: utvideo-11.1.0/utv_qt/QTEncoder.cpp
inflating: utvideo-11.1.0/utv_qt/QTEncoder.h
inflating: utvideo-11.1.0/utv_qt/QTEncoderDispatch.h
inflating: utvideo-11.1.0/utv_qt/stdafx.h
inflating: utvideo-11.1.0/utv_qt/utv_qt.in.r
inflating: utvideo-11.1.0/utv_qt/utv_qt.r
creating: utvideo-11.1.0/utv_test/
inflating: utvideo-11.1.0/utv_test/stdafx.cpp
inflating: utvideo-11.1.0/utv_test/stdafx.h
inflating: utvideo-11.1.0/utv_test/utv_test.cpp
inflating: utvideo-11.1.0/utv_test/utv_test.vcproj
creating: utvideo-11.1.0/utv_vcm/
inflating: utvideo-11.1.0/utv_vcm/DriverProc.cpp
inflating: utvideo-11.1.0/utv_vcm/stdafx.cpp
inflating: utvideo-11.1.0/utv_vcm/stdafx.h
inflating: utvideo-11.1.0/utv_vcm/utv_vcm.cpp
extracting: utvideo-11.1.0/utv_vcm/utv_vcm.def
inflating: utvideo-11.1.0/utv_vcm/utv_vcm.vcproj
inflating: utvideo-11.1.0/utv_vcm/VCMCodec.cpp
inflating: utvideo-11.1.0/utv_vcm/VCMCodec.h
inflating: utvideo-11.1.0/utvideo.sln
creating: utvideo-11.1.0/utvideo.xcodeproj/
inflating: utvideo-11.1.0/utvideo.xcodeproj/project.pbxproj
inflating: utvideo-11.1.0/utvideo-Info.plist
./cross_compile_ffmpeg.sh: line 237: ../../../utv.diff: No such file or directory
CXX utv_core/Codec.o
CXX utv_core/Convert.o
CXX utv_core/DummyCodec.o
CXX utv_core/Format.o
CXX utv_core/FrameBuffer.o
CXX utv_core/GlobalConfig.o
CXX utv_core/HuffmanCode.o
CXX utv_core/Predict.o
CXX utv_core/Thread.o
CXX utv_core/TunedFunc.o
CXX utv_core/UL00Codec.o
CXX utv_core/ULRACodec.o
CXX utv_core/ULRGCodec.o
CXX utv_core/ULY0Codec.o
CXX utv_core/ULY2Codec.o
CXX utv_core/utv_core.o
AR utv_core/libutvideo.a
RANLIB utv_core/libutvideo.a
MKDIR /home/selur/ffmpeg/sandbox/mingw-w64-i686/i686-w64-mingw32/include/utvideo
INSTALL /home/selur/ffmpeg/sandbox/mingw-w64-i686/i686-w64-mingw32/include/utvideo/Codec.h
INSTALL /home/selur/ffmpeg/sandbox/mingw-w64-i686/i686-w64-mingw32/include/utvideo/utvideo.h
INSTALL /home/selur/ffmpeg/sandbox/mingw-w64-i686/i686-w64-mingw32/lib/libutvideo.a
already configured freetype-2.4.10
already did make freetype-2.4.10
already configured expat-2.1.0
already did make expat-2.1.0
already configured fontconfig-2.10.1
already did make fontconfig-2.10.1
patching file lib/fribidi-common.h
Hunk #1 FAILED at 53.
1 out of 1 hunk FAILED -- saving rejects to file lib/fribidi-common.h.rej
already configured fribidi-0.19.4
already did make fribidi-0.19.4
already configured libass-0.10.0
already did make libass-0.10.0
already configured openjpeg_v1_4_sources_r697
already did make openjpeg_v1_4_sources_r697
Updating to latest rtmpdump_git version...
WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-srvnfc/pkcs11: No such file or directory
Already up-to-date.
mkdir -p /home/selur/ffmpeg/sandbox/mingw-w64-i686/i686-w64-mingw32/include/librtmp /home/selur/ffmpeg/sandbox/mingw-w64-i686/i686-w64-mingw32/lib/pkgconfig /home/selur/ffmpeg/sandbox/mingw-w64-i686/i686-w64-mingw32/man/man3 /home/selur/ffmpeg/sandbox/mingw-w64-i686/i686-w64-mingw32/lib
cp amf.h http.h log.h rtmp.h /home/selur/ffmpeg/sandbox/mingw-w64-i686/i686-w64-mingw32/include/librtmp
cp librtmp.a /home/selur/ffmpeg/sandbox/mingw-w64-i686/i686-w64-mingw32/lib
cp librtmp.pc /home/selur/ffmpeg/sandbox/mingw-w64-i686/i686-w64-mingw32/lib/pkgconfig
cp librtmp.3 /home/selur/ffmpeg/sandbox/mingw-w64-i686/i686-w64-mingw32/man/man3
Updating to latest ffmpeg_git version...
WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-srvnfc/pkcs11: No such file or directory
Already up-to-date.
configuring ffmpeg_git as $ PATH=/home/selur/ffmpeg/sandbox/mingw-w64-i686/bin:/usr/lib/libfm:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games ./configure --enable-memalign-hack --arch=x86 --enable-gpl --enable-libx264 --enable-avisynth --enable-libxvid --target-os=mingw32 --cross-prefix=/home/selur/ffmpeg/sandbox/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config --enable-libmp3lame --enable-version3 --enable-libvo-aacenc --enable-libvpx --extra-libs=-lws2_32 --extra-libs=-lpthread --enable-zlib --extra-libs=-lwinmm --extra-libs=-lgdi32 --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --disable-optimizations --enable-mmx --disable-postproc --enable-fontconfig --enable-libass --enable-libutvideo --enable-libopus --enable-runtime-cpudetect
Makefile:2: config.mak: No such file or directory
Makefile:48: /common.mak: No such file or directory
Makefile:91: /libavutil/Makefile: No such file or directory
Makefile:91: /library.mak: No such file or directory
Makefile:178: /doc/Makefile: No such file or directory
Makefile:179: /tests/Makefile: No such file or directory
make: *** No rule to make target `/tests/Makefile'. Stop.
ERROR: utvideo not found
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
[email protected] mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment