Revision 2f821b03 doc/general.texi

View differences:

doc/general.texi
924 924

  
925 925
@subsection Compilation under Cygwin
926 926

  
927
The main issue with the 1.5.x Cygwin versions is that newlib, its C library,
928
does not contain llrint().  You need to upgrade to the unstable 1.7.x versions,
929
or leverage the implementation in MinGW (as explained below).
927
Please use Cygwin 1.7.x as the obsolete 1.5.x Cygwin versions lack
928
llrint() in its C library.
930 929

  
931
Just install your Cygwin with all the "Base" packages, plus the
930
Install your Cygwin with all the "Base" packages, plus the
932 931
following "Devel" ones:
933 932
@example
934
binutils, gcc-core, make, subversion, mingw-runtime
933
binutils, gcc4-core, make, subversion, mingw-runtime, texi2html
935 934
@end example
936 935

  
937 936
And the following "Utils" one:
......
939 938
diffutils
940 939
@end example
941 940

  
942
The experimental gcc4 package is still buggy, hence please
943
use the official gcc 3.4.4 or a 4.2.x compiled from source by yourself.
944

  
945
Install the current binutils-20080624-2 as they work fine (the old
946
binutils-20060709-1 proved buggy on shared builds).
947

  
948
Then create a small library that just contains llrint():
949

  
950
@example
951
ar x /usr/lib/mingw/libmingwex.a llrint.o
952
ar cq /usr/local/lib/libllrint.a llrint.o
953
@end example
954

  
955 941
Then run
956 942

  
957 943
@example
958
./configure --enable-static --disable-shared  --extra-ldflags='-L /usr/local/lib' --extra-libs='-l llrint'
944
./configure --enable-static --disable-shared
959 945
@end example
960 946

  
961
to make a static build or
947
to make a static build.
948

  
949
The current @code{gcc4-core} package is buggy and needs this flag to build
950
shared libraries:
962 951

  
963 952
@example
964
./configure --enable-shared --disable-static  --extra-ldflags='-L /usr/local/lib' --extra-libs='-l llrint'
953
./configure --enable-shared --disable-static --extra-cflags=-fno-reorder-functions
965 954
@end example
966 955

  
967
to build shared libraries.
968

  
969 956
If you want to build FFmpeg with additional libraries, download Cygwin
970 957
"Devel" packages for Ogg and Vorbis from any Cygwin packages repository:
971 958
@example

Also available in: Unified diff