ref: 41fb39a4f483037f32a9a8d5abb491fd6a902739
parent: 273ace3c9a24e0e2ef72c3892f67549c56ea25f6
author: Gildas Bazin <gbazin@videolan.org>
date: Thu Apr 4 19:26:25 EST 2002
* updated INSTALL doc for the win32 build. * added small win32 specific error message that was also in the vlc tree.
--- a/INSTALL
+++ b/INSTALL
@@ -10,13 +10,6 @@
See `./configure --help' for more information.
-It is also possible to cross-compile for the Win32 platform using mingw32:
-
- CC=i586-mingw32msvc-gcc CFLAGS=-I/usr/i586-mingw32msvc \
- RANLIB=i586-mingw32msvc-ranlib ./configure --host=i386-mingw32msvc \
- --target=i386-mingw32msvc --build=i386-linux
-
-
Building libdvdcss
==================
@@ -34,3 +27,47 @@
make install
+Building libdvdcss for Win32
+============================
+
+You have two alternatives to build libdvdcss for Win32:
+
+- natively on Windows, using MSYS+MINGW (www.mingw.org):
+
+ (MSYS is a minimal build environnement to compile unixish projects under
+ windoze. It provides all the common unix tools like sh, gmake...)
+
+ You need to download and install MSYS-1.0.5 (version 1.0.6 doesn't seem to
+ work as well) and MINGW.
+ http://prdownloads.sourceforge.net/mingw/msys-1.0.5-i686-bin.tar.gz
+ http://prdownloads.sourceforge.net/mingw/MinGW-1.1.tar.gz
+
+ To build libdvdcss you just have to run the following commands:
+
+ MAKE=gmake ./configure
+
+ MAKE=gmake gmake
+
+- or on Linux, using the mingw32 cross-compiler:
+
+ You can find a mingw32 cross-compiler on the videolan web site:
+ http://www.videolan.org/vlc/windows.html
+ Or if you are running Debian, there is a mingw32 package you can use.
+
+ If you are cross-compiling from the Debian package, you can use the following
+ commands:
+
+ ./configure --host=i586-mingw32msvc --target=i586-mingw32msvc \
+ --build=i386-linux
+
+ make
+
+ If you are cross-compiling using the mingw32 package provided by
+ www.videolan.org, you have to use something along those lines:
+
+ CC=/usr/local/cross-tools/bin/i586-mingw32msvc-gcc \
+ PATH=/usr/local/cross-tools/bin:$PATH \
+ ./configure --host=i586-mingw32msvc --target=i586-mingw32msvc \
+ --build=i386-linux
+
+ PATH=/usr/local/cross-tools/bin:$PATH make
--- a/src/css.c
+++ b/src/css.c
@@ -2,7 +2,7 @@
* css.c: Functions for DVD authentification and unscrambling
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
- * $Id: css.c,v 1.6 2002/04/03 15:19:21 sam Exp $
+ * $Id: css.c,v 1.7 2002/04/05 00:26:25 gbazin Exp $
*
* Author: St�phane Borel <stef@via.ecp.fr>
* H�kan Hjort <d95hjort@dtek.chalmers.se>
@@ -82,7 +82,13 @@
/* Since it's the first ioctl we try to issue, we add a notice */
_dvdcss_error( dvdcss, "css error: ioctl_ReadCopyright failed, "
"make sure there is a DVD in the drive, and that "
- "DVD ioctls were compiled in this libdvdcss version" );
+ "DVD ioctls were compiled in this libdvdcss version."
+#if defined( WIN32 )
+ "\nAlso note that if you are using Windows NT/2000/XP "
+ "you need to have administrator priviledges to be able "
+ "to use ioctls."
+#endif
+ );
return i_ret;
}