Changeset 4776

Show
Ignore:
Timestamp:
04/14/10 14:35:18 (4 years ago)
Author:
douglask
Message:

Updated Windows build instructions.

Location:
vic/branches/mpeg4
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • vic/branches/mpeg4/README.WIN32

    r1055 r4776  
    1 Building VIC on Windows platforms 
    2 --------------------------------- 
     1VIC on Windows platforms 
     2------------------------ 
    33 
    4 The VIC distribution contains a MS Visual Studio workspace for building various 
    5 releases.  The following project configurations are available from the 
    6 build->'set active configuration' menu item:  
     4Please see win32\build_install.txt for building instructions. 
    75 
    8 vic win32 release              - Non debug IPv4 build 
    9 vic win32 debug ipv6 musica    - Debug build for use with Musica IPv6 stack 
    10 vic win32 debug                - Debug IPv4 build 
    11 vic win32 debug ipv6 win2000   - Debug IPv6 build for Windows 2000 
    12 vic win32 debug ipv6 msr       - Debug IPv6 build for MS research IPv6 stack 
    13 vic win32 release ipv6 win2000 - Release IPv6 build for Windows 2000 
     6The VIC distribution contains a Visual Studio 2008 solution 
     7file (vic.2008.sln) for building various releases. 
    148 
     9The following Solutions Configurations are available from 
     10the Build->'Configuration Manger...' menu item:  
     11 
     12vic Release (nonGPL)           - Non-GPL release build 
     13vic Debug (nonGPL)             - Non-GPL debug build 
     14vic Release (GPL)              - GPL release build 
     15vic Debug (GPL)                - GPL debug build 
  • vic/branches/mpeg4/win32/build_install.txt

    r4463 r4776  
    1 Win32 build instruction written by Barz Hsu and updated by Piers 4 June 09 
     1Win32 build instructions for Visual Studio 2008 
    22 
    3 Get and install the following: 
    4 - The latest version of mingw from http://www.mingw.org/ 
    5   o YOu will need win32api, w32runtime, utils, gcc 
    6 - Get Yasm and copy it to a directory in your PATH (e.g. c:\Windows) and rename it yasm.exe 
    7   => http://www.tortall.net/projects/yasm/wiki/Download  
    83 
    9 # Get and Make FFmpeg DLL under Mingw  
    10 - Get ffmpeg-0.5 from: 
    11   => http://ffmpeg.org/releases/ffmpeg-0.5.tar.bz2 
    12 - Untar and configure: 
     4~~~~ 
     5Non-GPL VIC (Release or Debug) version pre-requisites: 
     6~~~~ 
    137 
    14 tar xfj ffmpeg-0.5.tar.bz2 && cd ffmpeg-0.5 
    15 ./configure  --enable-memalign-hack --enable-swscale --enable-gpl --enable-shared --disable-static --enable-postproc --prefix=../win32 --bindir=../win32/l 
    16 ib --enable-w32threads 
    17 make install 
     8- UCL Common Multimedia Library source code 
     9    http://mediatools.cs.ucl.ac.uk/nets/mmedia/wiki/SvnDev 
    1810 
    19 # Get and Make X264 DLL under Mingw 
    20 - Get x264-snapshot-20090531-2245 snapshot: 
    21   => http://downloads.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20090531-2245.tar.bz2 
    22 - Untar and configure: 
     11- A recent Direct X SDK install 
     12    http://msdn.microsoft.com/en-us/directx/ 
    2313 
    24 tar xfj x264-snapshot-20090531-2245.tar.bz2 && cd x264-snapshot-20090531-2245 
    25 ./configure --enable-shared --prefix=../win32 
    26    
    27 * patch Makefile for generating DLL 
    28 add the 3-6 lines in SONAME target 
     14- A recent ActiveTcl 8.5 install 
     15    http://www.activestate.com/activetcl/downloads/ 
    2916 
    30 1: $(SONAME): .depend $(OBJS) $(OBJASM) 
    31 2:        $(CC) -shared -o $@ $(OBJS) $(OBJASM) -Wl,-soname,$(SONAME) $(LDFLAGS) 
    32 3: ifeq ($(SYS),MINGW) 
    33 4:        $(CC) -shared -Wl,--output-def,libx264.def -o libx264.dll $(OBJS) $(OBJA 
    34 SM) 
    35 5:        lib /machine:i386 /def:libx264.def 
    36 6: endif 
     17To build Non-GPL VIC with VS2008, select Release or Debug in the "Solutions Configuration" drop down menu, then click "Configuration Manger..." in the same menu and select Debug (nonGPL) or Release (nonGPL). 
    3718 
     19 
     20~~~~ 
     21VIC GPL (Release or Debug) version pre-requisites: 
     22~~~~ 
     23 
     24- All the non-GPL VIC prerequisites 
     25 
     26- Yasm assembler 
     27    http://www.tortall.net/projects/yasm/wiki/Download 
     28copy it to a directory in your PATH (e.g. C:\Windows) and rename it to yasm.exe 
     29 
     30- Info-ZIP 2.21 
     31   ftp://ftp.info-zip.org/pub/infozip/win32/zip232xn.zip 
     32 
     33Extract zip.exe from the above zip file and copy it into a directory in your PATH (e.g. C:\Windows). 
     34Note: ZIP 3.0 must not be used as it has a bug which prevents it from adjusting the ZIP offset of the zip file that gets appended to vic.exe. 
     35 
     36- MinGW and MSYS 
     37    http://www.mingw.org/ 
     38 
     39- ffmpeg SVN revision 20462 
     40    svn checkout -r 20462 svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg 
     41 
     42- libswscale SVN revision 29824 
     43    svn checkout -r 29824 svn://svn.ffmpeg.org/mplayer/trunk/libswscale  ffmpeg/libswscale 
     44 
     45- x264-snapshot-20090708-2245 
     46    http://downloads.videolan.org/pub/videolan/x264/snapshots/ 
     47 
     48- pthread-win32 2.8.0 
     49    http://sourceware.org/pthreads-win32/ 
     50 
     51 
     52 
     53Please see “Preparing the MSys+MinGW system” and "Building FFmpeg SVN statically" links on the following page for instructions on how to setup MSys and MinGW for building FFmpeg : 
     54  http://ffmpeg.arrozcru.org/wiki/index.php 
     55 
     56 
     57On the MSYS command-line to build ffmpeg in the ffmpeg svn checkout folder, issue: 
     58 
     59./configure  --enable-memalign-hack --enable-gpl --enable-postproc --enable-w32threads 
    3860make install 
    3961 
    4062 
    41 # Build VIC using Visual studio as normal.  
    42 ~                                                                                                                                            
    43 ~                                                                                                                                            
    44 ~                                                                                                                                            
    45 ~                                                                                                                                            
    46 ~                           
    47 ~ 
    48 ~                                                                                
    49 ~                                                                                
    50 ~                                                                                
    51 ~                                                                                
    52 ~                     
     63On the MSYS command-line to build pthread-win32 2.8.0 in it's unpacked folder, issue: 
     64 
     65make clean GC-static 
     66cp -p pthread.h sched.h /usr/local/include/ 
     67cp -p libpthreadGC2.a /usr/local/lib/ 
     68 
     69 
     70On the MSYS command-line to build x264 in it's unpacked folder, issue: 
     71 
     72CFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure --disable-avis-input 
     73make 
     74make install 
     75 
     76Note: x264 must be built after pthread-win32 so that x264's configure can detect pthread support. 
     77 
     78 
     79VIC has an additional dependency on the MinGW zlib package which can be downloaded from: 
     80  http://sourceforge.net/projects/mingw/files/ 
     81 
     82 
     83The Release GPL version of VIC will fail to link in VS2008 if the following isn't performed on the "Visual Studio 2008 Command Prompt" console: 
     84 
     85cd C:\MinGW\lib 
     86lib -remove:mbrtowc.o libmingwex.a 
     87lib -remove:wcrtomb.o libmingwex.lib 
     88 
     89Note: the last line has libmingwex.lib and the previous libmingwex.a  
     90 
     91 
     92[Optional] to reduce the size of vic.exe, strip the debugging info from the MinGW, ffmpeg and x264 libraries, on the MSYS command-line issue : 
     93 
     94cd /mingw/lib 
     95strip -x *.a 
     96cd /usr/local/lib/ 
     97strip -x *.a 
     98 
     99 
     100To build GPL VIC with VS2008, select Release or Debug in the "Solutions Configuration" drop down menu, then click 'Configuration Manger..." in the same menu and select Debug (GPL) or Release (GPL).