Changeset eddf123620abac25909f3e7b669f5ed34cd62405

Show
Ignore:
Timestamp:
10/06/02 21:28:28 (6 years ago)
Author:
Gildas Bazin <gbazin@videolan.org>
git-committer:
Gildas Bazin <gbazin@videolan.org> 1033932508 +0000
git-parent:

[81478e4fe6efc9d12b664e0646ec793e23499671]

git-author:
Gildas Bazin <gbazin@videolan.org> 1033932508 +0000
Message:

* configure.ac.in: vlc can now be built under cygwin with or without the

unix emulation layer (without if you use CC="gcc -mno-cygwin").

* INSTALL.win32: doc update for cygwin build.
* modules/video_output/directx/events.c, modules/video_output/directx/directx.c,

modules/audio_output/directx.c: compilation fixes for cygwin.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • INSTALL.win32

    r348f966 reddf123  
    2424 
    2525If you want to do the tricky job of building vlc from sources, you can do it 
    26 in two ways: 
     26in several ways: 
    2727 
    2828- natively on Windows, using MSYS+MINGW (www.mingw.org) 
    2929  (MSYS is a minimal build environnement to compile unixish projects under 
    3030   windoze. It provides all the common unix tools like sh, gmake...) 
     31 
     32- natively on Windows, using cygwin (www.cygwin.com) with or without the 
     33  unix emulation layer. 
    3134 
    3235- or on Linux, using the mingw32 cross-compiler 
     
    4548to build the DirectX, GTK and SDL plugins. 
    4649 
    47 - compiling natively on Windoze
     50- compiling natively on Windoze with MSYS+MINGW
    4851You will need to download and install the latest MSYS (version 1.0.7 as 
    4952of now) and MINGW. 
     
    7073archive in a different directory. 
    7174 
     75- compiling natively on Windoze with cygwin: 
     76You will need to download and install cygwin (www.cygwin.com). 
     77 
     78You must also not forget to install the extra development packages if you want 
     79to build the DirectX, GTK and SDL plugins. 
     80(http://www.videolan.org/vlc/windows.html) 
     81 
    7282Configuring the build 
    7383===================== 
     
    8191along those lines: 
    8292 
    83   make distclean ; \ 
     93  ./bootstrap; \ 
    8494  CC=i586-mingw32msvc-gcc \ 
    8595  ./configure --host=i586-mingw32msvc --build=i386-linux \ 
     
    92102www.videolan.org, you have to use something along those lines: 
    93103 
     104  ./bootstrap; \ 
    94105  CC=i586-mingw32msvc-gcc \ 
    95106  PATH=/usr/local/cross-tools/bin:$PATH \ 
     
    102113If you are compiling natively on Windoze, then you can use something 
    103114along those lines: 
     115  ./bootstrap; \ 
    104116  ./configure \ 
    105117  --with-gtk-config-path=/c/dev/gtk-win32/bin \ 
     
    107119  --with-directx=/c/dev/dxheaders \ 
    108120  --with-dvdcss-tree=../libdvdcss-win 
     121 
     122If you are using cygwin, you can build vlc with or without the unix emulation 
     123layer (without is usually better). To build without the emulaion layer, use 
     124something like this: 
     125  ./bootstrap; \ 
     126  CC="gcc -mno-cygwin" \ 
     127  ./configure \ 
     128  --with-gtk-config-path=/cygdrive/c/dev/gtk-win32/bin \ 
     129  --with-sdl-config-path=/cygdrive/c/dev/SDL-1.2.3-win32/i386-mingw32msvc/bin \ 
     130  --with-directx=/cygdrive/c/dev/dxheaders \ 
     131  --with-dvdcss-tree=../libdvdcss-win 
     132If you want to use the emulation layer, then just omit the CC="gcc -mno-cygwin" 
     133line. 
    109134 
    110135Note: when using the --with-dvdcss-tree you need to compile the tree 
  • configure.ac.in

    r94b1b1a reddf123  
    9696    LIBEXT=".dylib" 
    9797    ;; 
    98   x*mingw32*) 
    99     SYS=mingw32 
    100     AC_CHECK_TOOL(WINDRES, windres, :) 
    101     CPPFLAGS_save="${CPPFLAGS_save} -D_OFF_T_ -D_off_t=long"; CPPFLAGS="${CPPFLAGS_save}" 
    102     LDFLAGS_vlc="${LDFLAGS_vlc} -lws2_32 -lnetapi32 -mwindows" 
    103     LDFLAGS_ipv4="${LDFLAGS_ipv4} -lws2_32" 
    104     LDFLAGS_ipv6="${LDFLAGS_ipv6} -lws2_32" 
    105     LDFLAGS_access_http="${LDFLAGS_http} -lws2_32" 
    106     LDFLAGS_rc="${LDFLAGS_rc} -lws2_32" 
    107     LIBEXT=".dll" 
    108     ;; 
    109   x*cygwin*) 
    110     SYS=cygwin 
     98  x*mingw32* | x*cygwin*) 
    11199    AC_CHECK_TOOL(WINDRES, windres, :) 
    112100    LIBEXT=".dll" 
     101 
     102    case "x${target_os}" in 
     103      x*mingw32*) 
     104        SYS=mingw32 
     105        ;; 
     106      x*cygwin*) 
     107        dnl Check if we are using the mno-cygwin mode in which case we are 
     108        dnl actually dealing with a mingw32 compiler. 
     109        AC_EGREP_CPP(yes, 
     110            [#ifdef WIN32 
     111             yes 
     112             #endif], 
     113            SYS=mingw32, SYS=cygwin) 
     114        ;; 
     115    esac 
     116 
     117    if test "x$SYS" = "xmingw32"; then 
     118        CPPFLAGS_save="${CPPFLAGS_save} -D_OFF_T_ -D_off_t=long" 
     119        CPPFLAGS="${CPPFLAGS_save}" 
     120        LDFLAGS_vlc="${LDFLAGS_vlc} -lws2_32 -lnetapi32 -mwindows" 
     121        LDFLAGS_ipv4="${LDFLAGS_ipv4} -lws2_32" 
     122        LDFLAGS_ipv6="${LDFLAGS_ipv6} -lws2_32" 
     123        LDFLAGS_access_http="${LDFLAGS_http} -lws2_32" 
     124        LDFLAGS_rc="${LDFLAGS_rc} -lws2_32" 
     125    fi 
    113126    ;; 
    114127  x*nto*) 
     
    14841497if test "x${enable_directx}" != "xno" 
    14851498then 
    1486   if test "x${SYS}" = "xmingw32" 
     1499  if test "x${SYS}" = "xmingw32" -o "x${SYS}" = "xcygwin" 
    14871500  then 
    14881501    AC_ARG_WITH(directx, 
     
    16681681AC_ARG_ENABLE(waveout, 
    16691682  [  --enable-waveout        Win32 waveOut module (default enabled on Win32)]) 
    1670 if test "x${enable_waveout}" != "xno" -a "x${SYS}" = "xmingw32" 
    1671   then 
     1683if test "x${enable_waveout}" != "xno"; then 
     1684  if test "x${SYS}" = "xmingw32" -o "x${SYS}" = "xcygwin"; then 
    16721685    PLUGINS="${PLUGINS} waveout" 
    16731686    LDFLAGS_waveout="-lwinmm" 
     1687  fi 
    16741688fi 
    16751689 
  • modules/audio_output/directx.c

    r94b1b1a reddf123  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001 VideoLAN 
    5  * $Id: directx.c,v 1.1 2002/10/05 17:29:50 gbazin Exp $ 
     5 * $Id: directx.c,v 1.2 2002/10/06 19:28:28 gbazin Exp $ 
    66 * 
    77 * Authors: Gildas Bazin <gbazin@netcourrier.com> 
     
    3535#include "aout_internal.h" 
    3636 
     37#include <windows.h> 
    3738#include <mmsystem.h> 
    3839#include <dsound.h> 
  • modules/video_output/directx/directx.c

    r94b1b1a reddf123  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001 VideoLAN 
    5  * $Id: directx.c,v 1.2 2002/10/05 17:29:50 gbazin Exp $ 
     5 * $Id: directx.c,v 1.3 2002/10/06 19:28:28 gbazin Exp $ 
    66 * 
    77 * Authors: Gildas Bazin <gbazin@netcourrier.com> 
     
    4343#include <vlc/vout.h> 
    4444 
     45#include <windows.h> 
    4546#include <ddraw.h> 
    4647 
  • modules/video_output/directx/events.c

    rc6a1652 reddf123  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001 VideoLAN 
    5  * $Id: events.c,v 1.2 2002/10/01 20:43:35 ipkiss Exp $ 
     5 * $Id: events.c,v 1.3 2002/10/06 19:28:28 gbazin Exp $ 
    66 * 
    77 * Authors: Gildas Bazin <gbazin@netcourrier.com> 
     
    247247    HMENU      hMenu; 
    248248    HICON      vlc_icon = NULL; 
    249     char       vlc_path[_MAX_PATH+1]; 
     249    char       vlc_path[MAX_PATH+1]; 
    250250 
    251251    msg_Dbg( p_vout, "DirectXCreateWindow" ); 
     
    291291    /* Get the Icon from the main app */ 
    292292    vlc_icon = NULL; 
    293     if( GetModuleFileName( NULL, vlc_path, _MAX_PATH ) ) 
     293    if( GetModuleFileName( NULL, vlc_path, MAX_PATH ) ) 
    294294    { 
    295295        vlc_icon = ExtractIcon( hInstance, vlc_path, 0 );