Changeset eddf123620abac25909f3e7b669f5ed34cd62405
- 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
| r348f966 |
reddf123 |
|
| 24 | 24 | |
|---|
| 25 | 25 | If you want to do the tricky job of building vlc from sources, you can do it |
|---|
| 26 | | in two ways: |
|---|
| | 26 | in several ways: |
|---|
| 27 | 27 | |
|---|
| 28 | 28 | - natively on Windows, using MSYS+MINGW (www.mingw.org) |
|---|
| 29 | 29 | (MSYS is a minimal build environnement to compile unixish projects under |
|---|
| 30 | 30 | 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. |
|---|
| 31 | 34 | |
|---|
| 32 | 35 | - or on Linux, using the mingw32 cross-compiler |
|---|
| … | … | |
| 45 | 48 | to build the DirectX, GTK and SDL plugins. |
|---|
| 46 | 49 | |
|---|
| 47 | | - compiling natively on Windoze: |
|---|
| | 50 | - compiling natively on Windoze with MSYS+MINGW: |
|---|
| 48 | 51 | You will need to download and install the latest MSYS (version 1.0.7 as |
|---|
| 49 | 52 | of now) and MINGW. |
|---|
| … | … | |
| 70 | 73 | archive in a different directory. |
|---|
| 71 | 74 | |
|---|
| | 75 | - compiling natively on Windoze with cygwin: |
|---|
| | 76 | You will need to download and install cygwin (www.cygwin.com). |
|---|
| | 77 | |
|---|
| | 78 | You must also not forget to install the extra development packages if you want |
|---|
| | 79 | to build the DirectX, GTK and SDL plugins. |
|---|
| | 80 | (http://www.videolan.org/vlc/windows.html) |
|---|
| | 81 | |
|---|
| 72 | 82 | Configuring the build |
|---|
| 73 | 83 | ===================== |
|---|
| … | … | |
| 81 | 91 | along those lines: |
|---|
| 82 | 92 | |
|---|
| 83 | | make distclean ; \ |
|---|
| | 93 | ./bootstrap; \ |
|---|
| 84 | 94 | CC=i586-mingw32msvc-gcc \ |
|---|
| 85 | 95 | ./configure --host=i586-mingw32msvc --build=i386-linux \ |
|---|
| … | … | |
| 92 | 102 | www.videolan.org, you have to use something along those lines: |
|---|
| 93 | 103 | |
|---|
| | 104 | ./bootstrap; \ |
|---|
| 94 | 105 | CC=i586-mingw32msvc-gcc \ |
|---|
| 95 | 106 | PATH=/usr/local/cross-tools/bin:$PATH \ |
|---|
| … | … | |
| 102 | 113 | If you are compiling natively on Windoze, then you can use something |
|---|
| 103 | 114 | along those lines: |
|---|
| | 115 | ./bootstrap; \ |
|---|
| 104 | 116 | ./configure \ |
|---|
| 105 | 117 | --with-gtk-config-path=/c/dev/gtk-win32/bin \ |
|---|
| … | … | |
| 107 | 119 | --with-directx=/c/dev/dxheaders \ |
|---|
| 108 | 120 | --with-dvdcss-tree=../libdvdcss-win |
|---|
| | 121 | |
|---|
| | 122 | If you are using cygwin, you can build vlc with or without the unix emulation |
|---|
| | 123 | layer (without is usually better). To build without the emulaion layer, use |
|---|
| | 124 | something 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 |
|---|
| | 132 | If you want to use the emulation layer, then just omit the CC="gcc -mno-cygwin" |
|---|
| | 133 | line. |
|---|
| 109 | 134 | |
|---|
| 110 | 135 | Note: when using the --with-dvdcss-tree you need to compile the tree |
|---|
| r94b1b1a |
reddf123 |
|
| 96 | 96 | LIBEXT=".dylib" |
|---|
| 97 | 97 | ;; |
|---|
| 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*) |
|---|
| 111 | 99 | AC_CHECK_TOOL(WINDRES, windres, :) |
|---|
| 112 | 100 | 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 |
|---|
| 113 | 126 | ;; |
|---|
| 114 | 127 | x*nto*) |
|---|
| … | … | |
| 1484 | 1497 | if test "x${enable_directx}" != "xno" |
|---|
| 1485 | 1498 | then |
|---|
| 1486 | | if test "x${SYS}" = "xmingw32" |
|---|
| | 1499 | if test "x${SYS}" = "xmingw32" -o "x${SYS}" = "xcygwin" |
|---|
| 1487 | 1500 | then |
|---|
| 1488 | 1501 | AC_ARG_WITH(directx, |
|---|
| … | … | |
| 1668 | 1681 | AC_ARG_ENABLE(waveout, |
|---|
| 1669 | 1682 | [ --enable-waveout Win32 waveOut module (default enabled on Win32)]) |
|---|
| 1670 | | if test "x${enable_waveout}" != "xno" -a "x${SYS}" = "xmingw32" |
|---|
| 1671 | | then |
|---|
| | 1683 | if test "x${enable_waveout}" != "xno"; then |
|---|
| | 1684 | if test "x${SYS}" = "xmingw32" -o "x${SYS}" = "xcygwin"; then |
|---|
| 1672 | 1685 | PLUGINS="${PLUGINS} waveout" |
|---|
| 1673 | 1686 | LDFLAGS_waveout="-lwinmm" |
|---|
| | 1687 | fi |
|---|
| 1674 | 1688 | fi |
|---|
| 1675 | 1689 | |
|---|
| r94b1b1a |
reddf123 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Gildas Bazin <gbazin@netcourrier.com> |
|---|
| … | … | |
| 35 | 35 | #include "aout_internal.h" |
|---|
| 36 | 36 | |
|---|
| | 37 | #include <windows.h> |
|---|
| 37 | 38 | #include <mmsystem.h> |
|---|
| 38 | 39 | #include <dsound.h> |
|---|
| r94b1b1a |
reddf123 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Gildas Bazin <gbazin@netcourrier.com> |
|---|
| … | … | |
| 43 | 43 | #include <vlc/vout.h> |
|---|
| 44 | 44 | |
|---|
| | 45 | #include <windows.h> |
|---|
| 45 | 46 | #include <ddraw.h> |
|---|
| 46 | 47 | |
|---|
| rc6a1652 |
reddf123 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * 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 $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Gildas Bazin <gbazin@netcourrier.com> |
|---|
| … | … | |
| 247 | 247 | HMENU hMenu; |
|---|
| 248 | 248 | HICON vlc_icon = NULL; |
|---|
| 249 | | char vlc_path[_MAX_PATH+1]; |
|---|
| | 249 | char vlc_path[MAX_PATH+1]; |
|---|
| 250 | 250 | |
|---|
| 251 | 251 | msg_Dbg( p_vout, "DirectXCreateWindow" ); |
|---|
| … | … | |
| 291 | 291 | /* Get the Icon from the main app */ |
|---|
| 292 | 292 | vlc_icon = NULL; |
|---|
| 293 | | if( GetModuleFileName( NULL, vlc_path, _MAX_PATH ) ) |
|---|
| | 293 | if( GetModuleFileName( NULL, vlc_path, MAX_PATH ) ) |
|---|
| 294 | 294 | { |
|---|
| 295 | 295 | vlc_icon = ExtractIcon( hInstance, vlc_path, 0 ); |
|---|