[Sumover-dev] [svn commit] r3940 - vic/branches/mpeg4
sumover-dev at cs.ucl.ac.uk
sumover-dev at cs.ucl.ac.uk
Fri Nov 17 03:20:32 GMT 2006
Author: barz
Date: Fri Nov 17 03:19:58 2006
New Revision: 3940
Added:
vic/branches/mpeg4/copy_dll.sh (contents, props changed)
vic/branches/mpeg4/readme_win32.txt (contents, props changed)
Log:
Instruction to build win32 DLL for ffmpeg and x264
Added: vic/branches/mpeg4/copy_dll.sh
==============================================================================
--- (empty file)
+++ vic/branches/mpeg4/copy_dll.sh Fri Nov 17 03:19:58 2006
@@ -0,0 +1,13 @@
+#!/bin/sh
+echo "copying avcodec avutil swscale dll into win32/lib"
+cp ffmpeg/libavcodec/*.lib win32/lib
+cp ffmpeg/libavcodec/*.dll win32/lib
+cp ffmpeg/libavutil/*.lib win32/lib
+cp ffmpeg/libavutil/*.dll win32/lib
+cp ffmpeg/libswscale/*.lib win32/lib
+cp ffmpeg/libswscale/*.dll win32/lib
+cp x264/*.lib win32/lib
+cp x264/*.dll win32/lib
+echo "copy ffmpeg and x264 header into win32"
+cp -r ffmpeg/include/ffmpeg win32
+cp x264/x264.h win32
Added: vic/branches/mpeg4/readme_win32.txt
==============================================================================
--- (empty file)
+++ vic/branches/mpeg4/readme_win32.txt Fri Nov 17 03:19:58 2006
@@ -0,0 +1,39 @@
+Win32 build instruction written by Barz Hsu
+
+# Make FFmpeg DLL under Mingw
+* check out ffmpeg
+svn co -r 7110 svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
+
+./configure --prefix=/tmp/ffmpeg --enable-mingw32 --enable-memalign-hack --e
+nable-swscaler --enable-gpl --enable-shared --disable-static
+
+# Make X264 DLL under Mingw
+* check out x264
+svn co -r 600 svn://svn.videolan.org/x264/trunk x264
+./configure --enable-shared
+
+* patch Makefile for generating DLL
+add the 3-6 lines in SONAME targe
+
+1: $(SONAME): .depend $(OBJS) $(OBJASM)
+2: $(CC) -shared -o $@ $(OBJS) $(OBJASM) -Wl,-soname,$(SONAME) $(LDFLAGS)
+3: ifeq ($(SYS),MINGW)
+4: $(CC) -shared -Wl,--output-def,libx264.def -o libx264.dll $(OBJS) $(OBJA
+SM)
+5: lib /machine:i386 /def:libx264.def
+6: endif
+
+# Copy DLL and LIB files to win32/lib
+./copy_dll.sh
+
+~
+~
+~
+~
+~
+~
+~
+~
+~
+~
+~
More information about the Sumover-dev
mailing list