Skip to content
Snippets Groups Projects
general.texi 43.1 KiB
Newer Older
  • Learn to ignore specific revisions
  • binutils, gcc4-core, make, subversion, mingw-runtime, texi2html
    
    @end example
    
    And the following "Utils" one:
    @example
    diffutils
    
    ./configure --enable-static --disable-shared
    
    to make a static build.
    
    The current @code{gcc4-core} package is buggy and needs this flag to build
    shared libraries:
    
    ./configure --enable-shared --disable-static --extra-cflags=-fno-reorder-functions
    
    @end example
    
    If you want to build FFmpeg with additional libraries, download Cygwin
    
    "Devel" packages for Ogg and Vorbis from any Cygwin packages repository:
    @example
    libogg-devel, libvorbis-devel
    @end example
    
    These library packages are only available from Cygwin Ports
    
    (@url{http://sourceware.org/cygwinports/}) :
    
    Måns Rullgård's avatar
    Måns Rullgård committed
    yasm, libSDL-devel, libdirac-devel, libfaac-devel, libgsm-devel,
    
    libmp3lame-devel, libschroedinger1.0-devel, speex-devel, libtheora-devel,
    libxvidcore-devel
    @end example
    
    The recommendation for libnut and x264 is to build them from source by
    yourself, as they evolve too quickly for Cygwin Ports to be up to date.
    
    Cygwin 1.7.x has IPv6 support. You can add IPv6 to Cygwin 1.5.x by means
    of the @code{libgetaddrinfo-devel} package, available at Cygwin Ports.
    
    
    @subsection Crosscompilation for Windows under Cygwin
    
    With Cygwin you can create Windows binaries that do not need the cygwin1.dll.
    
    Just install your Cygwin as explained before, plus these additional
    "Devel" packages:
    @example
    gcc-mingw-core, mingw-runtime, mingw-zlib
    @end example
    
    and add some special flags to your configure invocation.
    
    For a static build run
    @example
    ./configure --target-os=mingw32 --enable-memalign-hack --enable-static --disable-shared --extra-cflags=-mno-cygwin --extra-libs=-mno-cygwin
    @end example
    
    and for a build with shared libraries
    @example
    ./configure --target-os=mingw32 --enable-memalign-hack --enable-shared --disable-static --extra-cflags=-mno-cygwin --extra-libs=-mno-cygwin
    @end example
    
    @bye