summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/README.MINGWCROSS58
-rw-r--r--doc/README.WIN327
-rw-r--r--doc/faq/faq.docbook2
3 files changed, 33 insertions, 34 deletions
diff --git a/doc/README.MINGWCROSS b/doc/README.MINGWCROSS
index d721ca941..9aefccfaa 100644
--- a/doc/README.MINGWCROSS
+++ b/doc/README.MINGWCROSS
@@ -8,10 +8,13 @@ In this case "native" means programs which don't require extra DLLs like
cygwin DLL. Mingw32 programs use DLLs supplied with all current Win32
platforms. Thus the programs are light weight and easy to distribute.
-
This document describes by shell commands how to compile and install MinGW
cross development tools on Unix host and how to use it for building windows
-version of xine.
+version of xine. See README.WIN32 how to use it to build xine.
+
+For creating 64bit version of Mingw32 toolchain, see
+mingw/mingw-w64-doc/howto-build/mingw-w64-howto-build.txt in mingw32-w64
+sources.
Download
@@ -19,7 +22,8 @@ Download
MinGW packages:
- http://mingw.org/download.shtml
+ http://mingw.org, or
+ http://mingw-w64.sourceforge.net
1) binutils (sources), binutils-build.sh
2) gcc-core, gcc-c++ (sources), gcc-build.sh
@@ -33,6 +37,7 @@ Download
Pthread Win32:
ftp://sources.redhat.com/pub/pthreads-win32/
+ (plus 64bit external patches for mingw32-w64)
zlib:
@@ -54,7 +59,7 @@ In the following text are used symbols $PREFIX and $USER with this meaning:
mkdir bin
cd bin
../binutils-2.13.90-20030111-1-src/configure \
- --target=i386-mingw32 \
+ --target=i686-pc-mingw32 \
--prefix=$PREFIX
make
su
@@ -82,7 +87,7 @@ In the following text are used symbols $PREFIX and $USER with this meaning:
# compile and install the compiler
#
# if you'll want rerun this step, I recommend delete
- # $PREFIX/i386-mingw32/sys-include
+ # $PREFIX/i686-pc-mingw32/sys-include
#
tar xzf gcc-core-3.3.1-20030804-1-src.tar.gz
tar xzf gcc-g++-3.3.1-20030804-1-src.tar.gz
@@ -94,7 +99,7 @@ In the following text are used symbols $PREFIX and $USER with this meaning:
# see gcc-3.3.1-1-build.sh
../gcc-3.3.1-20030804-1/configure \
--disable-shared \
- --target=i386-mingw32 \
+ --target=i686-pc-mingw32 \
--with-headers=../runtime/include \
--with-libs=../runtime/lib \
--prefix=$PREFIX
@@ -109,18 +114,18 @@ In the following text are used symbols $PREFIX and $USER with this meaning:
4. recompile w32api and mingw-runtime from sources (optional)
#
- # installing must be into $PREFIX/i386-mingw32
+ # installing must be into $PREFIX/i686-pc-mingw32
#
tar xzf w32api-2.5-src.tar.gz
cd w32api-2.5
- ./configure --prefix=$PREFIX/i386-mingw32 --host=i386-mingw32
+ ./configure --prefix=$PREFIX/i686-pc-mingw32 --host=i686-pc-mingw32
make
su
make install
exit
#
- # installing must be into $PREFIX/i386-mingw32
+ # installing must be into $PREFIX/i686-pc-mingw32
#
tar xzf mingw-runtime-3.3-src.tar.gz
cd mingw-runtime-3.3
@@ -128,12 +133,12 @@ In the following text are used symbols $PREFIX and $USER with this meaning:
# package)
...
# compiling
- CC=i386-mingw32-gcc \
- DLLTOOL=i386-mingw32-dlltool \
- AR=i386-mingw32-ar \
- AS=i386-mingw32-as \
- RANLIB=i386-mingw32-ranlib \
- ./configure --prefix=$PREFIX/i386-mingw32 --target=i386-mingw32
+ CC=i686-pc-mingw32-gcc \
+ DLLTOOL=i686-pc-mingw32-dlltool \
+ AR=i686-pc-mingw32-ar \
+ AS=i686-pc-mingw32-as \
+ RANLIB=i686-pc-mingw32-ranlib \
+ ./configure --prefix=$PREFIX/i686-pc-mingw32 --target=i686-pc-mingw32
make
su
make install
@@ -151,14 +156,14 @@ In the following text are used symbols $PREFIX and $USER with this meaning:
6. compile and install pthreads-win32
- tar xzf pthreads-w32-2-7-0-release.tar.gz
- cd pthreads-w32-2-7-0-release/
- make CROSS=i386-mingw32- PTHREAD_DEF=pthreadGC2.def clean GC
+ tar xzf pthreads-w32-2-8-0-release.tar.gz
+ cd pthreads-w32-2-8-0-release/
+ make CROSS=i686-pc-mingw32- clean GC
#
# possibility to use pthread library in M$ Visual C (optional)
#
mv pthread.def pthreadGC2.def
- wine LIB.EXE /machine:i386 /def:pthreadGC2.def
+ wine LIB.EXE /machine:i686 /def:pthreadGC2.def
#
# installing
#
@@ -176,16 +181,9 @@ In the following text are used symbols $PREFIX and $USER with this meaning:
7. compile and install zlib
- tar xjf zlib-1.2.3.tar.bz2
- cd zlib-1.2.3
- #
- # small workaround in Makefile:
- #
- sed -e 's/dllwrap /i386-mingw32-dllwrap /g' win32/Makefile.gcc > Makefile
- #
- # compiling
- #
- make CC=i386-mingw32-gcc AR=i386-mingw32-ar RC=i386-mingw32-windres STATICLIB=libz-static.a IMPLIB=libz.a
+ tar xzf zlib-1.2.5.tar.gz
+ cd zlib-1.2.5
+ make -f win32/Makefile.gcc PREFIX=i686-pc-mingw32- STATICLIB=libz-static.a IMPLIB=libz.a
#
# possibility to use zlib library in M$ Visual C (optional)
#
@@ -212,7 +210,7 @@ Now we can build xine library for Windows by this way:
# (the build option is needed only for forcing cross compilation mode)
#
./configure \
- --host=i386-mingw32 \
+ --host=i686-pc-mingw32 \
--build=i686-debian-linux \
--disable-freetype \
--disable-vcd \
diff --git a/doc/README.WIN32 b/doc/README.WIN32
index 989728b07..a1dc461f5 100644
--- a/doc/README.WIN32
+++ b/doc/README.WIN32
@@ -44,8 +44,6 @@ How to build:
# install and manually remove the static plugins
#
make install DESTDIR=/tmp/xine-lib
- rm /tmp/xine-lib/bin/plugins/*.a
- rm /tmp/xine-lib/bin/plugins/post/*.a
Prepare xine library for using in M$ compilers too:
# run terminal window (MinGW for example)
@@ -56,6 +54,9 @@ Prepare xine library for using in M$ compilers too:
<path_to_M$VC>/VC98/BIN/LIB.EXE /machine:i386 /def:libxine-1.def
rm libxine-1.dll
+For 64bit, use x86 instead of i386:
+ <path_to_M$VC>/VC98/BIN/LIB.EXE /machine:x86 /def:libxine-1.def
+
2. CygWin port
--------------
@@ -165,8 +166,8 @@ There remains many of work yet on Windows port.
Limitations:
- file > 1GB doesn't work (MinGW problem?)
- - build system isn't fully tuned for cross-compiling
- seeking doesn't work with testing frontend, but it should be OK in library
+ - libcdio not ported to mingw32-w64 (frelling headers :-))
Bugs:
- random crashes and random locks in stress tests
diff --git a/doc/faq/faq.docbook b/doc/faq/faq.docbook
index 531f02b01..d26dc343a 100644
--- a/doc/faq/faq.docbook
+++ b/doc/faq/faq.docbook
@@ -305,7 +305,7 @@
You'll need an HG snapshot tarball or source checked out from the repository.
</para>
<para>
- First, make sure that the "devscripts" package is installed. You'll
+ First, make sure that the "devscripts" and "build-essential" packages are installed. You'll
then need the following commands (the first one isn't needed unless you're using a snapshot tarball):
<screen>
&nbsp;&nbsp;&nbsp;<command>tar xzf &lt;PACKAGE-VER.tar.gz&gt;</command>